diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d03f16fd..24172eb3 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -27,7 +27,7 @@ jobs: python -m pip install --upgrade nox - name: Run `nox -s lint` - run: python -m nox -s lint + run: python -m nox -s lint -- --show-diff-on-failure build: name: Build sdist and wheel diff --git a/noxfile.py b/noxfile.py index 956201a6..6d832836 100644 --- a/noxfile.py +++ b/noxfile.py @@ -57,7 +57,7 @@ def coverage(*args): def lint(session): # Run the linters (via pre-commit) session.install("pre-commit") - session.run("pre-commit", "run", "--all-files") + session.run("pre-commit", "run", "--all-files", *session.posargs) # Check the distribution session.install("build", "twine")