-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
54 lines (54 loc) · 1.63 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
exclude: "__snapshots__/"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.25.0
hooks:
- id: check-github-workflows
- id: check-dependabot
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
hooks:
- id: pyupgrade
args: [--py310-plus]
- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
- id: black
args: [--preview]
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
hooks:
- id: flake8
additional_dependencies: [
"dlint~=0.14.1",
"flake8-async~=22.11.14",
"flake8-bandit~=4.1.1",
"flake8-bugbear~=23.9.16",
"flake8-comprehensions~=3.14.0",
"flake8-eradicate~=1.5.0",
# disabled because on 3.12 gets confused by E902 errors
# https://github.com/zupo/flake8-mock/issues/16
# "flake8-mock==0.4",
"flake8-noqa~=1.3.2",
"flake8-pie~=0.16.0",
"flake8-pytest-style~=1.7.2",
"flake8-self~=0.2.2",
"flake8-simplify~=0.21.0",
"flake8-type-checking~=2.5.1",
"flake8-typing-imports~=1.15.0",
"flake8-unused-arguments~=0.0.13",
"flake8-warnings~=0.4.1",
"pep8-naming~=0.13.3",
]