From 15e8f35f25ad8fd2836e0ac97a4363d4b5eafb08 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Fri, 29 Oct 2021 11:49:20 -0400 Subject: [PATCH] Better output on linter failure in CI --- .github/workflows/lint.yml | 2 +- noxfile.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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")