-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
45 lines (40 loc) · 1.05 KB
/
.pre-commit-config.yaml
File metadata and controls
45 lines (40 loc) · 1.05 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
default_language_version:
python: python3 # or python3.12 if that's your venv
repos:
- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
- id: black
exclude: '(^|/)tests?|/tools/?/'
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.289
hooks:
- id: ruff
args: [--fix]
exclude: '(^|/)tests?|/tools/?/'
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
args: ["--profile=black"]
exclude: '(^|/)tests?|/tools/?/'
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.5.1
hooks:
- id: mypy
additional_dependencies:
- pydantic>=2.0
- pytest>=7.0
- msgpack-types>=0.2
- types-PyYAML>=6.0.12
args: ["--strict"]
exclude: '(^|/)tests?|/tools/?/'
- repo: local
hooks:
- id: pytest
name: Run tests
entry: .venv/bin/pytest
language: system
pass_filenames: false
always_run: true
args: ["-ra", "-q", "tests"]