8000 Added some of the PEP8 guidelines to ignore in the coding standards t… · matplotlib/matplotlib@bc3e3ed · GitHub
[go: up one dir, main page]

Skip to content

Commit bc3e3ed

Browse files
committed
Added some of the PEP8 guidelines to ignore in the coding standards test.
1 parent fd57377 commit bc3e3ed

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

lib/matplotlib/tests/test_coding_standards.py

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,40 +23,28 @@ class StandardReportWithExclusions(pep8.StandardReport):
2323
'*/matplotlib/bezier.py',
2424
'*/matplotlib/cbook.py',
2525
'*/matplotlib/collections.py',
26-
'*/matplotlib/colorbar.py',
2726
'*/matplotlib/dates.py',
2827
'*/matplotlib/docstring.py',
2928
'*/matplotlib/dviread.py',
3029
'*/matplotlib/finance.py',
3130
'*/matplotlib/font_manager.py',
3231
'*/matplotlib/fontconfig_pattern.py',
3332
'*/matplotlib/gridspec.py',
34-
'*/matplotlib/hatch.py',
3533
'*/matplotlib/image.py',
3634
'*/matplotlib/legend.py',
3735
'*/matplotlib/legend_handler.py',
3836
'*/matplotlib/mathtext.py',
3937
'*/matplotlib/mlab.py',
4038
'*/matplotlib/nxutils.py',
41-
'*/matplotlib/offsetbox.py',
42-
'*/matplotlib/patches.py',
4339
'*/matplotlib/path.py',
4440
'*/matplotlib/patheffects.py',
4541
'*/matplotlib/pylab.py',
4642
'*/matplotlib/pyplot.py',
47-
'*/matplotlib/quiver.py',
4843
'*/matplotlib/rcsetup.py',
49-
'*/matplotlib/sankey.py',
50-
'*/matplotlib/scale.py',
5144
'*/matplotlib/stackplot.py',
52-
'*/matplotlib/streamplot.py',
53-
'*/matplotlib/table.py',
5445
'*/matplotlib/texmanager.py',
5546
'*/matplotlib/text.py',
56-
'*/matplotlib/textpath.py',
5747
'*/matplotlib/ticker.py',
58-
'*/matplotlib/tight_bbox.py',
59-
'*/matplotlib/tight_layout.py',
6048
'*/matplotlib/transforms.py',
6149
'*/matplotlib/type1font.py',
6250
'*/matplotlib/widgets.py',
@@ -72,7 +60,6 @@ class StandardReportWithExclusions(pep8.StandardReport):
7260
'*/matplotlib/testing/jpl_units/UnitDblConverter.py',
7361
'*/matplotlib/testing/jpl_units/UnitDblFormatter.py',
7462
'*/matplotlib/testing/jpl_units/__init__.py',
75-
'*/matplotlib/tri/triangulation.py',
7663
'*/matplotlib/tri/tricontour.py',
7764
'*/matplotlib/tri/triinterpolate.py',
7865
'*/matplotlib/tri/tripcolor.py',
@@ -147,8 +134,6 @@ class StandardReportWithExclusions(pep8.StandardReport):
147134
'*/matplotlib/backends/windowing.py',
148135
'*/matplotlib/backends/qt4_editor/figureoptions.py',
149136
'*/matplotlib/backends/qt4_editor/formlayout.py',
150-
'*/matplotlib/delaunay/interpolate.py',
151-
'*/matplotlib/delaunay/testfuncs.py',
152137
'*/matplotlib/sphinxext/__init__.py',
153138
'*/matplotlib/sphinxext/ipython_console_highlighting.py',
154139
'*/matplotlib/sphinxext/ipython_directive.py',
@@ -202,6 +187,11 @@ def test_pep8_conformance():
202187
pep8style = pep8.StyleGuide(quiet=False,
203188
reporter=StandardReportWithExclusions)
204189

190+
# Extend the number of PEP8 guidelines which are not checked.
191+
pep8style.options.ignore = pep8style.options.ignore + ('E121', 'E122',
192+
'E123', 'E124', 'E125', 'E126', 'E127',
193+
'E128')
194+
205195
# Allow users to add their own exclude list.
206196
extra_exclude_file = os.path.join(os.path.dirname(__file__),
207197
'.pep8_test_exclude.txt')

0 commit comments

Comments
 (0)
0