Skip to content
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 code consistency via pre-commit #26

Closed
olirice opened this issue May 19, 2021 · 1 comment · Fixed by #28
Closed

Enforce code consistency via pre-commit #26

olirice opened this issue May 19, 2021 · 1 comment · Fixed by #28
Labels
enhancement New feature or request

Comments

@olirice
Copy link
Contributor

olirice commented May 19, 2021

Feature request

Is there any interest in hooking up pre-commit with the usual battery hooks for python libraries e.g. black, isort, autoflake, and mypy, to enforce code consistency/standards?

If so, I'm happy to open a PR

@J0
Copy link
Collaborator

J0 commented May 22, 2021

Yeah! A pre-commit hook with isort, black autoflake , and mypy would be really helpful in enforcing code consistency. We should probably add a check in CI as well

Please feel free to go for it. Thank you for suggesting this :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants