File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ MANIFEST
1515
1616# Virtual environments
1717.venv /
18+ .venv-audit /
1819venv /
1920env /
2021ENV /
Original file line number Diff line number Diff line change @@ -69,9 +69,14 @@ lint: ## Lint with ruff.
6969lint-fix : # # Lint with ruff --fix.
7070 $(PYTHON ) -m ruff check --fix .
7171
72- security : # # Run pip-audit on resolved dependencies.
72+ security : # # Run pip-audit on this package's dependencies only (isolated venv) .
7373 @command -v pip-audit > /dev/null 2>&1 || (echo " install: pip install pip-audit" && exit 1)
74- pip-audit
74+ @rm -rf .venv-audit
75+ $(PYTHON ) -m venv .venv-audit
76+ .venv-audit/bin/pip install -q -U pip pip-audit setuptools wheel
77+ .venv-audit/bin/pip install -q -e .
78+ .venv-audit/bin/pip-audit --skip-editable
79+ @rm -rf .venv-audit
7580
7681tidy : # # No-op for Python (lockfile management is via pyproject.toml).
7782 @echo " tidy: nothing to do for Python repos."
You can’t perform that action at this time.
0 commit comments