Skip to content

Commit 5a3a7cf

Browse files
committed
migrate pytest configuration from pytest.ini to pyproject.toml
1 parent db4c4fc commit 5a3a7cf

File tree

2 files changed

+17
-18
lines changed

2 files changed

+17
-18
lines changed

pyproject.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,23 @@ Source = "https://github.com/DoubleML/doubleml-for-py"
5656
"Bug Tracker" = "https://github.com/DoubleML/doubleml-for-py/issues"
5757

5858
[tool.pytest.ini_options]
59+
markers = [
60+
"ci: mark a test as a continuous integration test which will be executed in github actions.",
61+
"ci_rdd: mark a test as a continuous integration test which will be executed in github actions and is included in the rdd submodule."
62+
]
63+
filterwarnings = [
64+
"ignore:.*A sharp RD design is being estimated, but the data indicate that the design is fuzzy.*:UserWarning",
65+
"ignore:.*A learner ml_m has been provided for for a sharp design but will be ignored. A learner ml_m is not required for estimation.*:UserWarning",
66+
"ignore:.*A learner ml_m has been provided for score = \"experimental\" but will be ignored.*:UserWarning",
67+
"ignore:.*A learner ml_g has been provided for score = \"partialling out\" but will be ignored.*:UserWarning",
68+
"ignore:.*Propensity predictions from learner RandomForestClassifier\\(n_estimators=10\\) for ml_m are close to zero or one \\(eps=1e-12\\).*:UserWarning",
69+
"ignore:.*Returning pointwise confidence intervals for basis coefficients.*:UserWarning",
70+
"ignore:.*Propensity score is close to 0 or 1. Trimming is at 0.01 and 0.99 is applied.*:UserWarning",
71+
"ignore:.*Sensitivity analysis not implemented for callable scores.*:UserWarning",
72+
"ignore:.*Subsample has not common support. Results are based on adjusted propensities.*:UserWarning",
73+
"ignore:.*Treatment probability within bandwidth left from cutoff higher than right from cutoff.\\nTreatment assignment might be based on the wrong side of the cutoff.*:UserWarning",
74+
"ignore:.*The estimated nu2 for d is not positive.*:UserWarning"
75+
]
5976
addopts = [
6077
"--doctest-modules",
6178
"--doctest-ignore-import-errors"

pytest.ini

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)