8000 Added `--no-pep8` key for pytest · matplotlib/matplotlib@db30adf · GitHub
[go: up one dir, main page]

Skip to content

Commit db30adf

Browse files
committed
Added --no-pep8 key for pytest
1 parent 4385f1f commit db30adf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

conftest.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,18 @@ def pytest_addoption(parser):
6666
choices=COLLECT_FILTERS, default='whitelist',
6767
help='filter tests during collection phase')
6868

69+
group.addoption('--no-pep8', action='store_true',
70+
help='skip PEP8 compliance tests')
71+
6972

7073
def pytest_configure(config):
7174
matplotlib._called_from_pytest = True
7275
matplotlib._init_tests()
7376

77+
if config.getoption('--no-pep8'):
78+
default_test_modules.remove('matplotlib.tests.test_coding_standards')
79+
IGNORED_TESTS['matplotlib'] += 'test_coding_standards'
80+
7481

7582
def pytest_unconfigure(config):
7683
matplotlib._called_from_pytest = False

0 commit comments

Comments
 (0)
0