Skip to content

Commit 1280051

Browse files
Better output on linter failure in CI (#478)
Co-authored-by: Brett Cannon <brett@python.org>
1 parent 917612f commit 1280051

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
cache: "pip"
3232

3333
- name: Run `nox -s lint`
34-
run: pipx run nox --error-on-missing-interpreters -s lint
34+
run: pipx run nox --error-on-missing-interpreters -s lint -- --show-diff-on-failure
3535

3636
build:
3737
name: Build sdist and wheel

noxfile.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def coverage(*args):
5757
def lint(session):
5858
# Run the linters (via pre-commit)
5959
session.install("pre-commit")
60-
session.run("pre-commit", "run", "--all-files")
60+
session.run("pre-commit", "run", "--all-files", *session.posargs)
6161

6262
# Check the distribution
6363
session.install("build", "twine")

0 commit comments

Comments
 (0)