chore(deps): update pre-commit hook lucas-c/pre-commit-hooks to v1.5.5 - autoclosed #401
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 PR contains the following updates:
v1.3.1
->v1.5.5
Note: The
pre-commit
manager in Renovate is not supported by thepre-commit
maintainers or community. Please do not report any problems there, instead create a Discussion in the Renovate repository if you have any questions.Release Notes
Lucas-C/pre-commit-hooks (Lucas-C/pre-commit-hooks)
v1.5.5
: Support for multiple license filesCompare Source
Added
+ Update multiple licence year ends in one run
+ Multiple license files
If more than one
--license-filepath
argument is specified, the checks areperformed 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.
v1.5.4
: Preserve line endings when editing file in insert_license hookCompare Source
Changed
chmod
hook does nothing under Windowspre-commit
3.2.0 or superior.If you get an error like
Expected one of ... but got: 'pre-commit'
, check this issue: #83v1.5.3
: insert_license: new --allow-past-years parameter allows stale years to be left unchangedCompare Source
pre-commit
3.2.0 or superior.If you get an error like
Expected one of ... but got: 'pre-commit'
, check this issue: #83v1.5.2
: Renamed chmod hook to pre_commit_chmod to avoid conflict with standard chmod commandCompare Source
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: #83v1.5.1
: Using pre-commit built-in text files detection featureCompare Source
cf. https://github.com/Lucas-C/pre-commit-hooks/pull/72
v1.5.0
: New hook: chmod + using rapidfuzz instead of fuzzywuzzyCompare Source
Usage
v1.4.2
: insert-license: bugfixes for --use-current-year optional flagCompare Source
v1.4.1
: insert-license: new --use-current-year optional flagCompare Source
Handling years flexibly
You can add
--use-current-year
to change how the hook treats years in theheaders:
regardless of the year listed in the license file.
current year is listed in the header by using a range. For instance,
2015
or2015-2018
would get updated to2015-2023
in the year 2023.years they contain -- as if they used the year currently present in the
license file.
v1.4.0
: remove-tabs alignment now considers the enclosing whitespaces + ensured support for Python 3.11Compare Source
Thanks to @GadgetSteve for the improvement on
remove-tabs
: https://github.com/Lucas-C/pre-commit-hooks/pull/62Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.