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

Introduce pre-commit hooks #103

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Introduce pre-commit hooks #103

wants to merge 1 commit into from

Conversation

falkoschindler
Copy link
Collaborator

To finally put an end to changing file endings back and forth, this PR introduces pre-commit hooks.

To install it on your system (once for all repositories you're working with):

pip install pre-commit

To install it in your local checkout (once for this repository):

pre-commit install

To check all files manually (every now and then):

pre-commit run --all-files

But once installed, pre-commit will automatically run before each commit or push, fixing things like training whitespace or wrong end-of-files. Changes will appear as unstaged changes.

@falkoschindler falkoschindler added the enhancement New feature or request label Nov 19, 2024
@falkoschindler falkoschindler added this to the 0.6.0 milestone Nov 19, 2024
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 this pull request may close these issues.

1 participant