Skip to content

Commit

Permalink
MNT: Update pytest and coverage options for the src layout. [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Taher Chegini committed Jul 5, 2024
1 parent 53397be commit 9daff7b
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -211,22 +211,20 @@ skip = "__pycache__,_build,.mypy_cache,.git,./htmlcov,.nox,**/us_abbrs.py,cache"
ignore-words-list = "gage,gages,paramss,trough"

[tool.pytest.ini_options]
addopts = "--ignore=noxfile.py -n=auto -v --durations=5"
addopts = "--ignore=noxfile.py --doctest-modules -n=auto -v --durations=5"
doctest_optionflags = 'NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL NUMBER'
filterwarnings = [
"ignore:.*distutils.*",
"ignore:.*--rsyncdir command line argument.*",
"ignore:.*numpy.ndarray size changed.*",
"ignore:.*'cgi' is deprecated.*",
"ignore:.*Calling float on a single element.*",
"ignore:.*Ensure you extract a single element.*",
"ignore:.*Shapely GEOS version.*",
"ignore:.*Deprecated in Pydantic V2.0.*",
]
testpaths = [
"tests",
]
markers = [
"speedup: Tests that require numba>=0.57",
]

[tool.coverage.report]
exclude_lines = [
Expand All @@ -235,15 +233,18 @@ exclude_lines = [
]
ignore_errors = true

[tool.coverage.run]
branch = true
[tool.coverage.paths]
source = [ "src", "*/site-packages" ]
omit = [
"**/__init__.py",
"**/print_versions.py",
]

[tool.coverage.run]
branch = true
parallel = true
source = [
'src/pydaymet',
"pydaymet",
]

[tool.pyright]
Expand Down

0 comments on commit 9daff7b

Please sign in to comment.