Add .pre-commit-config.yml file with pre-commit hooks #955
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request adds a
.pre-commit-config.yaml
file to the repository, which includes pre-commit hooks for code formatting and quality checks.The hooks can be installed locally using this guide to check for and rectify any violations before committing files, but using pre-commit.ci, it's also possible to register this repository to be automatically corrected and updated by a bot. This way, any pull requests for this project will either always adhere to guidelines defined by the hooks, or fail a status check if they require manual adjustments.
To enable pre-commit.ci, it's important to log into the service and authorize access to this repository. Beyond that, no further action is required.
Here's a list of all the hooks added with the
.pre-commit-config.yml
file. All of them pass after a single autofix commit.