Skip to content

🔧 config: migrate from pre-commit to prek#526

Merged
nstarman merged 1 commit into
GalacticDynamics:mainfrom
nstarman:prek
May 19, 2026
Merged

🔧 config: migrate from pre-commit to prek#526
nstarman merged 1 commit into
GalacticDynamics:mainfrom
nstarman:prek

Conversation

@nstarman
Copy link
Copy Markdown
Contributor

Replace pre-commit references with prek in docs, CONTRIBUTING, copilot instructions, and the gitmoji skill. Remove the ci: block from .pre-commit-config.yaml and suppress the resulting PC901/902/903 repo-review warnings.

Replace pre-commit references with prek in docs, CONTRIBUTING, copilot instructions, and the gitmoji skill. Remove the ci: block from .pre-commit-config.yaml and suppress the resulting PC901/902/903 repo-review warnings.

Signed-off-by: nstarman <nstarman@users.noreply.github.com>
@nstarman nstarman added this to the v0.24.0 milestone May 19, 2026
@github-actions github-actions Bot added 🔧 Add / update configuration Add or update configuration files. 📝 Add / update documentation Add or update documentation. labels May 19, 2026
@nstarman nstarman marked this pull request as ready for review May 19, 2026 03:12
@nstarman nstarman requested a review from a team as a code owner May 19, 2026 03:12
Copilot AI review requested due to automatic review settings May 19, 2026 03:12
@nstarman
Copy link
Copy Markdown
Contributor Author

Passes CI format.

@nstarman nstarman merged commit 4e3160a into GalacticDynamics:main May 19, 2026
16 checks passed
@nstarman nstarman deleted the prek branch May 19, 2026 03:13
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Migrates the repository’s developer tooling references from pre-commit to prek, aligning dependency groups, nox automation, and contributor-facing documentation with the new hook runner while keeping the existing .pre-commit-config.yaml hook configuration.

Changes:

  • Replace pre-commit with prek in dependency groups (pyproject.toml) and lockfile (uv.lock).
  • Update automation/docs to run hooks via prek (nox session, README/docs/CONTRIBUTING, Copilot instructions, gitmoji skill).
  • Remove the ci: block from .pre-commit-config.yaml and add repo-review ignores for the resulting checks.

Reviewed changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
uv.lock Swaps the dev/lint dependency from pre-commit to prek and updates the resolved package set accordingly.
README.md Updates badges/links from pre-commit to prek.
pyproject.toml Replaces the lint dependency and updates tool.repo-review ignores for pre-commit CI-related checks.
noxfile.py Runs hook checks via prek in the precommit nox session.
docs/dev.md Updates contributor workflow docs to reference prek instead of pre-commit.
.pre-commit-config.yaml Removes the ci: configuration block.
.github/skills/gitmoji-commit/SKILL.md Updates the config type description to reference prek.
.github/copilot-instructions.md Updates tooling guidance to reference prek.
.github/CONTRIBUTING.md Updates setup and usage instructions from pre-commit to prek.
Comments suppressed due to low confidence (1)

docs/dev.md:88

  • “runs all prek/pre-commit hooks” is ambiguous. The precommit nox session runs prek against .pre-commit-config.yaml; consider rewording to clearly state what command is run (and which config file it uses) so contributors know what to expect.

- `uv run nox -s precommit`: runs all prek/pre-commit hooks.
- `uv run nox -s "pylint(package='coordinax')"`: run Pylint for the main package.

Comment thread pyproject.toml
Comment on lines +161 to +163
"PC901", # custom autoupdate_commit_msg set in .pre-commit-config.yaml
"PC902", # custom autofix_commit_msg set in .pre-commit-config.yaml
"PC903", # autoupdate_schedule set in .pre-commit-config.yaml
Comment thread docs/dev.md

- `uv run nox -s all`: runs the default contributor gate: lint, test, and docs.
- `uv run nox -s lint`: runs `precommit`, `pylint`, and `ty`.
- `uv run nox -s lint`: runs `prek`, `pylint`, and `ty`.
```
- Common sessions:
- `nox -s lint`: pre-commit + pylint
- `nox -s lint`: prek + pylint
Comment thread .github/CONTRIBUTING.md
@@ -77,10 +77,10 @@ nox -s docs -- --serve

# Pre-commit
@codecov
Copy link
Copy Markdown

codecov Bot commented May 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.91%. Comparing base (cec14c8) to head (f504922).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #526   +/-   ##
=======================================
  Coverage   92.91%   92.91%           
=======================================
  Files         249      249           
  Lines        7881     7881           
=======================================
  Hits         7323     7323           
  Misses        558      558           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

Labels

🔧 Add / update configuration Add or update configuration files. 📝 Add / update documentation Add or update documentation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants