-
-
Notifications
You must be signed in to change notification settings - Fork 1
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 #19
Add pre-commit #19
Conversation
- Adding `pre-commit` to the repository. The new `pre-commit` directives can be found in the configuration file `.pre-commit-config.yaml`. - Removed excess ignore items in the `.gitignore` for simplicity. - Added `.taplo.toml` to enforce TOML file formatting. - Updated the readme for the new pre-commit hooks. - Updated the pyproject.toml file with pre-commit configuration, as well as removing the tools handled by pre-commit from the dev install directive. Resolves #13
Note that none of these hooks have been run on the codebase yet. That will be done in the issue #20 |
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.
We talked about adding an option to check for "print". Other than that LGTM.
thanks for the reminder, I'll update for that as well |
I left it as a flake8 error when prints are found. I think blindly removing print statements is not the greatest of dev experiences, as it removes the opportunity to convert them to a log. We should discuss adding checks for |
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 noticed that we have two license files, is that intentional? otherwise, LGTM
good catch, made an issue to remove it #22 |
pre-commit
to the repository. The newpre-commit
directives can be found in the configuration file.pre-commit-config.yaml
..gitignore
for simplicity..taplo.toml
to enforce TOML file formatting.Resolves #13