Skip to content

Commit be4018e

Browse files
committed
bandit: ignore the tests
1 parent 309f48d commit be4018e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,3 +191,6 @@ ignore = [
191191
"D203",
192192
"D212",
193193
]
194+
195+
[tool.bandit]
196+
exclude_dirs = ["cwl_utils/tests"]

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ passenv =
3232
deps =
3333
py3{10,11,12,13,14}-{unit,mypy}: -rtest-requirements.txt
3434
py3{10,11,12,13,14}-lint: -rlint-requirements.txt
35-
py3{10,11,12,13,14}-bandit: bandit
35+
py3{10,11,12,13,14}-bandit: bandit[toml]
3636
py3{10,11,12,13,14}-mypy: -rmypy-requirements.txt
3737

3838
setenv =
@@ -41,7 +41,7 @@ setenv =
4141
commands =
4242
py3{10,11,12,13,14}-unit: python -m pip install -U pip setuptools wheel
4343
py3{10,11,12,13,14}-unit: make coverage-report coverage.xml PYTEST_EXTRA={posargs}
44-
py3{10,11,12,13,14}-bandit: bandit --recursive cwl_utils
44+
py3{10,11,12,13,14}-bandit: bandit --configfile pyproject.toml --recursive cwl_utils
4545
py3{10,11,12,13,14}-lint: make flake8
4646
py3{10,11,12,13,14}-lint: make format-check
4747
py3{10,11,12,13,14}-mypy: make mypy

0 commit comments

Comments
 (0)