-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
55 lines (46 loc) · 1.33 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
repos:
# Black code formatter, add a section to add a max line length of 88 characters
- repo: https://github.com/psf/black
rev: 24.4.1
hooks:
- id: black
args: ['--line-length=88']
# Google style docstrings using pydocstyle
- repo: https://github.com/PyCQA/pydocstyle
rev: 6.3.0
hooks:
- id: pydocstyle
args: ['--convention=google']
# Detect secrets
- repo: https://github.com/Yelp/detect-secrets
rev: v1.4.0
hooks:
- id: detect-secrets
# Commitizen for commit messages
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.24.0
hooks:
- id: commitizen
stages: [commit-msg]
# Additional recommended hook: isort for Python import sorting
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort
args: ['--profile', 'black']
# Additional recommended hook: flake8 for linting
- repo: https://github.com/pycqa/flake8
rev: 7.0.0
hooks:
- id: flake8
args: ['--max-line-length=88']
# Additional recommended hook: mypy for static typing
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.0
hooks:
- additional_dependencies:
- types-requests
args:
- --ignore-missing-imports
- --no-implicit-optional
id: mypy