Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auto-update pre-commit hooks #125

Merged
merged 2 commits into from
Jul 10, 2024
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
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
Loading