Skip to content

build: move pre-commit to a dev dependency group - #82

Merged
msleigh merged 1 commit into
mainfrom
build/dev-dependency-group
Nov 14, 2026
Merged

msleigh merged 1 commit into
mainfrom
build/dev-dependency-group

Conversation

@msleigh

@msleigh msleigh commented Nov 14, 2026

Copy link
Copy Markdown
Owner

Summary

  • move pre-commit from the optional dev extra to a dev dependency group
  • plain uv sync installs the dev group by default, so it no longer removes pre-commit and breaks the git hooks
  • update the setup instructions in CLAUDE.md and getting-started.md to run uv run pre-commit install

No package versions change; only the lockfile metadata moves.

The docs workflow's uv run will now also install pre-commit (a few seconds).

Testing

  • uv lock --check
  • uv sync installs pre-commit 4.7.0
  • uv run make -C docs html
  • uv run pre-commit run --files pyproject.toml uv.lock CLAUDE.md mkdocs/docs/getting-started.md

🤖 Generated with Claude Code

As an optional extra, pre-commit was removed by a plain `uv sync`,
breaking the git hooks. uv installs the dev group by default, so the
documented `uv sync` setup now works. Run the hook installer via
`uv run` so it uses the project environment.
@msleigh
msleigh merged commit 8112eff into main Nov 14, 2026
4 checks passed
@msleigh
msleigh deleted the build/dev-dependency-group branch November 14, 2026 22:30
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