git pre-commit hooks
MIT License
Published by Lucas-C 9 months ago
If more than one --license-filepath
argument is specified, the checks are
performed as follows:
First, an exact match is pursued, checking the 1st license file, then
the 2nd, and so on. If a match is found, the normal behavior is
followed, as if the matched license file was the only license file
specified.
If no exact match is found, then the software resorts to fuzzy matching.
Again, as soon as a match is found, the normal behavior is followed, as
if the fuzzy-matched license file was the only license file specified.
Finally, if neither exact nor fuzzy matches are found, the content of
the first license file is inserted.
Published by Lucas-C about 1 year ago
chmod
hook does nothing under Windows⚠️ ⚠️ This hook, since v1.5.2, requires pre-commit
3.2.0 or superior.
If you get an error like Expected one of ... but got: 'pre-commit'
, check this issue: #83
Published by Lucas-C about 1 year ago
⚠️ ⚠️ This hook, since v1.5.2, requires pre-commit
3.2.0 or superior.
If you get an error like Expected one of ... but got: 'pre-commit'
, check this issue: #83
Published by Lucas-C about 1 year ago
Also confined formatting-related hooks to meaningful stages - cf. PR #75
Now this hook requires pre-commit
3.2.0 or superior.
If you get an error like Expected one of ... but got: 'pre-commit'
, check this issue: #83
Published by Lucas-C over 1 year ago
Published by Lucas-C over 1 year ago
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.0
hooks:
- id: chmod
args: ['644']
files: \.md$
Published by Lucas-C almost 2 years ago
Published by Lucas-C almost 2 years ago
You can add --use-current-year
to change how the hook treats years in the
headers:
2015
or 2015-2018
would get updated to 2015-2023
in the year 2023.Published by Lucas-C almost 2 years ago
Thanks to @GadgetSteve for the improvement on remove-tabs
: https://github.com/Lucas-C/pre-commit-hooks/pull/62
Published by Lucas-C about 2 years ago
Supporting Python 3.10 by using python-Levenshtein package instead of python-Levenshtein-wheels
Published by Lucas-C over 2 years ago
Published by Lucas-C over 2 years ago
Published by Lucas-C over 2 years ago
Published by Lucas-C over 2 years ago
Thanks @mdeweerd for his contributions in PRs #30 & #33!
Published by Lucas-C over 2 years ago
Published by Lucas-C over 2 years ago
Thanks to @M5oul for reporting it in #25
Published by Lucas-C over 2 years ago
Published by Lucas-C over 2 years ago
.gitmodules
are now ignored by the forbid-tabs
/ remove-tabs
hooks - thanks @henryiii!Published by Lucas-C over 3 years ago
cf. https://github.com/Lucas-C/pre-commit-hooks/pull/19
Now using the wheels version of Levenshtein for Window compatibility - thanks @AntoineD & @dmateusp!
Published by Lucas-C about 5 years ago
Thanks to @potiuk for contributing those features to this project !