Skip to content

Commit aea9a94

Browse files
[CI] Update pre-commit hooks (#632)
* [CI] Update pre-commit hooks * Update pylint --------- Co-authored-by: hcho3 <2532981+hcho3@users.noreply.github.com> Co-authored-by: Hyunsu Cho <phcho@nvidia.com>
1 parent ee20279 commit aea9a94

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ repos:
1414
hooks:
1515
- id: black
1616
- repo: https://github.com/pycqa/isort
17-
rev: 6.1.0
17+
rev: 7.0.0
1818
hooks:
1919
- id: isort
2020
args: ["--profile", "black", "--filter-files"]
@@ -40,8 +40,8 @@ repos:
4040
language: python
4141
types: [python]
4242
additional_dependencies: [
43-
pylint>=3.3.1, hatchling, pytest, scikit-learn>=1.5.2, hypothesis, pandas, treelite,
44-
lightgbm, xgboost>=2.1.1, tqdm
43+
pylint>=4.0.0, hatchling, pytest, scikit-learn>=1.7.0, hypothesis, pandas, treelite,
44+
lightgbm, xgboost-cpu>=3.0.0, tqdm
4545
]
4646
- repo: https://github.com/pocc/pre-commit-hooks
4747
rev: v1.3.5
@@ -65,7 +65,7 @@ repos:
6565
- id: mypy
6666
additional_dependencies: [types-setuptools]
6767
- repo: https://github.com/astral-sh/ruff-pre-commit
68-
rev: v0.13.3
68+
rev: v0.14.0
6969
hooks:
7070
- id: ruff
7171
args: ["--config", "python/pyproject.toml"]

python/treelite/core.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ def _load_lib():
5252
# (do not load if called by Sphinx)
5353
if "sphinx" in sys.modules:
5454
try:
55-
_LIB = _load_lib()
55+
_LIB = _load_lib() # pylint: disable=invalid-name
5656
except TreeliteLibraryNotFound:
57-
_LIB = None
57+
_LIB = None # pylint: disable=invalid-name
5858
else:
59-
_LIB = _load_lib()
59+
_LIB = _load_lib() # pylint: disable=invalid-name
6060

6161

6262
def _check_call(ret: int) -> None:

0 commit comments

Comments
 (0)