Skip to content

Commit df6571e

Browse files
authored
Switch to ruff's version of bandit (#1557)
1 parent 9c6acc3 commit df6571e

File tree

4 files changed

+4
-31
lines changed

4 files changed

+4
-31
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,3 @@ 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 & 24 deletions
This file was deleted.

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ sphinx-rtd-theme==1.1.1
4646
# development, everything needed to develop/test/check.
4747
# -------------------------------------------------------------------
4848
# install:development
49-
bandit==1.7.4
5049
codespell==2.2.2
5150
coverage==7.1.0
5251
mypy==1.0.1

ruff.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ ignore = [
1212
"E501", # line too long
1313
"E731", # lambda expressions
1414
"PT019", # Bug: https://github.com/m-burst/flake8-pytest-style/issues/202
15+
"S101", # Use of `assert`
16+
"S311", # PRNG for cryptography
17+
"S104", # binding on all interfaces
1518
]
1619
line-length = 120
1720
select = [
18-
# "B", # bandit
1921
"B007", # Loop control variable {name} not used within loop body
2022
"B014", # Exception handler with duplicate exception
2123
"C", # complexity
@@ -27,6 +29,7 @@ select = [
2729
"PLC", # pylint
2830
"PT", # flake8-pytest-style
2931
"RUF", # ruff builtins
32+
"S", # bandit
3033
"SIM105", # flake8-simplify
3134
"SIM117", #
3235
"SIM118", #

0 commit comments

Comments
 (0)