pypa / pyproject-hooks

A low-level library for calling build-backends in `pyproject.toml`-based project
https://pyproject-hooks.readthedocs.io/
MIT License
122 stars 49 forks source link

chore: make pre-commit faster #198

Closed henryiii closed 5 months ago

henryiii commented 5 months ago

This is recommended as it gives the compiled wheel of black instead of building from source and skipping the mypyc optimizations.

There's also ruff-format, which is already available in the ruff pre-commit hook and could be swapped out if you want.

takluyver commented 5 months ago

Thanks, I'm happy with this. :+1:

Do you have opinions on https://pre-commit.ci/ ? It claims to run these checks much faster than doing them as part of normal CI.

henryiii commented 5 months ago

I’m a fan, and use it in most repos. It’s fast (though GHA is fast). It’s really nice for the autofix and auto update features (can be opted out).

You need someone with access to all pypa repos to enable it, I think. Unless GitHub fixed the “feature” that disabled all repos that a user didn’t have access to when you modify access. That happened to me about a year ago. 😳