We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
--no-pep8
1 parent abd769d commit dadeac9Copy full SHA for dadeac9
conftest.py
@@ -63,11 +63,18 @@ def pytest_addoption(parser):
63
choices=COLLECT_FILTERS, default='blacklist',
64
help='filter tests during collection phase')
65
66
+ group.addoption('--no-pep8', action='store_true',
67
+ help='skip PEP8 compliance tests')
68
+
69
70
def pytest_configure(config):
71
matplotlib._called_from_pytest = True
72
matplotlib._init_tests()
73
74
+ if config.getoption('--no-pep8'):
75
+ default_test_modules.remove('matplotlib.tests.test_coding_standards')
76
+ IGNORED_TESTS['matplotlib'] += 'test_coding_standards'
77
78
79
def pytest_unconfigure(config):
80
matplotlib._called_from_pytest = False
0 commit comments