-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### What kind of change does this PR introduce? * Unpins the `pytest` version now that `xdoctest` supports it. * Pins to the latest `xdoctest` supporting `pytest~=8.0`. ### Does this PR introduce a breaking change? No. ### Other information: FYI @RondeauG The newest `pytest` (v8.0.0) introduced some regressions for Windows users. An issue is already up and a patch should arrive shortly (pytest-dev/pytest#11895). Until then, use `pytest<8.0` on Windows. See also: pytest-dev/pytest#11969
- Loading branch information
Showing
16 changed files
with
286 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,7 +61,7 @@ dependencies: | |
- pre-commit >=3.7 | ||
- pybtex >=0.24.0 | ||
- pylint >=3.1 | ||
- pytest <8.0 # Pinned due to breakage with xdoctest. See: https://github.com/Erotemic/xdoctest/issues/151 | ||
- pytest >=8.0.0 | ||
- pytest-cov | ||
- pytest-socket | ||
- pytest-xdist >=3.2 | ||
|
@@ -77,7 +77,7 @@ dependencies: | |
- tox >=4.15.1 | ||
# - tox-conda # Will be added when a [email protected]+ compatible plugin is released. | ||
- vulture # ==2.11 # The conda-forge version is out of date. | ||
- xdoctest | ||
- xdoctest >=1.1.5 | ||
- yamllint | ||
- pip | ||
- pip: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,9 +38,11 @@ dependencies = [ | |
"cftime>=1.4.1", | ||
"click>=8.1", | ||
"dask[array]>=2.6", | ||
"filelock", | ||
"jsonpickle", | ||
"numba", | ||
"numpy>=1.20.0,<2.0.0", | ||
"packaging", | ||
"pandas>=2.2", | ||
"pint>=0.10,<0.24", | ||
"platformdirs >=3.2", | ||
|
@@ -78,7 +80,7 @@ dev = [ | |
"pooch", | ||
"pre-commit >=3.7", | ||
"pylint >=3.2.4", | ||
"pytest <8.0", # Pinned due to breakage with xdoctest. See: https://github.com/Erotemic/xdoctest/issues/151 | ||
"pytest >=8.0.0", | ||
"pytest-cov", | ||
"pytest-socket", | ||
"pytest-xdist[psutil] >=3.2", | ||
|
@@ -88,7 +90,7 @@ dev = [ | |
# "tox-conda", # Will be added when a [email protected]+ compatible plugin is released. | ||
"tox-gh >=1.3.1", | ||
"vulture ==2.11", | ||
"xdoctest", | ||
"xdoctest >=1.1.5", | ||
"yamllint ==1.35.1" | ||
] | ||
docs = [ | ||
|
@@ -166,7 +168,7 @@ ignore-words-list = "absolue,astroid,bloc,bui,callendar,degreee,environnement,ha | |
|
||
[tool.coverage.run] | ||
relative_files = true | ||
omit = ["tests/*.py"] | ||
omit = ["tests/*.py", "src/xclim/testing/conftest.py"] | ||
|
||
[tool.deptry] | ||
extend_exclude = ["docs"] | ||
|
@@ -180,7 +182,7 @@ pep621_dev_dependency_groups = ["all", "dev", "docs"] | |
[tool.deptry.per_rule_ignores] | ||
DEP001 = ["SBCK"] | ||
DEP002 = ["bottleneck", "pyarrow"] | ||
DEP004 = ["matplotlib", "pytest_socket"] | ||
DEP004 = ["matplotlib", "pytest", "pytest_socket"] | ||
|
||
[tool.flit.sdist] | ||
include = [ | ||
|
@@ -259,8 +261,9 @@ addopts = [ | |
] | ||
norecursedirs = ["docs/notebooks/*"] | ||
filterwarnings = ["ignore::UserWarning"] | ||
testpaths = "tests tests/test_sdba" | ||
usefixtures = "xdoctest_namespace" | ||
testpaths = [ | ||
"tests" | ||
] | ||
doctest_optionflags = ["NORMALIZE_WHITESPACE", "IGNORE_EXCEPTION_DETAIL", "NUMBER", "ELLIPSIS"] | ||
markers = [ | ||
"slow: marks tests as slow (deselect with '-m \"not slow\"')", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.