-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
68 lines (62 loc) · 1.41 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
59
60
61
62
63
64
65
66
67
68
repos:
- repo: local
hooks:
- id: dead
name: dead
entry: dead
# args:
# - "--exclude"
# - "test_data/test_content.py|^deprecated/" # regex separate by "|"
language: system
pass_filenames: false
# types: [python]
- id: black
name: black
language: system
entry: black .
types: [python]
- id: codespell
name: codespell
language: system
entry: codespell
# args:
# - "src/"
# - "tests/"
# - "*.md"
# - "*.py"
# pass_filenames: false
types_or: [python, markdown]
exclude: ^test_data/
- id: ruff
name: ruff
language: system
entry: ruff
args:
# Tell ruff to fix sorting of imports
- "--fix"
- "--format=github"
- "--target-version=py311"
types: [python]
# https://jaredkhan.com/blog/mypy-pre-commit
- id: mypy
name: mypy
entry: mypy
language: python
# use your preferred Python version
# language_version: python3.7
# additional_dependencies: ["mypy==0.790"]
types: [python]
# use require_serial so that script
# is only called once per commit
require_serial: true
exclude: ^test_data/|^deprecated
# Print the number of files as a sanity-check
# verbose: true
# - id: pytest
# name: pytest
# language: system
# entry: pytest
## args:
## - "--durations=10"
## - "--ignore=tests/test_wcdimportbot.py"
# types: [ python ]