Skip to content

Commit

Permalink
Pin virtualenv version in lint session (#547)
Browse files Browse the repository at this point in the history
  • Loading branch information
FollowTheProcess committed Dec 28, 2021
1 parent f55e9c5 commit bbc47b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion noxfile.py
Expand Up @@ -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
)
Expand Down

0 comments on commit bbc47b4

Please sign in to comment.