-
Notifications
You must be signed in to change notification settings - Fork 293
Add pre-commit #321
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
Add pre-commit #321
Conversation
Our project's CI has used and configured flake8 for years, and never did it complain about extra string indentation. I'm sure we could configure `ruff format` to not complain about the strings as well.
|
Let's drop flake8 so we can get pre-commit in place. |
Please read the first few paragraphs of the README of https://github.com/psf/black |
Apparently it's not verified in the marketplace. I should've noticed that no tests were run. The workflow's page also says it's in maintenance-only mode and suggests "generally you want to use pre-commit.ci which is faster and has more features." which is an entirely separate GitHub app. @cclauss, I'm assuming you can't disable whatever repo setting that's causing the workflow verification requirement either? Should we just remove the pre-commit CI and just have tox run pre-commit instead? Also, I've thought about it a bit, and I no longer object to the removal of extra string indentation. |
https://pre-commit.com
%
pipx install pre-commit
# oruv tool install pre-commit
%
pre-commit install
%
pre-commit autoupdate
%
pre-commit run --all-files
%
git commit -am"Add pre-commit"