Skip to content

Commit 0d69803

Browse files
committed
TST set pytest defaults in setup.cfg
1 parent 700efcc commit 0d69803

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

eli5/sklearn_crfsuite/explain_weights.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,14 @@ def filter_transition_coefs(transition_coef, indices):
9191
array([[0]])
9292
>>> filter_transition_coefs(coef, [1, 2])
9393
array([[4, 5],
94-
... [7, 8]])
94+
[7, 8]])
9595
>>> filter_transition_coefs(coef, [2, 0])
9696
array([[8, 6],
97-
... [2, 0]])
97+
[2, 0]])
9898
>>> filter_transition_coefs(coef, [0, 1, 2])
9999
array([[0, 1, 2],
100-
... [3, 4, 5],
101-
... [6, 7, 8]])
100+
[3, 4, 5],
101+
[6, 7, 8]])
102102
"""
103103
indices = np.array(indices)
104104
rows = transition_coef[indices]

setup.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
[bdist_wheel]
22
universal=1
3+
4+
[tool:pytest]
5+
addopts = --doctest-modules
6+
doctest_optionflags = ELLIPSIS ALLOW_UNICODE NORMALIZE_WHITESPACE

0 commit comments

Comments
 (0)