Skip to content

Commit

Permalink
workflow: control flake8 from .flake8 config file (#1194)
Browse files Browse the repository at this point in the history
* workflow: main: backport c84f109

* workflow: control flake8 from .flake8 config file

This way, when we add or remove warnings/errors, we can just edit one
file, and also just run `flake8 .` locally instead of copypasting the
entire command, warnings and all.
  • Loading branch information
lifehackerhansol authored May 31, 2023
1 parent dd8ca17 commit 5f052c6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[flake8]
extend-ignore = E501,E722,W503
2 changes: 1 addition & 1 deletion .github/workflows/flake8_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:
python -m pip install flake8
- name: Check with flake8
run: |
flake8 . --ignore=E501,E722,W503 --exclude=migrations
flake8 .
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
python -m pip install flake8
- name: Check with flake8
run: |
flake8 . --ignore=E501,E722,E126,E128,W503,E121 --exclude=migrations
flake8 .
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
Expand Down

0 comments on commit 5f052c6

Please sign in to comment.