-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: added flake8 github action (#364)
* CI: added flake8 github action Handles #352 * minor: change path for flake8 action * minor: fix spaces in ignore of flake8 action * minor: add more ignore in flake8 action * minor: try to add per-file-ignore to flake8 action * minor: added flake8 to setup.cfg and makefile
- Loading branch information
Showing
6 changed files
with
47 additions
and
3 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,24 @@ | ||
# This workflow runs Flake8 on the PR | ||
# For more information see: https://github.com/marketplace/actions/python-flake8-lint | ||
name: PyLops-flake8 | ||
|
||
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@v2 | ||
with: | ||
python-version: "3.8" | ||
- name: flake8 Lint | ||
uses: py-actions/flake8@v2 | ||
with: | ||
ignore: "E203,E501,W503,E402" | ||
max-line-length: "88" | ||
path: "pylops" | ||
args: "--per-file-ignores=__init__.py:F401,F403,F405" |
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 |
---|---|---|
|
@@ -39,3 +39,6 @@ doc: | |
|
||
docupdate: | ||
cd docs && make html && cd .. | ||
|
||
lint: | ||
flake8 docs/ examples/ pylops/ pytests/ tutorials/ |
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 |
---|---|---|
|
@@ -31,3 +31,4 @@ dependencies: | |
- sphinx-gallery | ||
- nbsphinx | ||
- image | ||
- flake8 |
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 |
---|---|---|
|
@@ -22,3 +22,4 @@ pre-commit | |
autopep8 | ||
isort | ||
black | ||
flake8 |
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