Skip to content

chore: pre-commit hooks for linting, tests, and conventional commits#3

Merged
deviantintegral merged 2 commits into
mainfrom
copilot/configure-precommit-hooks
Feb 26, 2026
Merged

chore: pre-commit hooks for linting, tests, and conventional commits#3
deviantintegral merged 2 commits into
mainfrom
copilot/configure-precommit-hooks

Conversation

Copilot AI commented Feb 25, 2026

Copy link
Copy Markdown
Contributor

Adds .pre-commit-config.yaml with hooks that mirror the existing CI pipeline locally:

  • Linting/formatting: ruff-check (with --fix) and ruff-format via astral-sh/ruff-pre-commit v0.15.2
  • Type checking: mypy as a local hook (uv run mypy src/)
  • Unit tests: pytest as a local hook (uv run pytest --tb=short -q)
  • Commit messages: compilerla/conventional-pre-commit v4.4.0 on the commit-msg stage
  • Renovate: Enabled the :enablePreCommit preset in renovate.json so Renovate automatically keeps remote pre-commit hook versions updated

mypy and pytest use local system hooks to run within the project's uv-managed virtualenv, ensuring they have access to all dependencies.

Activate with:

pre-commit install --hook-type pre-commit --hook-type commit-msg

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Configure pre-commit with linters and tests Configure pre-commit hooks for linting, tests, and conventional commits Feb 25, 2026
…l commits

Co-authored-by: deviantintegral <255023+deviantintegral@users.noreply.github.com>
@deviantintegral deviantintegral force-pushed the copilot/configure-precommit-hooks branch from ade3f73 to f454c2c Compare February 26, 2026 00:07
@deviantintegral deviantintegral changed the title Configure pre-commit hooks for linting, tests, and conventional commits chore: pre-commit hooks for linting, tests, and conventional commits Feb 26, 2026
@deviantintegral deviantintegral marked this pull request as ready for review February 26, 2026 00:08
@deviantintegral

Copy link
Copy Markdown
Owner

@copilot Add Renovate rules to keep the remote GitHub precommit repositories updated.

Co-authored-by: deviantintegral <255023+deviantintegral@users.noreply.github.com>

Copilot AI commented Feb 26, 2026

Copy link
Copy Markdown
Contributor Author

@copilot Add Renovate rules to keep the remote GitHub precommit repositories updated.

Added the :enablePreCommit preset to renovate.json in 3767b68. This enables Renovate's pre-commit manager (opt-in since it's in beta) to automatically detect and update the rev fields for remote hooks (astral-sh/ruff-pre-commit and compilerla/conventional-pre-commit) in .pre-commit-config.yaml.

@deviantintegral deviantintegral enabled auto-merge (squash) February 26, 2026 00:22
@deviantintegral deviantintegral merged commit 5941161 into main Feb 26, 2026
4 checks passed
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.

2 participants