Skip to content

Commit 014f169

Browse files
committed
bandit: ignore the tests
1 parent 363fc45 commit 014f169

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
@@ -143,3 +143,6 @@ ignore = [
143143
"D203",
144144
"D212",
145145
]
146+
147+
[tool.bandit]
148+
exclude_dirs = ["cwl_utils/tests"]

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ passenv =
3131
GITHUB_*
3232
deps =
3333
py3{10,11,12,13,14}-lint: -rlint-requirements.txt
34-
py3{10,11,12,13,14}-bandit: bandit
34+
py3{10,11,12,13,14}-bandit: bandit[toml]
3535
py3{10,11,12,13,14}-mypy: -rmypy-requirements.txt
3636

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

0 commit comments

Comments
 (0)