Skip to content

Commit

Permalink
Strict config and strict markers for pytest
Browse files Browse the repository at this point in the history
And fail at collect for empty parameter sets in parametrize.
  • Loading branch information
wence- committed Oct 3, 2024
1 parent 15782e0 commit 7d1e2fd
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 7 deletions.
3 changes: 2 additions & 1 deletion python/cudf/cudf_pandas_tests/pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
# ../pyproject.toml We do so deliberately because we have different
# treatment of markers and warnings
[pytest]
addopts = --tb=native
addopts = --tb=native --strict-config --strict-markers
empty_parameter_set_mark = fail_at_collect
xfail_strict = true
3 changes: 2 additions & 1 deletion python/cudf/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ skip = [
]

[tool.pytest.ini_options]
addopts = "--tb=native"
addopts = "--tb=native --strict-config --strict-markers"
empty_parameter_set_mark = "fail_at_collect"
filterwarnings = [
"error",
"ignore:::.*xdist.*",
Expand Down
3 changes: 2 additions & 1 deletion python/cudf_kafka/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ skip = [
]

[tool.pytest.ini_options]
addopts = "--tb=native"
addopts = "--tb=native --strict-config --strict-markers"
empty_parameter_set_mark = "fail_at_collect"
filterwarnings = [
"error"
]
Expand Down
3 changes: 2 additions & 1 deletion python/cudf_polars/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ license-files = ["LICENSE"]
version = {file = "cudf_polars/VERSION"}

[tool.pytest.ini_options]
addopts = "--tb=native"
addopts = "--tb=native --strict-config --strict-markers"
empty_parameter_set_mark = "fail_at_collect"
filterwarnings = [
"error"
]
Expand Down
3 changes: 2 additions & 1 deletion python/custreamz/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ skip = [
]

[tool.pytest.ini_options]
addopts = "--tb=native"
addopts = "--tb=native --strict-config --strict-markers"
empty_parameter_set_mark = "fail_at_collect"
filterwarnings = [
"error",
"ignore:unclosed <socket.socket:ResourceWarning",
Expand Down
3 changes: 2 additions & 1 deletion python/dask_cudf/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ skip = [
]

[tool.pytest.ini_options]
addopts = "--tb=native"
addopts = "--tb=native --strict-config --strict-markers"
empty_parameter_set_mark = "fail_at_collect"
filterwarnings = [
"error::FutureWarning",
"error::DeprecationWarning",
Expand Down
3 changes: 2 additions & 1 deletion python/pylibcudf/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ skip = [
]

[tool.pytest.ini_options]
addopts = "--tb=native"
addopts = "--tb=native --strict-config --strict-markers"
empty_parameter_set_mark = "fail_at_collect"
filterwarnings = [
"error",
"ignore:::.*xdist.*",
Expand Down

0 comments on commit 7d1e2fd

Please sign in to comment.