-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
58 lines (52 loc) · 1.54 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
ci:
autoupdate_schedule: "quarterly"
repos:
- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: isort
args: [
"--filter-files", # skip files that are excluded in config file
"--profile=black",
"--skip=migrations"
]
- repo: https://github.com/psf/black
rev: 22.10.0
hooks:
- id: black
language_version: python3.8
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v0.991" # Use the sha / tag you want to point at
hooks:
- id: mypy
args: [ "--allow-untyped-globals", "--ignore-missing-imports" ]
additional_dependencies: [ types-all ]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: check-yaml
- id: check-toml
- id: check-merge-conflict
- id: debug-statements
- id: check-added-large-files
- repo: https://github.com/pycqa/flake8
rev: "6.0.0" # pick a git hash / tag to point to
hooks:
- id: flake8
args: [ "--ignore=E501,W503,W504,E203,E251,E266,E401,E126,E124,C901" ]
additional_dependencies: [
'flake8-bugbear',
]
- repo: https://github.com/asottile/pyupgrade
rev: v3.2.2
hooks:
- id: pyupgrade
args:
- "--py37-plus"
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v2.1.1
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: [] # optional: list of Conventional Commits types to allow