diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 7a32d50..faed982 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -1,14 +1,6 @@ name: Deploy Docs on: - push: - branches: - - main - paths: - - 'docs/**' - - 'openmodels/**' - - 'pyproject.toml' - - '.github/workflows/docs.yml' workflow_dispatch: permissions: diff --git a/openmodels/serializers/sklearn/_custom_estimator.py b/openmodels/serializers/sklearn/_custom_estimator.py index 0657f7d..91a7579 100644 --- a/openmodels/serializers/sklearn/_custom_estimator.py +++ b/openmodels/serializers/sklearn/_custom_estimator.py @@ -19,7 +19,7 @@ def is_valid_estimator(name: str, cls: Any) -> bool: def normalize_estimators( - estimators: Union[Callable[..., Any], List[Any], Tuple[Any, ...], Dict[str, Any]] + estimators: Union[Callable[..., Any], List[Any], Tuple[Any, ...], Dict[str, Any]], ) -> List[Any]: """Normalize input into a flat list of estimators or (name, class) items.""" if not isinstance(estimators, (list, tuple, set)): diff --git a/openmodels/test_helpers.py b/openmodels/test_helpers.py index bbd03d6..254ce2d 100644 --- a/openmodels/test_helpers.py +++ b/openmodels/test_helpers.py @@ -47,7 +47,7 @@ def fit( def ensure_correct_sparse_format( - x: Union[np.ndarray, csr_matrix] + x: Union[np.ndarray, csr_matrix], ) -> Union[np.ndarray, csr_matrix]: """ Ensure the input data is in the correct format for SVM models. diff --git a/pyproject.toml b/pyproject.toml index 57a8136..7153574 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,11 +13,11 @@ python = ">=3.10,<4.0" scikit-learn = "^1.6.0" [tool.poetry.group.dev.dependencies] -poetry-types = "^0.5.1" +poetry-types = "^0.6.2" mypy = "^1.10.0" -pytest = "^8.2.2" +pytest = "^9.0.3" pre-commit = "^3.7.1" -black = "^24.4.2" +black = "^26.3.1" flake8 = "^7.1.1" pytest-cov = "^7.0.0"