-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add automated pep8 format check (#91)
* Add workflow for python script format check * Add pep8 format style * Update .pep8 * Add flag to ignore local config * Format files with autopep8 * Format * Add workflow for python script format check * Add pep8 format style * Update .pep8 * Add flag to ignore local config * Format files with autopep8 * Format * Format fixes * Space alignment
- Loading branch information
1 parent
bc005c4
commit c396315
Showing
12 changed files
with
269 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: autopep8 | ||
on: [push, pull_request] | ||
jobs: | ||
autopep8_check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: autopep8 | ||
id: autopep8 | ||
uses: peter-evans/autopep8@v1 | ||
with: | ||
args: --ignore-local-config --recursive --diff --aggressive --aggressive --exit-code --ignore E402 --max-line-length 120 . | ||
- name: Fail if autopep8 made changes | ||
if: ${{ steps.autopep8.outputs.exit-code == 2 }} | ||
run: exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[pycodestyle] | ||
max_line_length = 120 | ||
ignore = E402 | ||
in-place = true | ||
aggressive = 2 | ||
recursive = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.