Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
Pillow
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenVMS
Python
Modules
Pillow
Commits
2d61e7142693
Commit
2d61e7142693
authored
5 years ago
by
Andrew Murray
Browse files
Options
Downloads
Plain Diff
Merge pull request #4716 from hugovk/pre-commit-diff
CI: Show diff when pre-commit fails
parents
73de978a864b
f287b53ade27
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.github/workflows/lint.yml
+3
-1
3 additions, 1 deletion
.github/workflows/lint.yml
setup.cfg
+1
-1
1 addition, 1 deletion
setup.cfg
tox.ini
+2
-1
2 additions, 1 deletion
tox.ini
with
6 additions
and
3 deletions
.github/workflows/lint.yml
+
3
−
1
View file @
2d61e714
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
-
uses
:
actions/checkout@v2
-
uses
:
actions/checkout@v2
-
name
:
pip cache
-
name
:
pip cache
uses
:
actions/cache@v
1
uses
:
actions/cache@v
2
with
:
with
:
path
:
~/.cache/pip
path
:
~/.cache/pip
key
:
lint-pip-${{ hashFiles('**/setup.py') }}
key
:
lint-pip-${{ hashFiles('**/setup.py') }}
...
@@ -46,4 +46,6 @@
...
@@ -46,4 +46,6 @@
-
name
:
Lint
-
name
:
Lint
run
:
tox -e lint
run
:
tox -e lint
env
:
PRE_COMMIT_COLOR
:
always
This diff is collapsed.
Click to expand it.
setup.cfg
+
1
−
1
View file @
2d61e714
...
@@ -9,5 +9,5 @@
...
@@ -9,5 +9,5 @@
multi_line_output
=
3
multi_line_output
=
3
[tool:pytest]
[tool:pytest]
addopts
=
-ra
addopts
=
-ra
--color=yes
testpaths
=
Tests
testpaths
=
Tests
This diff is collapsed.
Click to expand it.
tox.ini
+
2
−
1
View file @
2d61e714
...
@@ -24,9 +24,9 @@
...
@@ -24,9 +24,9 @@
[testenv:lint]
[testenv:lint]
commands
=
commands
=
pre-commit
run
--all-files
pre-commit
run
--all-files
--show-diff-on-failure
check-manifest
check-manifest
deps
=
deps
=
pre-commit
pre-commit
check-manifest
check-manifest
skip_install
=
true
skip_install
=
true
...
@@ -28,5 +28,6 @@
...
@@ -28,5 +28,6 @@
check-manifest
check-manifest
deps
=
deps
=
pre-commit
pre-commit
check-manifest
check-manifest
skip_install
=
true
skip_install
=
true
passenv
=
PRE_COMMIT_COLOR
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment