Skip to content

Commit 15e8f35

Browse files
committed
Better output on linter failure in CI
1 parent 3dd3287 commit 15e8f35

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
python -m pip install --upgrade nox
2828
2929
- name: Run `nox -s lint`
30-
run: python -m nox -s lint
30+
run: python -m nox -s lint -- --show-diff-on-failure
3131

3232
build:
3333
name: Build sdist and wheel

noxfile.py

Lines changed: 1 addition & 1 deletion
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)