8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
--no-pep8
1 parent 4385f1f commit db30adfCopy full SHA for db30adf
conftest.py
@@ -66,11 +66,18 @@ def pytest_addoption(parser):
66
choices=COLLECT_FILTERS, default='whitelist',
67
help='filter tests during collection phase')
68
69
+ group.addoption('--no-pep8', action='store_true',
70
+ help='skip PEP8 compliance tests')
71
+
72
73
def pytest_configure(config):
74
matplotlib._called_from_pytest = True
75
matplotlib._init_tests()
76
77
+ if config.getoption('--no-pep8'):
78
+ default_test_modules.remove('matplotlib.tests.test_coding_standards')
79
+ IGNORED_TESTS['matplotlib'] += 'test_coding_standards'
80
81
82
def pytest_unconfigure(config):
83
matplotlib._called_from_pytest = False
0 commit comments