Skip to content

Commit 6341bc7

Browse files
authored
Merge pull request #57 from MITLibraries/IN-1240-pip-audit
Replace pipenv check with pip-audit
2 parents 17cf6b2 + 7bf5801 commit 6341bc7

File tree

4 files changed

+335
-131
lines changed

4 files changed

+335
-131
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ repos:
2222
language: system
2323
pass_filenames: true
2424
types: ["python"]
25-
- id: safety
26-
name: safety
27-
entry: pipenv check
25+
- id: pip-audit
26+
name: pip-audit
27+
entry: pipenv run pip-audit
2828
language: system
2929
pass_filenames: false

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ ruff: # Run 'ruff' linter and print a preview of errors
4444
pipenv run ruff check .
4545

4646
safety: # Check for security vulnerabilities and verify Pipfile.lock is up-to-date
47-
pipenv check
47+
pipenv run pip-audit
4848
pipenv verify
4949

5050
lint-apply: # Apply changes with 'black' and resolve 'fixable errors' with 'ruff'

Pipfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ mypy = "*"
1313
pre-commit = "*"
1414
pytest = "*"
1515
ruff = "*"
16+
pip-audit = "*"
1617

1718
[requires]
1819
python_version = "3.12"

0 commit comments

Comments
 (0)