Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip stderr checks in nbval #358

Merged
merged 11 commits into from
Jan 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ doc/build

# example files
doc/source/examples/**/*.*
!doc/source/examples/conftest.py
!doc/source/examples/__init__.py
!doc/source/examples/**/*.ipynb
!doc/source/examples/**/*.rst
!doc/source/examples/**/*.gif
Expand Down
Empty file added doc/source/examples/__init__.py
Empty file.
6 changes: 6 additions & 0 deletions doc/source/examples/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# type: ignore


def pytest_collectstart(collector):
if collector.fspath and collector.fspath.ext == ".ipynb":
collector.skip_compare += ("stderr",)
1 change: 1 addition & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
mypy_path = doc/source/scripts/
exclude =
conf.py
conftest.py
2 changes: 1 addition & 1 deletion tests/pytest.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[pytest]
addopts = --nbval --current-env --sanitize-with ./sanitize_output.cfg
addopts = --nbval --nbval-current-env --nbval-sanitize-with ./sanitize_output.cfg
testpaths =
../doc/source/examples/analysis/volumetric/
../doc/source/examples/analysis/custom_parallel_analysis.ipynb
Expand Down