Skip to content

Commit ccfa3b2

Browse files
authored
ci: switch autopep8 action (#4322)
1 parent c0bcde3 commit ccfa3b2

File tree

8 files changed

+395
-369
lines changed

8 files changed

+395
-369
lines changed

.github/workflows/ci_linting.yml

+9-4
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,16 @@ jobs:
7777
steps:
7878
- name: checkout
7979
uses: actions/checkout@v3
80-
- name: pep8 exp
81-
uses: lrstewart/autopep8_action@python-latest
80+
- name: Run autopep8
81+
id: autopep8
82+
uses: peter-evans/autopep8@v2
8283
with:
83-
dry: true
84-
checkpath: ./tests/integrationv2/*.py
84+
args: --diff --exit-code .
85+
- name: Check exit code
86+
if: steps.autopep8.outputs.exit-code != 0
87+
run: |
88+
echo "Run 'autopep8 --in-place .' to fix"
89+
exit 1
8590
clang-format:
8691
runs-on: ubuntu-latest
8792
steps:

tests/integrationv2/.pep8 .pep8

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
[pep8]
22
max_line_length = 120
3-
in-place = true
43
recursive = true

0 commit comments

Comments
 (0)