-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
94 lines (86 loc) · 2.13 KB
/
.pre-commit-config.yaml
File metadata and controls
94 lines (86 loc) · 2.13 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
default_language_version:
python: python3.12
default_stages: [ commit, push ]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-ast
- id: check-yaml
- id: check-toml
- id: check-merge-conflict
- id: debug-statements
- id: end-of-file-fixer
exclude: ^docs/diagrams/.*\.svg$
- id: trailing-whitespace
- repo: local
hooks:
- id: pyupgrade
name: pyupgrade
entry: poetry run pyupgrade --py312-plus
types: [ python ]
language: system
- repo: local
hooks:
- id: autoflake
name: autoflake
entry: poetry run autoflake
types: [ python ]
language: system
- repo: https://github.com/asottile/add-trailing-comma
rev: v2.3.0
hooks:
- id: add-trailing-comma
- repo: local
hooks:
- id: isort
name: isort
entry: poetry run isort --settings-path pyproject.toml
types: [ python ]
language: system
- repo: local
hooks:
- id: black
name: black
entry: poetry run black --config pyproject.toml
types: [ python ]
language: system
- repo: local
hooks:
- id: flake8
name: flake8
entry: poetry run flake8
types: [ python ]
language: system
- repo: local
hooks:
- id: mypy
name: mypy
entry: poetry run mypy app
types: [ python ]
language: system
pass_filenames: false
- repo: local
hooks:
- id: xenon
name: xenon
entry: poetry run xenon --max-absolute B --max-modules A --max-average A app
types: [ python ]
language: system
pass_filenames: false
- repo: local
hooks:
- id: bandit
name: bandit
entry: poetry run bandit -r app
types: [ python ]
language: system
pass_filenames: false
- repo: local
hooks:
- id: generate_diagrams
name: generate_diagrams
entry: ./generate_diagrams.sh
language: system
pass_filenames: true
files: ^docs/diagrams/.*\.mmd$