-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#213][Pre-commit] Refactor Custom Hooks.
- Run most bash hooks with stricter options whenever possible. - Fix bug in commit-file-sizes. Use `"${@}"` in order to be able to handle files with spaces in their names. - Delete redundant `pass_filenames: true`. This is the default value. - Delete redundant `always_run: true`. This is the default behaviour when there are no filters. - Refactor `check-one-readme` to look only at new / modified files, rather than all files in the repo. - Some commands fail when `"${@}"` is empty, so we check for `"$#" == 0` before proceeding. This may be unnecessary in many cases, but we do it anyway. - `check-do-not-submit` mangles the regex instead of excluding `.pre-commit-config.yaml`.
- Loading branch information
Showing
1 changed file
with
53 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters