Skip to content

Commit

Permalink
Merge pull request #202 from LSSTDESC/u/yymao/update-linter-arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
yymao committed May 4, 2020
2 parents 1728ad5 + 57b8a6e commit 9e39970
Showing 1 changed file with 4 additions and 7 deletions.
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

0 comments on commit 9e39970

Please sign in to comment.