-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
104 lines (103 loc) · 2.52 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
default_language_version:
python: python3.11
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.4.0"
hooks:
- id: check-case-conflict
- id: check-merge-conflict
- id: end-of-file-fixer
- id: trailing-whitespace
- id: debug-statements
- id: detect-private-key
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: "2.7.1"
hooks:
- id: editorconfig-checker
alias: ec
args:
- -disable-indent-size
- repo: https://github.com/asottile/pyupgrade
rev: "v3.6.0"
hooks:
- id: pyupgrade
args:
- --py310-plus
- repo: https://github.com/pycqa/autoflake
rev: "v2.1.1"
hooks:
- id: autoflake
args:
- --in-place
- --remove-all-unused-imports
- --ignore-init-module-imports
- repo: https://github.com/pycqa/isort
rev: "5.12.0"
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: "23.3.0"
hooks:
- id: black
- repo: https://github.com/asottile/blacken-docs
rev: "1.14.0"
hooks:
- id: blacken-docs
additional_dependencies: ["black==22.8.0"]
- repo: https://github.com/pycqa/flake8
rev: "6.0.0"
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear==22.9.11
- flake8-comprehensions==3.10.0
- repo: https://github.com/sirosen/check-jsonschema
rev: "0.23.2"
hooks:
- id: check-github-workflows
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.5.1"
hooks:
- id: mypy
args: ["--strict"]
pass_filenames: false
additional_dependencies:
- pytest==7.1.3
- types-setuptools==65.3.0
- abcattrs==0.3.2
- typing-extensions==4.6.3
- hypothesis==6.54.4
- pydantic==2.0b3
- types-babel==2.11.0.15
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v2.7.1"
hooks:
- id: prettier
alias: format-markdown
types: [markdown]
args:
- --parser=markdown
- --print-width=88
- --prose-wrap=always
- repo: https://github.com/mgedmin/check-manifest
rev: "0.49"
hooks:
- id: check-manifest
args: ["--no-build-isolation"]
exclude: |
(?x)(
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.pytest_cache
| \.nox
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
)