-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
44 lines (44 loc) · 1.31 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
repos:
- repo: https://github.com/codespell-project/codespell
rev: v2.2.5
hooks:
- id: codespell
additional_dependencies:
- tomli
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.5.1'
hooks:
- id: mypy
additional_dependencies:
- 'pydantic'
exclude: '(?x)(test\_.*|conftest\.py|docs/conf\.py)'
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.291
hooks:
- id: ruff
args: [--config, pyproject.toml]
- repo: https://github.com/pycqa/pydocstyle
rev: 6.3.0
hooks:
- id: pydocstyle
files: ^(.*\/)?src\/.*
additional_dependencies:
- 'pydocstyle[toml]'
- repo: local
hooks:
- id: check-poetry-lock
name: check-poetry-lock
description: 'Check poetry.lock file is in sync with pyproject.toml'
entry: poetry
args: [check, --lock]
language: system
pass_filenames: false
- repo: local
hooks:
- id: update-docs-requirements-txt
name: update-docs-requirements-txt
description: 'Generate docs/requirements.txt based on poetry.lock'
entry: poetry
args: [export, --format, requirements.txt, --with, docs, --output, docs/requirements.txt]
language: system
pass_filenames: false