Skip to content

Commit

Permalink
[MRG] add doctest_optionflags in pyproject.toml (#794)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromedockes authored Nov 4, 2023
1 parent cce9f0c commit 930c7aa
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ jobs:
env:
DEPS_VERSION: ${{ matrix.dependencies-version }}
- shell: bash {0}
run: $GITHUB_WORKSPACE/build_tools/github/test.sh
run: |
cp $GITHUB_WORKSPACE/pyproject.toml .
$GITHUB_WORKSPACE/build_tools/github/test.sh
working-directory: ${{ runner.temp }}
name: 'Run tests'
- uses: codecov/codecov-action@v3
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@ filterwarnings = [
'ignore:elementwise\ comparison\ failed:FutureWarning',
]
addopts = "--doctest-modules"
doctest_optionflags = "NORMALIZE_WHITESPACE ELLIPSIS"
1 change: 0 additions & 1 deletion skrub/_agg_joiner.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,6 @@ class AggTarget(BaseEstimator, TransformerMixin):
3 4 2 ... 1 0.66...
4 5 2 ... 1 0.66...
5 6 2 ... 1 1.00...
<BLANKLINE>
[6 rows x 6 columns]
"""

Expand Down
1 change: 0 additions & 1 deletion skrub/_table_vectorizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,6 @@ class TableVectorizer(TransformerMixin, _BaseComposition):
0 F POL ... 09/22/1986 1986
1 M POL ... 09/12/1988 1988
2 F HHS ... 11/19/1989 1989
<BLANKLINE>
[3 rows x 8 columns]
>>> tv = TableVectorizer()
Expand Down
2 changes: 0 additions & 2 deletions skrub/datasets/_ken_embeddings.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,6 @@ def fetch_ken_embeddings(
2 Frankenstein ... -0.11...
3 Albert_Wesker ... -0.16...
4 Harukanaru_Toki_no_Naka_de_3 ... 0.14...
<BLANKLINE>
[5 rows x 202 columns]
Extracts all embeddings with the "games" type.
Expand All @@ -241,7 +240,6 @@ def fetch_ken_embeddings(
2 Li_Xiayan ... 0.00...
3 Vampire_Night ... -0.14...
4 Shatterhand ... 0.19...
<BLANKLINE>
[5 rows x 202 columns]
It takes less time to load the wanted output, and is more precise as the
Expand Down

0 comments on commit 930c7aa

Please sign in to comment.