From 0461d74e181f1de4023fabe5bc87a1f3c6307f8d Mon Sep 17 00:00:00 2001 From: Tom Date: Tue, 28 Dec 2021 13:31:36 +0000 Subject: [PATCH] Pin virtualenv version in lint session --- noxfile.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/noxfile.py b/noxfile.py index cea922fb..d807c0bb 100644 --- a/noxfile.py +++ b/noxfile.py @@ -93,7 +93,9 @@ def cover(session): @nox.session(python="3.9") def lint(session): """Run pre-commit linting.""" - session.install("pre-commit") + # Pin virtualenv for pre-commit run + # See https://github.com/theacodes/nox/issues/545 + session.install("virtualenv==20.10.0", "pre-commit") session.run( "pre-commit", "run", "--all-files", "--show-diff-on-failure", *session.posargs )