Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Renovate: Lucas-C/pre-commit-hooks to v1.5.4 #8

Merged
merged 1 commit into from
Oct 25, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 25, 2023

Mend Renovate

This PR contains the following updates:

Package Type Update Change
Lucas-C/pre-commit-hooks repository minor v1.3.0 -> v1.5.4

Note: The pre-commit manager in Renovate is not supported by the pre-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.4: Preserve line endings when editing file in insert_license hook

Compare Source

Changed
  • preserve line endings when editing file in insert_license hook -cf. #​84
  • the 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

v1.5.3: insert_license: new --allow-past-years parameter allows stale years to be left unchanged

Compare Source

⚠️ ⚠️ 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

v1.5.2: Renamed chmod hook to pre_commit_chmod to avoid conflict with standard chmod command

Compare 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: #​83

v1.5.1: Using pre-commit built-in text files detection feature

Compare Source

cf. https://github.com/Lucas-C/pre-commit-hooks/pull/72

v1.5.0: New hook: chmod + using rapidfuzz instead of fuzzywuzzy

Compare Source

Usage

- repo: https://github.com/Lucas-C/pre-commit-hooks
  rev: v1.5.0
  hooks:
    - id: chmod
      args: ['644']
      files: \.md$

v1.4.2: insert-license: bugfixes for --use-current-year optional flag

Compare Source

v1.4.1: insert-license: new --use-current-year optional flag

Compare Source

Handling years flexibly

You can add --use-current-year to change how the hook treats years in the
headers:

  • When inserting a header, the current year will always be inserted
    regardless of the year listed in the license file.
  • When modifying a file that already has a header, the hook will ensure the
    current year is listed in the header by using a range. For instance,
    2015 or 2015-2018 would get updated to 2015-2023 in the year 2023.
  • When removing headers, the licenses will be removed regardless of the
    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.11

Compare Source

Thanks to @​GadgetSteve for the improvement on remove-tabs: https://github.com/Lucas-C/pre-commit-hooks/pull/62

v1.3.1: Supporting Python 3.10+

Compare Source

Supporting Python 3.10 by using python-Levenshtein package instead of python-Levenshtein-wheels


Configuration

📅 Schedule: Branch creation - "every weekday" (UTC), 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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot enabled auto-merge (squash) October 25, 2023 06:01
@paddyroddy paddyroddy self-requested a review October 25, 2023 09:02
@renovate renovate bot merged commit 3fee76f into main Oct 25, 2023
4 of 5 checks passed
@renovate renovate bot deleted the renovate/lucas-c-pre-commit-hooks-1.x branch October 25, 2023 09:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant