Skip to content

Commit

Permalink
Better output on linter failure in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
henryiii committed Oct 29, 2021
1 parent 3dd3287 commit 15e8f35
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 @@ -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
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 15e8f35

Please sign in to comment.