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 5959 type : boolean
6060 description : " Boolean to enable the YAML lint job. Defaults to true."
6161 default : true
62+ python_lint_check_enabled :
63+ type : boolean
64+ description : " Boolean to enable the Python lint check job. Defaults to true."
65+ default : true
6266
6367# # We are cancelling previously triggered workflow runs
6468concurrency :
@@ -200,3 +204,18 @@ jobs:
200204 run : |
201205 curl -s https://raw.githubusercontent.com/swiftlang/github-workflows/refs/heads/main/.github/workflows/configs/yamllint.yml > /tmp/yamllint.yml
202206 yamllint --strict --config-file /tmp/yamllint.yml ${GITHUB_WORKSPACE}
207+ python-lint-check :
208+ name : Python lint check
209+ if : ${{ inputs.python_lint_check_enabled }}
210+ runs-on : ubuntu-latest
211+ timeout-minutes : 5
212+ steps :
213+ - name : Checkout repository
214+ uses : actions/checkout@v4
215+ with :
216+ persist-credentials : false
217+ - name : Run flake8
218+ run : |
219+ pip3 install flake8 flake8-import-order --break-system-packages
220+ cd ${GITHUB_WORKSPACE}
221+ flake8
You can’t perform that action at this time.
0 commit comments