8000 MAINT make pytest collect everything that doesn't fail · scikit-learn/scikit-learn@b53b191 · GitHub
[go: up one dir, main page]

Skip to content

Commit b53b191

Browse files
committed
MAINT make pytest collect everything that doesn't fail
1 parent 5ddda43 commit b53b191

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

doc/tutorial/text_analytics/skeletons/exercise_01_language_train_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
cm = metrics.confusion_matrix(y_test, y_predicted)
4747
print(cm)
4848

49-
#import matplotlib.pyplot as plt
49+
#import matlotlib.pyplot as plt
5050
#plt.matshow(cm, cmap=plt.cm.jet)
5151
#plt.show()
5252

doc/tutorial/text_analytics/skeletons/exercise_02_sentiment.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
# more useful.
4545
# Fit the pipeline on the training set using grid search for the parameters
4646

47-
# TASK: print the cross-validated scores for the each parameters set
48-
# explored by the grid search
47+
# TASK: print the mean and std for each candidate along with the parameter
48+
# settings for all the candidates explored by grid search.
4949

5050
# TASK: Predict the outcome on the testing set and store it in a variable
5151
# named y_predicted

setup.cfg

Lines changed: 12 additions & 1 deletion
9B1D
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,22 @@ ignore-files=^setup\.py$
2727
# rewrite tests using yield with parametrize
2828
addopts =
2929
--doctest-modules
30+
--doctest-glob='*.rst'
3031
--disable-pytest-warnings
3132
--ignore=benchmarks/
32-
--ignore=doc/
3333
--ignore=examples/
3434
--ignore=setup.py
35+
--ignore=doc/conf.py
36+
--ignore=doc/sphinxext/sphinx_issues.py
37+
--ignore=doc/tutorial/machine_learning_map/
38+
--ignore=doc/tutorial/text_analytics/data/languages/fetch_data.py
39+
--ignore=doc/tutorial/text_analytics/skeletons/exercise_01_language_train_model.py
40+
--ignore=doc/tutorial/text_analytics/solutions/exercise_01_language_train_model.py
41+
# ignore packages that fail with py._path.local.LocalPath.ImportMismatchError
42+
# (cf pytest-dev/pytest#2042)
43+
--ignore=doc/tutorial/text_analytics/data/movie_reviews/fetch_data.py
44+
--ignore=doc/tutorial/text_analytics/data/twenty_newsgroups/fetch_data.py
45+
--ignore=doc/tutorial/text_analytics/solutions/exercise_02_sentiment.py
3546

3647
[wheelhouse_uploader]
3748
artifact_indexes=

0 commit comments

Comments
 (0)
0