Skip to content

CI: fix pre-commit failures on Python 3.14 / clang-format 21 - #237

Merged
mintar merged 1 commit into
CCNYRoboticsLab:rollingfrom
mintar:fix-pre-commit-ci
Sep 9, 2026
Merged

mintar merged 1 commit into
CCNYRoboticsLab:rollingfrom
mintar:fix-pre-commit-ci

Conversation

@mintar

@mintar mintar commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator
  • bump pre-commit-hooks v4.1.0 -> v6.0.0 (removes deprecated stage names warning)
  • bump black 22.3.0 -> 26.5.1 (22.3.0 crashes on Python 3.14 with 'RuntimeError: There is no current event loop' in reformat_many)
  • reformat 9 C++ files with clang-format 21 as used in the CI container (Google-based .clang-format now wants 'char** argv' / 'const Foo& a' and wraps >80-col signatures)

Verified with a local replica of the CI job: pre-commit run -a passes inside ros:rolling-ros-core (Python 3.14.4, clang-format 21.1.8).

- bump pre-commit-hooks v4.1.0 -> v6.0.0 (removes deprecated stage
  names warning)
- bump black 22.3.0 -> 26.5.1 (22.3.0 crashes on Python 3.14 with
  'RuntimeError: There is no current event loop' in reformat_many)
- reformat 9 C++ files with clang-format 21 as used in the CI container
  (Google-based .clang-format now wants 'char** argv' / 'const Foo& a'
  and wraps >80-col signatures)

Verified with a local replica of the CI job: pre-commit run -a passes
inside ros:rolling-ros-core (Python 3.14.4, clang-format 21.1.8).
@mintar
mintar merged commit fb93aa4 into CCNYRoboticsLab:rolling Sep 9, 2026
1 check passed
@mintar
mintar deleted the fix-pre-commit-ci branch September 9, 2026 09:42
mintar added a commit that referenced this pull request Sep 9, 2026
- bump pre-commit-hooks v4.1.0 -> v6.0.0 (removes deprecated stage
  names warning)
- bump black 22.3.0 -> 26.5.1 (22.3.0 crashes on Python 3.14 with
  'RuntimeError: There is no current event loop' in reformat_many)
- reformat 9 C++ files with clang-format 21 as used in the CI container
  (Google-based .clang-format now wants 'char** argv' / 'const Foo& a'
  and wraps >80-col signatures)

Verified with a local replica of the CI job: pre-commit run -a passes
inside ros:rolling-ros-core (Python 3.14.4, clang-format 21.1.8).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant