Skip to content

Commit 3cfa471

Browse files
committed
chore: update precommit hook
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 1a932a2 commit 3cfa471

File tree

1 file changed

+25
-4
lines changed

1 file changed

+25
-4
lines changed

.pre-commit-config.yaml

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,42 @@ repos:
33
- repo: local
44
hooks:
55
- id: system
6-
name: mypy
7-
entry: poetry run tox -e mypy-current
6+
name: pyupgrade
7+
entry: poetry run -- tox r -e pyupgrade -- --exit-zero-even-if-changed
88
pass_filenames: false
99
language: system
1010
- repo: local
1111
hooks:
1212
- id: system
1313
name: isort
14-
entry: poetry run isort -c .
14+
entry: poetry run -- tox r -e isort
15+
pass_filenames: false
16+
language: system
17+
- repo: local
18+
hooks:
19+
- id: system
20+
name: autopep8
21+
entry: poetry run -- tox r -e autopep8
1522
pass_filenames: false
1623
language: system
1724
- repo: local
1825
hooks:
1926
- id: system
2027
name: flake8
21-
entry: poetry run flake8 cyclonedx/ tests/
28+
entry: poetry run -- tox r -e flake8
29+
pass_filenames: false
30+
language: system
31+
- repo: local
32+
hooks:
33+
- id: system
34+
name: mypy
35+
entry: poetry run -- tox -e mypy-current
36+
pass_filenames: false
37+
language: system
38+
- repo: local
39+
hooks:
40+
- id: system
41+
name: bandit
42+
entry: poetry run -- tox r -e bandit
2243
pass_filenames: false
2344
language: system

0 commit comments

Comments
 (0)