Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dfa2c2c

Browse files
cclaussQuLogic
cclauss
authored andcommitted
Run flake8 instead of pep8 on Python 3.6
As discussed at #10938 (comment) _undefined names_ have [occurred often in the past](https://github.com/matplotlib/matplotlib/pulls?q=is%3Apr+author%3Acclauss+is%3Aclosed) and this change would help to avoid recurrence in the future.
1 parent eaf2e32 commit dfa2c2c

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

.travis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ env:
6363
- NPROC=2
6464
- OPENBLAS_NUM_THREADS=1
6565
- PYTHONFAULTHANDLER=1
66-
- PYTEST_ADDOPTS="-rawR --maxfail=50 --timeout=300 --durations=25 --cov-report= --cov=lib -n $NPROC"
67-
- RUN_PEP8=
66+
- PYTEST_ADDOPTS="-rawR --maxfail=50 --timeout=350 --durations=25 --cov-report= --cov=lib -n $NPROC"
6867

6968
matrix:
7069
include:
@@ -78,7 +77,7 @@ matrix:
7877
- python: 3.6
7978
env:
8079
- DELETE_FONT_CACHE=1
81-
- PYTEST_ADDOPTS="$PYTEST_ADDOPTS --pep8"
80+
- PYTEST_ADDOPTS="$PYTEST_ADDOPTS --flake8"
8281
- EXTRAREQS='-r requirements/testing/travis36.txt'
8382
- python: "nightly"
8483
env: PRE=--pre

pytest.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ markers =
77
network: Mark a test that uses the network.
88
style: Set alternate Matplotlib style temporarily.
99

10-
pep8ignore =
11-
* E111 E114 E115 E116 E121 E122 E123 E124 E125 E126 E127 E128 E129 E131 E226 E240 E241 E242 E243 E244 E245 E246 E247 E248 E249 E265 E266 E704 W503
10+
flake8-ignore =
11+
* E111 E114 E115 E116 E121 E122 E123 E124 E125 E126 E127 E128 E129 E131 E226 E240 E241 E242 E243 E244 E245 E246 E247 E248 E249 E265 E266 E305 E306 E704 E722 E741 F401 F403 F811 F841 W503
1212

1313
setup.py E402
1414
setupext.py E301 E302 E501

requirements/testing/travis36.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
pandas<0.21.0
44
jupyter
5-
pytest-pep8
5+
pytest-flake8

0 commit comments

Comments
 (0)