From 6b4c960c73d7b4d2ec2604a601e262d47922c6a3 Mon Sep 17 00:00:00 2001 From: Joel Nothman Date: Thu, 7 Sep 2017 11:13:54 +1000 Subject: [PATCH 1/5] MAINT Ignore benchmarks/ in pytest --- setup.cfg | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.cfg b/setup.cfg index 378905311e17e..874fe56ecc295 100644 --- a/setup.cfg +++ b/setup.cfg @@ -28,6 +28,7 @@ ignore-files=^setup\.py$ addopts = --doctest-modules --disable-pytest-warnings + --ignore=benchmarks/ [wheelhouse_uploader] artifact_indexes= From e8b29bb6dea464afe557447b3d9968ba812b0728 Mon Sep 17 00:00:00 2001 From: Roman Yurchak Date: Tue, 26 Sep 2017 18:09:50 +0200 Subject: [PATCH 2/5] MAINT Ignore doc/ and examples/ in pytest --- setup.cfg | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.cfg b/setup.cfg index 874fe56ecc295..909f3a4d29dd9 100644 --- a/setup.cfg +++ b/setup.cfg @@ -29,6 +29,8 @@ addopts = --doctest-modules --disable-pytest-warnings --ignore=benchmarks/ + --ignore=doc/ + --ignore=examples/ [wheelhouse_uploader] artifact_indexes= From 5ddda433aa6e1145d29afec058adf77e5670f625 Mon Sep 17 00:00:00 2001 From: Roman Yurchak Date: Wed, 27 Sep 2017 10:52:49 +0200 Subject: [PATCH 3/5] MAINT Add setup.py to pytest ignore --- setup.cfg | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.cfg b/setup.cfg index 909f3a4d29dd9..59eb29214d3e9 100644 --- a/setup.cfg +++ b/setup.cfg @@ -31,6 +31,7 @@ addopts = --ignore=benchmarks/ --ignore=doc/ --ignore=examples/ + --ignore=setup.py [wheelhouse_uploader] artifact_indexes= From 278583636152659acdd35ca72a785642f4dad440 Mon Sep 17 00:00:00 2001 From: Roman Yurchak Date: Wed, 27 Sep 2017 14:17:13 +0200 Subject: [PATCH 4/5] MAINT make pytest collect everything that doesn't fail --- setup.cfg | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 59eb29214d3e9..b489be6235c41 100644 --- a/setup.cfg +++ b/setup.cfg @@ -27,11 +27,22 @@ ignore-files=^setup\.py$ # rewrite tests using yield with parametrize addopts = --doctest-modules + --doctest-glob='*.rst' --disable-pytest-warnings --ignore=benchmarks/ - --ignore=doc/ --ignore=examples/ --ignore=setup.py + --ignore=doc/conf.py + --ignore=doc/sphinxext/sphinx_issues.py + --ignore=doc/tutorial/machine_learning_map/ + --ignore=doc/tutorial/text_analytics/data/languages/fetch_data.py + --ignore=doc/tutorial/text_analytics/skeletons/exercise_01_language_train_model.py + --ignore=doc/tutorial/text_analytics/solutions/exercise_01_language_train_model.py + # ignore packages that fail with py._path.local.LocalPath.ImportMismatchError + # (cf pytest-dev/pytest#2042) + --ignore=doc/tutorial/text_analytics/data/movie_reviews/fetch_data.py + --ignore=doc/tutorial/text_analytics/data/twenty_newsgroups/fetch_data.py + --ignore=doc/tutorial/text_analytics/solutions/exercise_02_sentiment.py [wheelhouse_uploader] artifact_indexes= From 8dea7e542ff76b94938852f7fa6d4ff4e1bc56d8 Mon Sep 17 00:00:00 2001 From: Roman Yurchak Date: Thu, 8 Mar 2018 23:25:58 +0100 Subject: [PATCH 5/5] Simplify ignore flags --- setup.cfg | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/setup.cfg b/setup.cfg index 2b053f65e015e..01622595f8d60 100644 --- a/setup.cfg +++ b/setup.cfg @@ -12,16 +12,11 @@ addopts = --ignore=examples/ --ignore=setup.py --ignore=doc/conf.py - --ignore=doc/sphinxext/sphinx_issues.py + --ignore=doc/sphinxext/ + --ignore=doc/tutorial/text_analytics/ --ignore=doc/tutorial/machine_learning_map/ - --ignore=doc/tutorial/text_analytics/data/languages/fetch_data.py - --ignore=doc/tutorial/text_analytics/skeletons/exercise_01_language_train_model.py - --ignore=doc/tutorial/text_analytics/solutions/exercise_01_language_train_model.py - # ignore packages that fail with py._path.local.LocalPath.ImportMismatchError - # (cf pytest-dev/pytest#2042) - --ignore=doc/tutorial/text_analytics/data/movie_reviews/fetch_data.py - --ignore=doc/tutorial/text_analytics/data/twenty_newsgroups/fetch_data.py - --ignore=doc/tutorial/text_analytics/solutions/exercise_02_sentiment.py + --ignore=doc/auto_examples/ + --ignore=doc/_build/ [wheelhouse_uploader] artifact_indexes=