-
Notifications
You must be signed in to change notification settings - Fork 4
/
.pre-commit-config.yaml
58 lines (58 loc) · 1.73 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
default_language_version:
python: python3.11
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-added-large-files
- id: check-json
- id: check-toml
- id: check-yaml
exclude: "mkdocs.yml"
- id: end-of-file-fixer
- id: mixed-line-ending
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.1
hooks:
# See https://github.com/pre-commit/mirrors-mypy/blob/main/.pre-commit-hooks.yaml
- id: mypy
types_or: [python, pyi]
args: [--ignore-missing-imports, --scripts-are-modules]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.2
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
- repo: https://github.com/PyCQA/bandit
rev: 1.7.9
hooks:
- id: bandit
args: [-c, pyproject.toml]
additional_dependencies: ["bandit[toml]"]
- repo: https://github.com/jsh9/pydoclint
rev: 0.5.6
hooks:
- id: pydoclint
args: [--check-class-attributes=False]
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.2.25
hooks:
- id: pip-compile
name: pip-compile requirements-dev.txt
args:
- --no-annotate
- --no-strip-extras
- --extra=dev
- --output-file=requirements-dev.txt
- pyproject.toml
files: ^(pyproject\.toml|requirements-dev\.txt)$
- id: pip-compile
name: pip-compile requirements-docs.txt
args:
- --no-annotate
- --no-strip-extras
- --extra=docs
- --output-file=requirements-docs.txt
- pyproject.toml
files: ^(pyproject\.toml|requirements-docs\.txt)$