Skip to content

Commit

Permalink
Fix project's noxfile sessions definition (#539)
Browse files Browse the repository at this point in the history
  • Loading branch information
FollowTheProcess committed Dec 27, 2021
1 parent 1c078d6 commit 583a333
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion noxfile.py
Expand Up @@ -24,7 +24,7 @@
ON_WINDOWS_CI = "CI" in os.environ and platform.system() == "Windows"

# Skip 'conda_tests' if user doesn't have conda installed
nox.options.sessions = ["tests", "cover", "blacken", "lint", "docs"]
nox.options.sessions = ["tests", "cover", "lint", "docs"]
if shutil.which("conda"):
nox.options.sessions.append("conda_tests")

Expand Down Expand Up @@ -92,6 +92,7 @@ def cover(session):

@nox.session(python="3.9")
def lint(session):
"""Run pre-commit linting."""
session.install("pre-commit")
session.run(
"pre-commit", "run", "--all-files", "--show-diff-on-failure", *session.posargs
Expand Down

0 comments on commit 583a333

Please sign in to comment.