forked from fogleman/Minecraft
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add automatic checks of the pep8 using flake8 and Github Actions
Like fogleman#35, I believe that project is a great educational tool, an impressive achievement, and a reference for clean Python code. Warnings F403 and F405 are currently ignored. That could be removed when fogleman#124 is merged. Warnings E128,E201,E226,E231 could be removed if autopep8 or similar is used. I advise to merge fogleman#124 before, to limit the risk of merge conflict. I fixed 3 small pep8 issues in main.py too.
- Loading branch information
1 parent
e311522
commit f42fc9e
Showing
3 changed files
with
30 additions
and
2 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,18 @@ | ||
name: Flake8 Lint | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
flake8-lint: | ||
runs-on: ubuntu-latest | ||
name: Lint | ||
steps: | ||
- name: Check out source repository | ||
uses: actions/checkout@v2 | ||
- name: Set up Python environment | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: "3.6" | ||
- name: flake8 Lint | ||
uses: py-actions/flake8@v1 | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[metadata] | ||
description-file = README.md | ||
|
||
[flake8] | ||
max-line-length = 100 | ||
extend-exclude = env/* | ||
ignore = | ||
E128,E201,E226,E231 # FIXME: use autopep8 on main.py | ||
F403,F405 # FIXME: Can be removed when #124 is merged |