Skip to content

Commit

Permalink
Better output on linter failure in CI (#478)
Browse files Browse the repository at this point in the history
Co-authored-by: Brett Cannon <brett@python.org>
  • Loading branch information
henryiii and brettcannon committed Aug 19, 2022
1 parent 917612f commit 1280051
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Expand Up @@ -31,7 +31,7 @@ jobs:
cache: "pip"

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

build:
name: Build sdist and wheel
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Expand Up @@ -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")
Expand Down

0 comments on commit 1280051

Please sign in to comment.