Skip to content

Commit

Permalink
TG-1008 Update pip-audit to ~=2.6.0 (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
niccolomineo authored Jan 8, 2024
1 parent 3a245f3 commit d61e842
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
10 changes: 8 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,13 @@ repos:
additional_dependencies: ["bandit[toml]"]
args: ["--configfile", "pyproject.toml", "--quiet", "--recursive"]
- repo: https://github.com/trailofbits/pip-audit
rev: v2.5.2
rev: v2.6.3
hooks:
- id: pip-audit
args: ["--require-hashes", "--requirement", "requirements/local.txt"]
args:
[
"--require-hashes",
"--disable-pip",
"--requirement",
"requirements/local.txt",
]
10 changes: 8 additions & 2 deletions {{cookiecutter.project_dirname}}/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,16 @@ repos:
additional_dependencies: ["bandit[toml]"]
args: ["--configfile", "pyproject.toml", "--quiet", "--recursive"]
- repo: https://github.com/trailofbits/pip-audit
rev: v2.5.2
rev: v2.6.3
hooks:
- id: pip-audit
args: ["--require-hashes", "--requirement", "requirements/remote.txt"]
args:
[
"--require-hashes",
"--disable-pip",
"--requirement",
"requirements/remote.txt",
]
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.9.0.2
hooks:
Expand Down
2 changes: 1 addition & 1 deletion {{cookiecutter.project_dirname}}/requirements/test.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ black~=23.3.0
coverage[toml]~=7.2.0
mypy~=1.2.0
pactman~=2.30.0
pip-audit==2.5.2
pip-audit~=2.6.0
pytest-django~=4.5.0
pytest-dotenv~=0.5.0
ruff~=0.0.0
Expand Down
2 changes: 1 addition & 1 deletion {{cookiecutter.project_dirname}}/scripts/check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ python3 -m black --check .
python3 -m ruff check .
python3 -m mypy --no-site-packages .
python3 -m bandit --configfile pyproject.toml --quiet --recursive .
python3 -m pip_audit --require-hashes --requirement requirements/remote.txt
python3 -m pip_audit --require-hashes --disable-pip --requirement requirements/remote.txt

0 comments on commit d61e842

Please sign in to comment.