File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -92,11 +92,14 @@ jobs:
92
92
# black and flake8 action. As pre-commit does not support user installs,
93
93
# we set PIP_USER=0 to not do a user install.
94
94
- name : Run pre-commit hooks
95
+ id : pre-commit
95
96
run : export PIP_USER=0; SKIP="no-commit-to-branch,black,flake8" pre-commit run --all-files
96
97
97
98
# Run black seperately as we don't want to reformat the files
98
99
# just error if something isn't formatted correctly.
99
100
- name : Check files with black
101
+ id : black
102
+ if : always() && (steps.pre-commit.outcome == 'success' || steps.pre-commit.outcome == 'failure')
100
103
run : black . --check --diff --color
101
104
102
105
# Run flake8 and have it format the linting errors in the format of
@@ -108,6 +111,8 @@ jobs:
108
111
# Format used:
109
112
# ::error file={filename},line={line},col={col}::{message}
110
113
- name : Run flake8
114
+ id : flake8
115
+ if : always() && (steps.pre-commit.outcome == 'success' || steps.pre-commit.outcome == 'failure')
111
116
run : " flake8 \
112
117
--format='::error file=%(path)s,line=%(row)d,col=%(col)d::\
113
118
[flake8] %(code)s: %(text)s'"
You can’t perform that action at this time.
0 commit comments