-
Notifications
You must be signed in to change notification settings - Fork 95
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
enforce Python style #1289
Comments
|
great. I guess after enabling pre-commit.ci, we create a PR only updates the doc, or maybe it'll run first on |
I frequently use
I don't see black being opinionated and strict as a bad thing, it enforces uniformity as default. It is also worth mentioning |
#98 mostly talks about C++, but we need this for Python as well, which clang-format doesn't do.
Current status for STIR: #724 and #970 installed all/most infrastructure for clang-format, including pre-commit config. We still haven't run this, pending imminent merge of the TOF PR. Current doc on the process is at https://github.com/UCL/STIR/blob/master/documentation/devel/README.md
Some info from @casperdcl
Example file https://github.com/TomographicImaging/eqt/blob/main/.pre-commit-config.yaml.
Note that we run Codacy which runs Bandit, Prospector, Pylint, but this leaves manual intervention by the user, so it's better to do this via pre-commit of course.
Suggested process:
pre-commit
andgit commit --author="pre-commit-format <[email protected]>"
The text was updated successfully, but these errors were encountered: