Skip to content

Commit

Permalink
Merge pull request #125 from CederGroupHub/update/pre-commit-autoupdate
Browse files Browse the repository at this point in the history
auto-update pre-commit hooks
  • Loading branch information
lbluque committed Jul 10, 2024
2 parents 23725e0 + 9b7059a commit 3791bcf
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 16 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ci:

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: check-yaml
- id: fix-encoding-pragma
Expand All @@ -18,7 +18,7 @@ repos:
args: ['--maxkb=500']

- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.4.2
hooks:
- id: black

Expand All @@ -38,13 +38,13 @@ repos:
- --profile=black

- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
rev: v3.16.0
hooks:
- id: pyupgrade
args: [--py38-plus]

- repo: https://github.com/PyCQA/autoflake
rev: v2.2.1
rev: v2.3.1
hooks:
- id: autoflake
args:
Expand All @@ -71,6 +71,6 @@ repos:
- id: rst-inline-touching-normal

- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.8.0' # Use the sha / tag you want to point at
rev: 'v1.10.1' # Use the sha / tag you want to point at
hooks:
- id: mypy
1 change: 1 addition & 0 deletions src/sparselm/model/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Classes implementing generalized linear regression Regressors."""

from ._adaptive_lasso import (
AdaptiveGroupLasso,
AdaptiveLasso,
Expand Down
25 changes: 15 additions & 10 deletions src/sparselm/model/_adaptive_lasso.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,9 @@ def __init__(
max_iter: int = 3,
eps: float = 1e-6,
tol: float = 1e-10,
update_function: Callable[[NDArray[np.floating], float], ArrayLike]
| None = None,
update_function: (
Callable[[NDArray[np.floating], float], ArrayLike] | None
) = None,
fit_intercept: bool = False,
copy_X: bool = True,
warm_start: bool = True,
Expand Down Expand Up @@ -310,8 +311,9 @@ def __init__(
max_iter: int = 3,
eps: float = 1e-6,
tol: float = 1e-10,
update_function: Callable[[NDArray[np.floating], float], ArrayLike]
| None = None,
update_function: (
Callable[[NDArray[np.floating], float], ArrayLike] | None
) = None,
standardize: bool = False,
fit_intercept: bool = False,
copy_X: bool = True,
Expand Down Expand Up @@ -457,8 +459,9 @@ def __init__(
max_iter: int = 3,
eps: float = 1e-6,
tol: float = 1e-10,
update_function: Callable[[NDArray[np.floating], float], ArrayLike]
| None = None,
update_function: (
Callable[[NDArray[np.floating], float], ArrayLike] | None
) = None,
standardize: bool = False,
fit_intercept: bool = False,
copy_X: bool = True,
Expand Down Expand Up @@ -606,8 +609,9 @@ def __init__(
max_iter: int = 3,
eps: float = 1e-6,
tol: float = 1e-10,
update_function: Callable[[NDArray[np.floating], float], ArrayLike]
| None = None,
update_function: (
Callable[[NDArray[np.floating], float], ArrayLike] | None
) = None,
standardize: bool = False,
fit_intercept: bool = False,
copy_X: bool = True,
Expand Down Expand Up @@ -808,8 +812,9 @@ def __init__(
max_iter: int = 3,
eps: float = 1e-6,
tol: float = 1e-10,
update_function: Callable[[NDArray[np.floating], float], ArrayLike]
| None = None,
update_function: (
Callable[[NDArray[np.floating], float], ArrayLike] | None
) = None,
standardize: bool = False,
fit_intercept: bool = False,
copy_X: bool = True,
Expand Down
1 change: 0 additions & 1 deletion src/sparselm/model/_miqp/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""MIQP based regression Regressors."""


from ._best_subset import BestSubsetSelection, RidgedBestSubsetSelection
from ._regularized_l0 import L1L0, L2L0, RegularizedL0

Expand Down
1 change: 1 addition & 0 deletions tests/test_stepwise.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test composite estimator class."""

import numpy as np
import numpy.testing as npt
import pytest
Expand Down

0 comments on commit 3791bcf

Please sign in to comment.