Skip to content

Commit 8c2182d

Browse files
committed
add tox:audit step;
1 parent afe6892 commit 8c2182d

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

setup.cfg

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ exclude_lines =
5353

5454
[tox:tox]
5555
isolated_build = true
56-
envlist = py312, format, lint, build
56+
envlist = audit, py312, format, lint, build
5757

5858
[gh-actions]
5959
python =
@@ -71,6 +71,14 @@ setenv =
7171
commands =
7272
pytest --cov=solvis_graphql_api --cov-branch --cov-report=xml --cov-report=term-missing
7373

74+
[testenv:audit]
75+
allowlist_externals =
76+
poetry
77+
commands =
78+
poetry export --all-groups --output audit.txt
79+
poetry run pip-audit -r audit.txt --require-hashes
80+
poetry run safety scan
81+
7482
[testenv:format]
7583
allowlist_externals =
7684
isort

0 commit comments

Comments
 (0)