Thanks to visit codestin.com Credit goes to github.com
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 eabbbd6 commit 3f11001Copy full SHA for 3f11001
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