git pre-commit hooks
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.
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
⚠️ ⚠️ 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
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
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.Thanks to @GadgetSteve for the improvement on remove-tabs
: https://github.com/Lucas-C/pre-commit-hooks/pull/62
Supporting Python 3.10 by using python-Levenshtein package instead of python-Levenshtein-wheels