Skip to content

Commit c9818d5

Browse files
committed
MPT-5509 add bandit to precommit
1 parent 754a9da commit c9818d5

File tree

1 file changed

+26
-17
lines changed

1 file changed

+26
-17
lines changed

.pre-commit-config.yaml

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,29 @@
11
default_language_version:
22
python: python3.12
33
repos:
4-
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v5.0.0
6-
hooks:
7-
- id: check-added-large-files
8-
- id: check-toml
9-
- id: check-yaml
10-
args:
11-
- --unsafe
12-
- id: end-of-file-fixer
13-
- id: trailing-whitespace
14-
- repo: https://github.com/astral-sh/ruff-pre-commit
15-
rev: v0.8.2
16-
hooks:
17-
- id: ruff
18-
args:
19-
- --fix
20-
- id: ruff-format
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v5.0.0
6+
hooks:
7+
- id: check-added-large-files
8+
- id: check-toml
9+
- id: check-yaml
10+
args:
11+
- --unsafe
12+
- id: end-of-file-fixer
13+
- id: trailing-whitespace
14+
- repo: https://github.com/astral-sh/ruff-pre-commit
15+
rev: v0.8.2
16+
hooks:
17+
- id: ruff
18+
args:
19+
- --fix
20+
- id: ruff-format
21+
- repo: https://github.com/PyCQA/bandit
22+
rev: "1.8.0"
23+
hooks:
24+
- id: bandit
25+
args:
26+
- -c
27+
- pyproject.toml
28+
- -r
29+
- .

0 commit comments

Comments
 (0)