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

Add pre-commit for code style #600

Closed
Rotzbua opened this issue Nov 3, 2023 · 1 comment
Closed

Add pre-commit for code style #600

Rotzbua opened this issue Nov 3, 2023 · 1 comment

Comments

@Rotzbua
Copy link
Contributor

Rotzbua commented Nov 3, 2023

Suggestion

pre-commit is a tool that formats and checks the changed code before each commit.

Pro

One advantage is that it automatically sets up its own environment for each tool, so the user does not have to install and configure each tool.

Many predefined tools are available: https://pre-commit.com/hooks.html

Con

Must be actively installed by the user.

GH Action does not make annotations.

Reference

https://pre-commit.com/

@florianfesti
Copy link
Owner

Completed with #601

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants