-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
48 lines (41 loc) · 972 Bytes
/
.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
# See https://pre-commit.com/ for usage and config
default_stages: [commit]
repos:
# Make sure the lock file is up-to-date with pyproject.toml.
- repo: https://github.com/pdm-project/pdm
rev: 2.22.1
hooks:
- id: pdm-lock-check
- repo: local
hooks:
- id: ruff
name: ruff
stages: [commit]
language: system
entry: pdm run ruff check --fix --exit-non-zero-on-fix --respect-gitignore
types: [python]
- id: black
name: black
language: system
entry: pdm run black --quiet
types: [python]
- id: mypy
name: mypy
language: system
entry: pdm run mypy
types: [python]
pass_filenames: false
- id: pytest
name: pytest
language: system
entry: pdm run pytest tests
types: [python]
pass_filenames: false
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.1.9
hooks:
- id: remove-crlf