Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
hooks:
# File format checks
- id: check-yaml
Expand All @@ -13,11 +13,11 @@ repos:
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/psf/black
rev: 25.1.0
rev: 25.9.0
hooks:
- id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.3
rev: v0.14.4
hooks:
- id: ruff
- id: ruff-check
args: ["--fix", "--output-format=full"]
17 changes: 17 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,23 @@ Source = "https://github.com/DoubleML/doubleml-for-py"
"Bug Tracker" = "https://github.com/DoubleML/doubleml-for-py/issues"

[tool.pytest.ini_options]
markers = [
"ci: mark a test as a continuous integration test which will be executed in github actions.",
"ci_rdd: mark a test as a continuous integration test which will be executed in github actions and is included in the rdd submodule."
]
filterwarnings = [
"ignore:.*A sharp RD design is being estimated, but the data indicate that the design is fuzzy.*:UserWarning",
"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",
"ignore:.*A learner ml_m has been provided for score = \"experimental\" but will be ignored.*:UserWarning",
"ignore:.*A learner ml_g has been provided for score = \"partialling out\" but will be ignored.*:UserWarning",
"ignore:.*Propensity predictions from learner RandomForestClassifier\\(n_estimators=10\\) for ml_m are close to zero or one \\(eps=1e-12\\).*:UserWarning",
"ignore:.*Returning pointwise confidence intervals for basis coefficients.*:UserWarning",
"ignore:.*Propensity score is close to 0 or 1. Trimming is at 0.01 and 0.99 is applied.*:UserWarning",
"ignore:.*Sensitivity analysis not implemented for callable scores.*:UserWarning",
"ignore:.*Subsample has not common support. Results are based on adjusted propensities.*:UserWarning",
"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",
"ignore:.*The estimated nu2 for d is not positive.*:UserWarning"
]
addopts = [
"--doctest-modules",
"--doctest-ignore-import-errors"
Expand Down
18 changes: 0 additions & 18 deletions pytest.ini

This file was deleted.