-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
67 lines (67 loc) · 1.82 KB
/
.pre-commit-config.yaml
File metadata and controls
67 lines (67 loc) · 1.82 KB
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
59
60
61
62
63
64
65
66
67
repos:
- hooks:
- id: check-docstring-first
- id: check-ast
- exclude: (^tests/mock/|^tests/integration/|^tests/fixtures|benchmarks)
id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- args:
- --pytest-test-first
exclude: (^tests/mock/|^tests/integration/|^tests/fixtures|conftest\.py$)
id: name-tests-test
- id: check-merge-conflict
- id: check-json
repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
- hooks:
- id: add-trailing-comma
repo: https://github.com/asottile/add-trailing-comma
rev: v3.1.0
- hooks:
- id: pycln
name: pycln
entry: pycln ./
language: system
repo: local
- hooks:
- id: upgrade-type-hints
repo: https://github.com/sondrelg/pep585-upgrade
rev: v1.0.1
- hooks:
- id: ruff
args: [--fix, --config, ruff.toml]
- id: ruff-format
args: [--config, ruff.toml]
repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.1
- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.380
hooks:
- id: pyright
args: [--project, .]
types: [python]
- repo: https://github.com/netromdk/vermin
rev: v1.6.0
hooks:
- id: vermin
args: [--target=3.10-, --violations, --eval-annotations, --backport typing_extensions, --exclude=venv, --exclude=build, --exclude=.git, --exclude=.venv, src, examples, tests]
language: python
additional_dependencies: [vermin]
- repo: local
hooks:
- id: pytest-unit
name: unit tests
entry: pytest -c ./tests/pytest-config.ini ./tests/unit
language: system
types: [python]
pass_filenames: false
always_run: true
- id: pytest-integration
name: integration tests
entry: pytest -c ./tests/pytest-config.ini ./tests/integration
language: system
types: [python]
pass_filenames: false
always_run: true