-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
48 lines (47 loc) · 1.44 KB
/
.pre-commit-config.yaml
File metadata and controls
48 lines (47 loc) · 1.44 KB
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
default_stages:
- pre-commit
repos:
# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: v1.15.0
# hooks:
# - id: mypy
# exclude: ^tests/
# additional_dependencies: [
# 'sqlalchemy-stubs',
# ]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: debug-statements
- id: detect-private-key
- id: mixed-line-ending
- id: check-merge-conflict
- repo: https://github.com/akaihola/darker
rev: 1.7.2
hooks:
- id: darker
additional_dependencies:
- black~=24.2.0
- isort~=5.13.0
args: ["--isort"]
- repo: https://github.com/pycqa/flake8
rev: 7.1.1
hooks:
- id: flake8
additional_dependencies: [
'flake8-debugger==3.2.1',
'flake8-deprecated==1.3',
'flake8-pep3101==1.2.1',
'flake8-polyfill==1.0.2',
'flake8-print==3.1.4',
'flake8-string-format==0.2.3',
'flake8-pyproject==1.2.3',
]
- repo: https://github.com/PyCQA/bandit
rev: '1.8.3'
hooks:
- id: bandit
args: ["-c", "pyproject.toml", "-r", "."]
additional_dependencies: [".[toml]"]