We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 174ed0e commit b5ba754Copy full SHA for b5ba754
.github/workflows/python-stylecheck.yml
@@ -0,0 +1,26 @@
1
+name: Python Style Checks
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - edge
7
+ - main
8
+ pull_request:
9
10
11
12
13
+jobs:
14
+ stylecheckpython:
15
+ name: Style Check Python with Lint
16
+ runs-on: ubuntu-latest
17
+ steps:
18
+ - name: Check out source repository
19
+ uses: actions/checkout@v4
20
+ - name: Get changed python files between base and head
21
+ run: >
22
+ echo "CHANGED_FILES=$(echo $(git diff --name-only ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} -- | grep \.py))" >> $GITHUB_ENV
23
+ - if: ${{ env.CHANGED_FILES }}
24
+ uses: marian-code/python-lint-annotate@v4
25
+ with:
26
+ python-root-list: ${{ env.CHANGED_FILES }}
0 commit comments