Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update linter arguments in CI #202

Merged
merged 1 commit into from
May 4, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
python-version: [3.7]

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Cache Python packages
uses: actions/cache@v1
with:
Expand All @@ -36,16 +36,13 @@ jobs:
run: |
pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 descqa* tests --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 descqa descqagen descqaweb descqarun tests --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 descqa* tests --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
flake8 descqa descqagen descqaweb descqarun tests --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Lint with pylint
run: |
pip install pylint
# stop the build if there are Pylint errors
# there is a bug with E1136 (https://github.com/PyCQA/pylint/issues/1498)
# so we temporarily disable it.
pylint --disable=I,C,R,W0511,W0231,E1136 --extension-pkg-whitelist=numpy descqa*
pylint --disable=all --enable=F,E,unreachable,duplicate-key,unnecessary-semicolon,global-variable-not-assigned,unused-variable,binary-op-exception,bad-format-string,anomalous-backslash-in-string,bad-open-mode --extension-pkg-whitelist=numpy descqa descqagen descqaweb descqarun
- name: Test with pytest
run: |
pip install pytest
Expand Down