diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 383a6a42..a0b1aebb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,7 +14,7 @@ repos: hooks: - id: black - repo: https://github.com/pycqa/isort - rev: 6.1.0 + rev: 7.0.0 hooks: - id: isort args: ["--profile", "black", "--filter-files"] @@ -40,8 +40,8 @@ repos: language: python types: [python] additional_dependencies: [ - pylint>=3.3.1, hatchling, pytest, scikit-learn>=1.5.2, hypothesis, pandas, treelite, - lightgbm, xgboost>=2.1.1, tqdm + pylint>=4.0.0, hatchling, pytest, scikit-learn>=1.7.0, hypothesis, pandas, treelite, + lightgbm, xgboost-cpu>=3.0.0, tqdm ] - repo: https://github.com/pocc/pre-commit-hooks rev: v1.3.5 @@ -65,7 +65,7 @@ repos: - id: mypy additional_dependencies: [types-setuptools] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.13.3 + rev: v0.14.0 hooks: - id: ruff args: ["--config", "python/pyproject.toml"] diff --git a/python/treelite/core.py b/python/treelite/core.py index 0393e76b..0c01d714 100644 --- a/python/treelite/core.py +++ b/python/treelite/core.py @@ -52,11 +52,11 @@ def _load_lib(): # (do not load if called by Sphinx) if "sphinx" in sys.modules: try: - _LIB = _load_lib() + _LIB = _load_lib() # pylint: disable=invalid-name except TreeliteLibraryNotFound: - _LIB = None + _LIB = None # pylint: disable=invalid-name else: - _LIB = _load_lib() + _LIB = _load_lib() # pylint: disable=invalid-name def _check_call(ret: int) -> None: