From 6c61532a593c74440be95cee8afb75a407721fce Mon Sep 17 00:00:00 2001 From: doisyg Date: Sun, 31 May 2026 18:01:46 +0100 Subject: [PATCH 1/2] Pin ament-black to the py3.14 / black>=26.3 fix; bump to 0.0.12 The dep tracked the stale noble_fix branch, whose ament_black pins black==21.12b0 + uvloop==0.17.0 (no Python 3.14 wheels) and still imports the removed black.concurrency.maybe_install_uvloop. Pin to the botsandus/ament_black#18 head commit, which fixes the import and unpins black/uvloop, so the ament_black (language: python) pre-commit hook installs and runs on Python 3.14. Repoint to @v0.2.7 (or @main) once #18 merges and 0.2.7 is released. --- pyproject.toml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index ed787bf..1e875e0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "ament_lint_pre_commit" description = "Out-of-the-box ament_lint hooks for pre-commit" -version = "0.0.11" +version = "0.0.12" readme = "README.md" license = {file = "LICENSE"} authors = [ @@ -9,8 +9,14 @@ authors = [ ] requires-python = ">=3.10" +# Pinned to the botsandus/ament_black#18 head commit (Python 3.14 + black >= 26.3.0 +# fix: maybe_use_uvloop import fallback, and black/uvloop unpinned in setup.py). +# The previous @noble_fix branch pinned black==21.12b0 + uvloop==0.17.0 (no py3.14 +# wheels) and still imported the removed black.concurrency.maybe_install_uvloop. +# TODO: repoint to @v0.2.7 (or @main) once #18 merges and 0.2.7 is released. +# https://github.com/botsandus/ament_black/pull/18 dependencies = [ - "ament-black @ git+https://github.com/botsandus/ament_black.git@noble_fix#subdirectory=ament_black" + "ament-black @ git+https://github.com/botsandus/ament_black.git@4a527225e68dcbffe1c97afb38f4a69962aa7030#subdirectory=ament_black" ] classifiers = [ From a7fd31472e987cbbc7a89c5001ac1f606465a528 Mon Sep 17 00:00:00 2001 From: Guillaume Doisy Date: Sun, 7 Jun 2026 20:14:54 +0100 Subject: [PATCH 2/2] Repoint ament-black to released 0.2.7 tag --- pyproject.toml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 1e875e0..92a3d38 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,14 +9,8 @@ authors = [ ] requires-python = ">=3.10" -# Pinned to the botsandus/ament_black#18 head commit (Python 3.14 + black >= 26.3.0 -# fix: maybe_use_uvloop import fallback, and black/uvloop unpinned in setup.py). -# The previous @noble_fix branch pinned black==21.12b0 + uvloop==0.17.0 (no py3.14 -# wheels) and still imported the removed black.concurrency.maybe_install_uvloop. -# TODO: repoint to @v0.2.7 (or @main) once #18 merges and 0.2.7 is released. -# https://github.com/botsandus/ament_black/pull/18 dependencies = [ - "ament-black @ git+https://github.com/botsandus/ament_black.git@4a527225e68dcbffe1c97afb38f4a69962aa7030#subdirectory=ament_black" + "ament-black @ git+https://github.com/botsandus/ament_black.git@0.2.7#subdirectory=ament_black" ] classifiers = [