-
Notifications
You must be signed in to change notification settings - Fork 5
WIP: Add pre-commit hooks #987
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
|
Interesting that the pre-commit action fails because it sorts differently than my system's In the action sort puts ä after the whole alphabet, while in my system it is considered the same as a. |
836e81a to
c6504e3
Compare
|
Rebased, and added |
c6504e3 to
c47e58a
Compare
|
Skip eslint pre-commit run when it is not installed e.g. in the pre-commit github action. |
blankdots
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.
🤔 i think we should wait on this, this seems to touch a lot of ongoing files. I would rather see functionality added first and standardization last, for the simple reason of that there is too much ongoing work ...
|
You're right. I'll keep it as WIP while we wait |
Description
Add pre-commit hooks and checks.
Also added a github action. If it works, and others agree, we could change a bit the github workflows and tox configuration.
Update your environment and enable the git hooks by running:
Related issues
Type of change
Changes Made
pyspellingconfiguration to root folderruffinstead offlake8andisortTesting
Mentions
It might be easier to review by looking at commits individually.
I tried to use the
pyupgradefixes fromruff, but that broke the tests, and I didn't want to investigate. There are a few other tests that might be interesting to consider in the future: e.g.tryceratops, which checks for how to handle exceptions.