-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
66 lines (56 loc) · 1.32 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
exclude:
"(^.*tests/.*$)"
default_stages: [commit, manual, push]
repos:
# formatting related
- repo: https://github.com./pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-toml
- id: check-case-conflict
- id: check-added-large-files
args: ["--maxkb=4096"]
- repo: https://github.com./psf/black
rev: 23.3.0
hooks:
- id: black
types: [python]
- repo: https://github.com./pycqa/isort
rev: 5.12.0
hooks:
- id: isort
args: ["--profile", "black", "--filter-files"]
- repo: https://github.com./pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
additional_dependencies: [
"flake8-bugbear",
"flake8-comprehensions",
"flake8-simplify",
"cohesion",
"pydocstyle",
"flake8-docstrings",
"pep8-naming"
]
types: [python]
- repo: https://github.com./commitizen-tools/commitizen
rev: 3.3.0
hooks:
- id: commitizen
- id: commitizen-branch
stages: [push]
- repo: https://github.com./python-poetry/poetry
rev: 1.5.0
hooks:
- id: poetry-check
- id: poetry-lock
- repo: https://github.com./DavidAnson/markdownlint-cli2
rev: v0.8.1
hooks:
- id: markdownlint-cli2