# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0
hooks:
- id: no-commit-to-branch
- id: trailing-whitespace
This can help even if your editor doesn't support fixing trailing whitespace, for example, by automatically running the hooks defined in the config file on each commit.
Using pre-commit to help us out:
.pre-commit-config.yaml
This can help even if your editor doesn't support fixing trailing whitespace, for example, by automatically running the hooks defined in the config file on each commit.