-
Notifications
You must be signed in to change notification settings - Fork 4
Manage linters with pre-commit instead of uv #335
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
YooSunYoung
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good to me!
I only had some minor comments/typo fix suggestions.
| "specfield", | ||
| "socio-economic", | ||
| ] | ||
| skip = "build,docs/generated,html" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are they excluded automatically becuase they are in .gitignore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I removed this because I switched from 'codespell' to 'typos' because the latter has better support for identifiers. Should have made that more clear in the PR description.
|
|
||
| prek auto-update | ||
|
|
||
| Note that an earlier version implemented linters and formatters in ``justfile`` with ``uv run ...`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this part is worth wrapped as an admonitions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
The added section in the dev docs explains what is going on here and why. But the TL;DR is, I could not make commits with pycharm because it couldn't find just on my PATH and so the hooks failed. This setup works. Plus, it seems to be more robust in general.
This PR also switches from 'codespell' to 'typos'.