Skip to content

Commit 3e70b1d

Browse files
[CI] Update pre-commit hooks (#654)
* [CI] Update pre-commit hooks * formatting fix --------- Co-authored-by: hcho3 <2532981+hcho3@users.noreply.github.com> Co-authored-by: Philip Hyunsu Cho <chohyu01@cs.washington.edu> Co-authored-by: Hyunsu Cho <phcho@nvidia.com>
1 parent 86cb6ba commit 3e70b1d

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ repos:
1010
- id: check-added-large-files
1111
args: ["--maxkb=4000"]
1212
- repo: https://github.com/psf/black
13-
rev: 25.12.0
13+
rev: 26.1.0
1414
hooks:
1515
- id: black
1616
- repo: https://github.com/pycqa/isort
17-
rev: 7.0.0
17+
rev: 8.0.0
1818
hooks:
1919
- id: isort
2020
args: ["--profile", "black", "--filter-files"]
2121
- repo: https://github.com/MarcoGorelli/cython-lint
22-
rev: v0.18.1
22+
rev: v0.19.0
2323
hooks:
2424
- id: cython-lint
2525
- id: double-quote-cython-strings
@@ -54,7 +54,7 @@ repos:
5454
- id: mypy
5555
additional_dependencies: [types-setuptools]
5656
- repo: https://github.com/astral-sh/ruff-pre-commit
57-
rev: v0.14.11
57+
rev: v0.15.2
5858
hooks:
5959
- id: ruff
6060
args: ["--config", "python/pyproject.toml"]

dev/prepare_pypi_release.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,11 @@ def download_py_packages(version_str: str, commit_hash: str) -> None:
115115
ext="tar.gz",
116116
)
117117
print(f"List of downloaded sdist: {filenames}\n")
118-
print(
119-
"""
118+
print("""
120119
Following steps should be done manually:
121120
- Upload pypi package by `python -m twine upload python/dist/* for all wheels.
122121
- Check the uploaded files on `https://pypi.org/project/treelite/<VERSION>/#files` and `pip
123-
install treelite==<VERSION>` """
124-
)
122+
install treelite==<VERSION>` """)
125123

126124

127125
def check_path():

0 commit comments

Comments
 (0)