Skip to content

Commit 2334cb9

Browse files
authored
Merge pull request #316 from DoubleML/s-update-project
S-update-project
2 parents 5821ca7 + 422daef commit 2334cb9

File tree

3 files changed

+18
-12
lines changed

3 files changed

+18
-12
lines changed

.pre-commit-config.yaml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,22 @@ repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
33
rev: v5.0.0
44
hooks:
5+
# File format checks
56
- id: check-yaml
6-
- id: end-of-file-fixer
7+
- id: check-toml
8+
# Code quality checks
9+
- id: debug-statements
10+
- id: check-added-large-files
11+
# File formatting fixes
12+
- id: mixed-line-ending
713
- id: trailing-whitespace
14+
- id: end-of-file-fixer
15+
- repo: https://github.com/psf/black
16+
rev: 25.1.0
17+
hooks:
18+
- id: black
819
- repo: https://github.com/astral-sh/ruff-pre-commit
9-
# Ruff version.
10-
rev: v0.9.1
20+
rev: v0.11.7
1121
hooks:
1222
- id: ruff
1323
args: ["--fix", "--output-format=full"]
14-
- repo: https://github.com/psf/black
15-
rev: 24.10.0
16-
hooks:
17-
- id: black

doubleml/did/did_multi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class DoubleMLDIDMulti:
4747
ml_g : estimator implementing ``fit()`` and ``predict()``
4848
A machine learner implementing ``fit()`` and ``predict()`` methods (e.g.
4949
:py:class:`sklearn.ensemble.RandomForestRegressor`) for the nuisance function
50-
:math:`g_0(0,X) = E[Y_{t_\text{eval}}-Y_{t_\text{pre}}|X, C__{t_\text{eval} + \\delta} = 1]`.
50+
:math:`g_0(0,X) = E[Y_{t_{\\text{eval}}}-Y_{t_{\\text{pre}}}|X, C_{t_{\text{eval}} + \\delta} = 1]`.
5151
For a binary outcome variable :math:`Y` (with values 0 and 1), a classifier implementing ``fit()`` and
5252
``predict_proba()`` can also be specified.
5353

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ dev = [
4444
"pytest-cov>=6.0.0",
4545
"xgboost",
4646
"lightgbm",
47-
"black>=24.3.0",
48-
"ruff>=0.5.1",
49-
"pre-commit>=4.0.1",
47+
"black>=25.1.0",
48+
"ruff>=0.11.1",
49+
"pre-commit>=4.2.0",
5050
]
5151

5252
[tool.black]
5353
line-length = 127
54-
target-version = ['py39', 'py310', 'py311']
54+
target-version = ['py39', 'py310', 'py311', 'py312']
5555
preview = true
5656
exclude = '''
5757
/(

0 commit comments

Comments
 (0)