-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.pre-commit-config.yaml
42 lines (40 loc) · 1.09 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
default_language_version:
python: python3.10
default_stages: [commit, push]
repos:
- repo: https://github.com/MarcoGorelli/absolufy-imports
rev: v0.3.1
hooks:
- id: absolufy-imports
- repo: local
hooks:
- id: flake8
name: flake8
entry: flake8 --max-complexity 5 --max-cognitive-complexity=3 src
language: system
types: [python]
pass_filenames: false
- id: black
name: black
entry: black src tests --check --diff --config pyproject.toml
language: system
types: [python]
pass_filenames: false
- id: isort
name: isort
entry: isort src tests --check --diff
language: system
types: [ python ]
pass_filenames: false
- id: bandit
name: bandit
entry: bandit -r src --config pyproject.toml
language: system
types: [python]
pass_filenames: false
- id: pytype
name: pytype
entry: pytype --config=pytype.cfg src
language: system
types: [python]
pass_filenames: false