Skip to content

Commit

Permalink
Upgrade pip before running safety
Browse files Browse the repository at this point in the history
This avoids it erroring due to pypa/pip#9827
  • Loading branch information
FasterSpeeding committed May 1, 2021
1 parent 0924f87 commit 3e550ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pipelines/safety.nox.py
Expand Up @@ -27,5 +27,7 @@
@nox.session(reuse_venv=True)
def safety(session: nox.Session) -> None:
"""Perform dependency scanning."""
# Temporary addition to avoid safety erroring due to https://github.com/pypa/pip/pull/9827
session.install("--upgrade", "pip")
session.install("-r", "requirements.txt", "-r", "dev-requirements.txt")
session.run("safety", "check", "--full-report")

0 comments on commit 3e550ba

Please sign in to comment.