Skip to content

Commit 33dbcfb

Browse files
authored
Move bandit to pre-commit (#1488)
1 parent 248f8de commit 33dbcfb

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,7 @@ jobs:
3131
- name: codespell
3232
cmd: codespell
3333
type: lint
34-
- name: bandit
35-
cmd: bandit -r -c bandit.yaml .
36-
type: lint
37-
- name: precommit (isort, black, and ruff)
34+
- name: precommit (black, bandit, and ruff)
3835
cmd: pre-commit run --all-files
3936
type: lint
4037
- name: docs

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,8 @@ repos:
2222
- id: black
2323
args: [--safe, --quiet]
2424
files: (examples|pymodbus|test)/
25+
- repo: https://github.com/PyCQA/bandit
26+
rev: 1.7.5
27+
hooks:
28+
- id: bandit
29+
args: [-c, bandit.yaml]

bandit.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ tests:
1717
- B318
1818
- B319
1919
- B320
20-
- B325
2120
- B601
2221
- B602
2322
- B604

0 commit comments

Comments
 (0)