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 )