Skip to content

Commit f24bde8

Browse files
authored
Merge pull request #85 from MITLibraries/IN-1240-pip-audit
IN-1240 - Replace pipenv check with pip-audit
2 parents b1a4438 + 4b91746 commit f24bde8

File tree

5 files changed

+1010
-762
lines changed

5 files changed

+1010
-762
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
@@ -45,7 +45,7 @@ ruff: # Run 'ruff' linter and print a preview of errors
4545
pipenv run ruff check .
4646

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

5151
lint-apply: black-apply ruff-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
@@ -30,6 +30,7 @@ pytest = "*"
3030
ruff = "*"
3131
setuptools = "*"
3232
pandas-stubs = "*"
33+
pip-audit = "*"
3334

3435
[requires]
3536
python_version = "3.12"

0 commit comments

Comments
 (0)