Skip to content

Commit 082700a

Browse files
authored
Ir 233 validate all (#96)
* Add pip-audit and update dependencies * IR-233 validate all Why these changes are being introduced: * Add CLI command to validate all AIPs in a given AWS environment How this addresses that need: * Add validate-all CLI command and corresponding CLI test * Add logging statement to bulk-validate CLI command and update corresponding CLI tests Side effects of this change: * None Relevant ticket(s): * https://mitlibraries.atlassian.net/browse/IR-233 * Updates based on discussion in PR # 96 * Add bulk-validate args to validate-all * Remove unnecessary .seek() call
1 parent 252bc4f commit 082700a

6 files changed

Lines changed: 554 additions & 249 deletions

File tree

.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
@@ -93,7 +93,7 @@ ruff: # Run 'ruff' linter and print a preview of errors
9393
pipenv run ruff check .
9494

9595
safety: # Check for security vulnerabilities and verify Pipfile.lock is up-to-date
96-
pipenv check --auto-install
96+
pipenv run pip-audit
9797
pipenv verify
9898

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

Pipfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,14 @@ coveralls = "*"
1818
ipython = "*"
1919
mypy = "*"
2020
pandas-stubs = "*"
21+
pip-audit = "*"
2122
pre-commit = "*"
2223
pytest = "*"
2324
pytest-mock = "*"
25+
pytest-reraise = "*"
2426
ruff = "*"
2527
setuptools = "*"
2628
types-requests = "*"
27-
pytest-reraise = "*"
2829

2930
[requires]
3031
python_version = "3.12"

0 commit comments

Comments
 (0)