Skip to content

Commit

Permalink
Better output on linter failure in CI (pypa#478)
Browse files Browse the repository at this point in the history
Co-authored-by: Brett Cannon <brett@python.org>
  • Loading branch information
2 people authored and KOLANICH committed Nov 30, 2022
1 parent 1613143 commit 5f2b2ce
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 5f2b2ce

Please sign in to comment.