Skip to content

Pre-Commit Automation#307

Open
ax3l wants to merge 3 commits intopybind:mainfrom
ax3l:topic-ruff-pre-commit
Open

Pre-Commit Automation#307
ax3l wants to merge 3 commits intopybind:mainfrom
ax3l:topic-ruff-pre-commit

Conversation

@ax3l
Copy link
Copy Markdown
Contributor

@ax3l ax3l commented Apr 20, 2026

Ready the repo up for pre-commit.ci

Replaced the old local black / isort / flake8 hooks with official Ruff hooks in .pre-commit-config.yaml, and added a ci: block with quarterly autoupdates to keep bot churn down.

Also added pre-commit to the [dev] dependency group in pyproject.toml (* see below), updated uv.lock, and added local setup instructions in README.md.

While verifying, pre-commit fixed one existing whitespace issue in tests/py-demo/bindings/src/modules/methods.cpp:10. Validation passed with uv run pre-commit validate-config and uv run pre-commit run --all-files

Clean-Up

We will want to make sure we to use the exact same ruff version everywhere. So test scripts should not use ruff directly and we only maintain version once in .pre-commit-config.yaml, not also in pyproject.toml.

Ready the repo up for pre-commit.ci

Replaced the old local black / isort / flake8 hooks with official Ruff
hooks in `.pre-commit-config.yaml`, and added a `ci:` block with
quarterly autoupdates to keep bot churn down.

Also added `pre-commit` to the `[dev]` dependency group in `pyproject.toml`,
updated `uv.lock`, and added local setup instructions in `README.md`.

While verifying, pre-commit fixed one existing whitespace issue in
`tests/py-demo/bindings/src/modules/methods.cpp:10`.
Validation passed with `uv run pre-commit validate-config` and
`uv run pre-commit run --all-files`
@ax3l ax3l requested review from sizmailov, skarndev and virtuald April 20, 2026 21:32
@ax3l ax3l mentioned this pull request Apr 20, 2026
18 tasks
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