Skip to content

feat: install pre-commit from shared catalog - #144

Merged
AlexanderLanin merged 2 commits into
mainfrom
pre-commit-devcontainer
Aug 14, 2026
Merged

feat: install pre-commit from shared catalog#144
AlexanderLanin merged 2 commits into
mainfrom
pre-commit-devcontainer

Conversation

@AlexanderLanin

@AlexanderLanin AlexanderLanin commented Aug 13, 2026

Copy link
Copy Markdown
Member

Summary

  • install pre-commit 4.5.1 from the shared Python tool catalog with pinned uv
  • remove the separate DevContainer feature and its generated lock entries
  • route REUSE helper commands through the catalogued uvx runner
  • verify the installed command against the catalogued version

Rationale

The DevContainer PATH and Bazel target now consume one package pin while retaining delivery mechanisms suited to their environments. The REUSE workflow uses uvx directly and no longer relies on environment setup from another feature.

Scope

This is the DevContainer integration layer of stack #145 and depends on PR #143. It contains the container wiring and the directly coupled migration of existing pipx-based REUSE commands.

Validation

  • full pre-commit suite
  • isolated uv tool install using the catalogued package
  • complete local scripts/test.sh DevContainer build and feature test

@AlexanderLanin

Copy link
Copy Markdown
Member Author

AI review completed with no major findings.

Independent full-PR reviews of PRs #143 and #144 were performed by:

  • GPT-5.6 Sol
  • Claude Opus 5
  • GPT-5.5

The reviews focused on correctness, regressions, semantics, architecture, security, compatibility, and other merge-blocking issues. Minor/nit-level findings were intentionally ignored.

Base automatically changed from python-tool-catalog to main August 14, 2026 11:24
AlexanderLanin and others added 2 commits August 14, 2026 13:24
Replace the standalone DevContainer feature with the catalogued pre-commit package installed by pinned uv. Keep the repository container and published feature aligned with the Bazel target.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Use the catalogued uvx runner for REUSE commands and remove the feature installer assumption that PIPX_BIN_DIR was written by another DevContainer feature.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@AlexanderLanin
AlexanderLanin force-pushed the pre-commit-devcontainer branch from 6f11581 to 85ccee3 Compare August 14, 2026 11:24
etas-contrib-automation Bot pushed a commit to etas-contrib/score_devcontainer that referenced this pull request Aug 14, 2026
## Summary
- add a shared catalog for pinned Python command-line tools
- expose Python tools through Bazel using the pinned `uvx` binary and a
shell launcher
- add pinned `uv tool install` support for DevContainer feature
installers
- document and test the catalog, working-directory, runfiles, and
version contracts

## Rationale
Python distributions need different delivery mechanics from native
release binaries. The shared catalog keeps package versions aligned
while Bazel executes tools on demand without requiring host Python.

## Scope
This is the foundation layer of stack #145. The existing DevContainer
installation remains unchanged here; PR eclipse-score#144 adopts this catalog for
`pre-commit`.

## Validation
- full pre-commit suite through `//tools:pre-commit`
- `//tools:python_tool_runner_test`
- external-module smoke tests with Bazel 8 and Bazel 9

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@AlexanderLanin
AlexanderLanin added this pull request to the merge queue Aug 14, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Aug 14, 2026
@AlexanderLanin
AlexanderLanin added this pull request to the merge queue Aug 14, 2026
Merged via the queue into main with commit 9cda134 Aug 14, 2026
9 checks passed
@AlexanderLanin
AlexanderLanin deleted the pre-commit-devcontainer branch August 14, 2026 12:40
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.11.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants