Skip to content

Commit a6cc0c6

Browse files
authored
Merge pull request #3 from springload/feature/pip_audit
Replace safety with pip_audit
2 parents 217d1ca + f1ffb6b commit a6cc0c6

5 files changed

Lines changed: 13 additions & 1 deletion

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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ 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 safety-shim.sh /usr/local/bin/safety
7+
68
RUN apt-get update && apt-get install -y \
79
wget \
810
&& rm -rf /var/lib/apt/lists/*

‎requirements/static_analysis.txt‎

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

‎safety-shim.sh‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
3+
echo "This will run pip-audit instead of safety has changed its licence, not allowing to be used commercially."
4+
echo "Please change your script to actually run pip-audit."
5+
6+
exec pip-audit --no-deps $@

0 commit comments

Comments
 (0)