Skip to content

Commit 99e4116

Browse files
authored
Merge pull request #367 from DoubleML/s-update-workflows
Update Pre-commit hooks & integrate pytest.ini into pyproject.toml
2 parents 7719417 + 5a3a7cf commit 99e4116

File tree

3 files changed

+21
-22
lines changed

3 files changed

+21
-22
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v5.0.0
3+
rev: v6.0.0
44
hooks:
55
# File format checks
66
- id: check-yaml
@@ -13,11 +13,11 @@ repos:
1313
- id: trailing-whitespace
1414
- id: end-of-file-fixer
1515
- repo: https://github.com/psf/black
16-
rev: 25.1.0
16+
rev: 25.9.0
1717
hooks:
1818
- id: black
1919
- repo: https://github.com/astral-sh/ruff-pre-commit
20-
rev: v0.12.3
20+
rev: v0.14.4
2121
hooks:
22-
- id: ruff
22+
- id: ruff-check
2323
args: ["--fix", "--output-format=full"]

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)