From ff5a3c5c7a9ae00017e1427bdfb15bc7cb3b89e1 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 25 Sep 2016 04:02:12 +0300 Subject: [PATCH] Exclude tests/conftest.py from flake8 tests with directive --- setup.cfg | 2 +- tests/conftest.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.cfg b/setup.cfg index 597917f..e38bff0 100644 --- a/setup.cfg +++ b/setup.cfg @@ -11,5 +11,5 @@ tag_date = 0 tag_svn_revision = 0 [flake8] -exclude = .git,.tox,docs/conf.py,tests/conftest.py,ez_setup.py +exclude = .git,.tox,docs/conf.py,ez_setup.py diff --git a/tests/conftest.py b/tests/conftest.py index b1fda3b..16600e7 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,4 +1,5 @@ -# noqa: imported for pytest +# flake8: noqa +# Skip testing the entire module: names here are imported for pytest from sqlobject.conftest import \ pytest_addoption, pytest_configure, setup_tests -- 2.39.5