From 189ea7922b8d40f25ff3bebbffeb4ddd1531a073 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 7 Jul 2025 20:36:16 +0000 Subject: [PATCH 1/4] [pre-commit.ci] pre-commit suggestions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/JoC0de/pre-commit-prettier: v3.5.3 → v3.6.2](https://github.com/JoC0de/pre-commit-prettier/compare/v3.5.3...v3.6.2) - [github.com/astral-sh/ruff-pre-commit: v0.11.12 → v0.12.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.11.12...v0.12.2) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 971c51b3..0bb3c452 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -47,7 +47,7 @@ repos: exclude: CHANGELOG.md - repo: https://github.com/JoC0de/pre-commit-prettier - rev: v3.5.3 + rev: v3.6.2 hooks: - id: prettier files: \.(json|yml|yaml|toml) @@ -55,7 +55,7 @@ repos: args: ["--print-width=120"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.11.12 + rev: v0.12.2 hooks: - id: ruff args: ["--fix"] From 9a2b6fcead1b4548ebfcce294a5c339a3bf63eae Mon Sep 17 00:00:00 2001 From: Jirka B Date: Sat, 26 Jul 2025 10:13:41 +0200 Subject: [PATCH 2/4] releasing `0.15.0` --- CHANGELOG.md | 12 +----------- src/lightning_utilities/__about__.py | 4 ++-- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 42ae1438..bfa9dd58 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,29 +7,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 --- -## [Unreleased] - YYYY-MM-DD +## [0.15.0] - 2025-07-26 ### Added - CI: add `force-check-all` input to MD link check workflow ([#408](https://github.com/Lightning-AI/utilities/pull/408)) - - - CLI: replace min dependencies also in `pyproject.toml` ([#414](https://github.com/Lightning-AI/utilities/pull/414)) ### Changed - CLI: switch from `fire` to `jsonargparse` ([#371](https://github.com/Lightning-AI/utilities/pull/371)) - - - CI: relax markdown-link-check ([#416](https://github.com/Lightning-AI/utilities/pull/416)) - -### Fixed - -- - - --- diff --git a/src/lightning_utilities/__about__.py b/src/lightning_utilities/__about__.py index 71ff72d6..758840ec 100644 --- a/src/lightning_utilities/__about__.py +++ b/src/lightning_utilities/__about__.py @@ -1,8 +1,8 @@ import time -__version__ = "0.15.0dev" +__version__ = "0.15.0" __author__ = "Lightning AI et al." -__author_email__ = "pytorch@lightning.ai" +__author_email__ = "developer@lightning.ai" __license__ = "Apache-2.0" __copyright__ = f"Copyright (c) 2022-{time.strftime('%Y')}, {__author__}." __homepage__ = "https://github.com/Lightning-AI/utilities" From 84905ca9e0c3b57ba2c835c541fc3044e73281cd Mon Sep 17 00:00:00 2001 From: Jirka Borovec <6035284+Borda@users.noreply.github.com> Date: Mon, 4 Aug 2025 14:27:46 +0200 Subject: [PATCH 3/4] Apply suggestions from code review --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0bb3c452..98ceeb67 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -47,7 +47,7 @@ repos: exclude: CHANGELOG.md - repo: https://github.com/JoC0de/pre-commit-prettier - rev: v3.6.2 + rev: b3e25fa39aa676c36bc18eb9eae6f26d9bb63f39 # v3.6.2 using SHA as tags are not persistent hooks: - id: prettier files: \.(json|yml|yaml|toml) From 02e851d126b3437ca1ddb3889912dc3436339f15 Mon Sep 17 00:00:00 2001 From: Jirka B Date: Mon, 4 Aug 2025 14:37:40 +0200 Subject: [PATCH 4/4] RUF005 --- src/lightning_utilities/docs/formatting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lightning_utilities/docs/formatting.py b/src/lightning_utilities/docs/formatting.py index b3cff5f3..a2c4d0ca 100644 --- a/src/lightning_utilities/docs/formatting.py +++ b/src/lightning_utilities/docs/formatting.py @@ -73,7 +73,7 @@ def find_source() -> tuple[str, int, int]: branch = filename.split("/")[0] # do mapping from latest tags to master branch = {"latest": main_branch, "stable": stable_branch}.get(branch, branch) - filename = "/".join([branch] + filename.split("/")[1:]) + filename = "/".join([branch, *filename.split("/")[1:]]) return f"https://github.com/{github_user}/{github_repo}/blob/{filename}"