Skip to content

Commit 4edf821

Browse files
author
Eugene Dementyev
committed
Replace safety with pip_audit
1 parent 7f35931 commit 4edf821

5 files changed

Lines changed: 9 additions & 2 deletions

File tree

‎.dockerignore‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
**/.git*
2+
.git/
3+
.github/
4+
.circleci/

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.venv

‎Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ FROM python:3.9-slim AS static-analysis
33
WORKDIR /project
44
COPY requirements/static_analysis.txt requirements/static_analysis.txt
55
RUN pip install -r requirements/static_analysis.txt
6-
COPY . /project
6+
COPY safety-shim.sh /usr/local/bin/safety

‎requirements/static_analysis.txt‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@ flake8-print
66
flake8-spellcheck
77
isort~=5.10.1
88
pip_audit~=2.4
9-
safety

‎safety-shim.sh‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
exec pip-audit --no-deps $@

0 commit comments

Comments
 (0)