diff --git a/conftest.py b/conftest.py new file mode 100644 index 000000000..49e26c88b --- /dev/null +++ b/conftest.py @@ -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 diff --git a/pyproject.toml b/pyproject.toml index ea8877409..ec01f691b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -50,6 +50,7 @@ dependencies = [ "pyaro>=0.0.14", "pooch>=1.7.0", "psutil>=5.0.0", + "geopy" ] [project.readme] @@ -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 =