-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create lint_check.yml * Update lint_check.yml * Update lint_check.yml * Modify files with lint-check * Modify length of comments. * Add pylintrc file borrowed from InternEvo repo * Add __init__.py for pylint check.
- Loading branch information
1 parent
b95ee43
commit 36835ce
Showing
25 changed files
with
522 additions
and
29 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,37 @@ | ||
name: lint-check | ||
|
||
on: | ||
push: | ||
pull_request: | ||
branches: | ||
- "main" | ||
|
||
jobs: | ||
# lint check can be auto-executed by the workflow | ||
lint-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: lint-flake8 | ||
run: | | ||
pip install flake8==v3.8.4 | ||
FLAKE_DISABLE_LIST="F403,F405,W504,W503,E203" | ||
flake8 --max-line-length=120 --ignore=$FLAKE_DISABLE_LIST ./examples/* | ||
- name: lint-isort | ||
run: | | ||
pip install isort==5.12.0 | ||
isort --check --profile=black ./examples/* | ||
- name: lint-black | ||
run: | | ||
pip install black==22.8.0 | ||
BLACK_EXCLUDE_SETTINGS='\.venv/|\.local/|\.cache/|\.git/' | ||
black --line-length=120 --check --exclude $BLACK_EXCLUDE_SETTINGS ./examples/* | ||
- name: lint-pylint | ||
run: | | ||
pip install pylint==v2.17.2 | ||
PYLINT_DISABLE_LIST="C0114,C0415,W0212,W0235,W0238,W0621,C0103,R1735,C2801,E0402,C0412,W0719,R1728,W1514,W0718,W0105,W0707,C0209,W0703,W1203" | ||
pylint --rcfile .pylintrc --disable=$PYLINT_DISABLE_LIST ./examples/* |
Oops, something went wrong.