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

Doctest #1440

Draft
wants to merge 4 commits into
base: main-dev
Choose a base branch
from
Draft

Doctest #1440

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
6 changes: 6 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Root level conftest to ignore scripts folder in doctests.
def pytest_ignore_collect(path):
if "scripts/" in str(path):
return True
if "docs/" in str(path):
return True
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ dependencies = [
"pyaro>=0.0.14",
"pooch>=1.7.0",
"psutil>=5.0.0",
"geopy"
]

[project.readme]
Expand Down Expand Up @@ -209,7 +210,7 @@ commands_pre =
python --version
python -m pip freeze --all
commands =
python -m pytest -ra -q {posargs:--cov --no-cov-on-fail}
python -m pytest --doctest-modules . -ra -q {posargs:--cov --no-cov-on-fail}
extras =
test
setenv =
Expand Down
Loading