File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 51
51
type : string
52
52
description : " Container image for the shell check job. Defaults to latest Swift Ubuntu image."
53
53
default : " swift:6.0-noble"
54
+ python_lint_enabled :
55
+ type : boolean
56
+ description : " Boolean to enable the Python lint job. Defaults to true."
57
+ default : true
54
58
55
59
# # We are cancelling previously triggered workflow runs
56
60
concurrency :
@@ -177,3 +181,18 @@ jobs:
177
181
run : |
178
182
apt-get -qq update && apt-get -qq -y install shellcheck
179
183
git ls-files -z '*.sh' | xargs -0 shellcheck
184
+ python-lint :
185
+ name : Python lint
186
+ if : ${{ inputs.python_lint_enabled }}
187
+ runs-on : ubuntu-latest
188
+ timeout-minutes : 5
189
+ steps :
190
+ - name : Checkout repository
191
+ uses : actions/checkout@v4
192
+ with :
193
+ persist-credentials : false
194
+ - name : Run flake8
195
+ run : |
196
+ pip3 install flake8 flake8-import-order --break-system-packages
197
+ cd ${GITHUB_WORKSPACE}
198
+ flake8
You can’t perform that action at this time.
0 commit comments