Ruff formatter and Pre commit#1602
Conversation
2bcdc9e to
cd57b0c
Compare
|
also regarding coverage i noticed its not being used anywhere should i add coverage report generation with the tests or remove it from pyproject |
| install-base: check-uv # Install minimal requirements for runtime/pipeline environments | ||
| uv sync --locked --no-dev | ||
|
|
||
| pre-commit-install: check-uv # Install pre-commit hooks |
There was a problem hiding this comment.
Can we get rid of this target? isn't pre-commit installed along the other dependencies?
There was a problem hiding this comment.
that dosent install pre-commit the dependency but pre-commit the hook so whenever you next run git commit the pre commit checks defined in the config file automatically run
There was a problem hiding this comment.
ah, got it! Ok, so, I don't want the hook on git. Or maybe to have it more complicated I'd like to have it only when uv is installed. I don't want to force everyone to install uv. If a contributor needs to submit a small PR not touching the python logic I'd like not to force the contributor to install all the necessary tools (python, uv, deps)
There was a problem hiding this comment.
but arent both make install and make pre-commit-install optional like you decide whether to run it or not, although I get your point once the hooks are installed you need to run pre-commit uninstall to remove them if you want to in your next minor change or commit with --no-verify flag to skip the hooks
There was a problem hiding this comment.
I think forcing pre-commit on everyone is a difficult sell.
But if we can have an optional path of using pre-commit with git, that is good with me :)
There was a problem hiding this comment.
Oh yeah, I skipped the part that one should enable those precommits with make pre-commit-install
Change description
Replaced black with ruff for formatting and also added pre-commit for enforcing consistency (locally and via circle ci) across files for formatting and linting
Most changes are just formatting changes in terms of trailing whitespace/newline, which is enforced by pre-commit now and few other hooks
cc: @phalt @Naramsim
AI coding assistance disclosure
None
Contributor check list