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

Merged
merged 2 commits into from
Nov 25, 2024
Merged

Introduce pre-commit hooks #103

merged 2 commits into from
Nov 25, 2024

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
Copy link
Contributor

@JensOgorek JensOgorek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like that 👍

# Conflicts:
#	main/modules/dunker_wheels.h
#	main/modules/odrive_wheels.h
@falkoschindler falkoschindler merged commit 73f6c64 into main Nov 25, 2024
@falkoschindler falkoschindler deleted the pre-commit branch November 25, 2024 20:31
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.

3 participants