8000 PEP8 : ignore E402 on examples · matplotlib/matplotlib@80712dc · GitHub
[go: up one dir, main page]

Skip to content

Commit 80712dc

Browse files
committed
PEP8 : ignore E402 on examples
E404 checks that all imports are before any statements which does not work with needing to call `mpl.use` before importing pyplot
1 parent 562987e commit 80712dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/tests/test_coding_standards.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ def test_pep8_conformance_examples():
279279
assert_pep8_conformance(dirname=exdir,
280280
extra_exclude_directories=blacklist,
281281
pep8_additional_ignore=PEP8_ADDITIONAL_IGNORE +
282-
['E116', 'E501'],
282+
['E116', 'E501', 'E402'],
283283
expected_bad_files=expected_bad_files)
284284

285285

0 commit comments

Comments
 (0)
0