Skip to content

Commit

Permalink
ci: switch autopep8 action (#4322)
Browse files Browse the repository at this point in the history
  • Loading branch information
lrstewart authored Dec 15, 2023
1 parent c0bcde3 commit ccfa3b2
Show file tree
Hide file tree
Showing 8 changed files with 395 additions and 369 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/ci_linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,16 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v3
- name: pep8 exp
uses: lrstewart/autopep8_action@python-latest
- name: Run autopep8
id: autopep8
uses: peter-evans/autopep8@v2
with:
dry: true
checkpath: ./tests/integrationv2/*.py
args: --diff --exit-code .
- name: Check exit code
if: steps.autopep8.outputs.exit-code != 0
run: |
echo "Run 'autopep8 --in-place .' to fix"
exit 1
clang-format:
runs-on: ubuntu-latest
steps:
Expand Down
1 change: 0 additions & 1 deletion tests/integrationv2/.pep8 → .pep8
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
[pep8]
max_line_length = 120
in-place = true
recursive = true
Loading

0 comments on commit ccfa3b2

Please sign in to comment.