From 3e550ba813155b0ed0fbb1f6cfb950c166c6c45f Mon Sep 17 00:00:00 2001 From: Lucina Date: Sat, 1 May 2021 16:42:01 +0100 Subject: [PATCH] Upgrade pip before running safety This avoids it erroring due to https://github.com/pypa/pip/pull/9827 --- pipelines/safety.nox.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pipelines/safety.nox.py b/pipelines/safety.nox.py index ed0ee66d9..a7830ec64 100644 --- a/pipelines/safety.nox.py +++ b/pipelines/safety.nox.py @@ -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")