Skip to content

Pre-commit hooks#211

Open
sjavis wants to merge 3 commits into
mainfrom
precommit
Open

Pre-commit hooks#211
sjavis wants to merge 3 commits into
mainfrom
precommit

Conversation

@sjavis

@sjavis sjavis commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

This adds pre-commit hooks for the ruff, mypy, and blackdoc checks that are used in CI.

It adds pre-commit to the developer dependencies and adds instructions for installing the hooks when doing a development install.

It also updates the black and blackdoc versions to newer versions that resolve the previous incompatibility issue.

@sjavis sjavis self-assigned this Jun 17, 2026

@SimonSadler SimonSadler left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I think we should install pre-commit as part of the dev tools.

@sjavis

sjavis commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator Author

I have moved it to the dev group instead of lint

@sjavis sjavis requested a review from SimonSadler June 30, 2026 14:54
@SimonSadler

Copy link
Copy Markdown

I just ran some tests using the pre-commit hooks and it all worked but there was some back and forth as faults were found. How do you feel about adding the --fix option to ruff-check so that obvious things are auto-fixed?

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