pre-commit-hooks icon indicating copy to clipboard operation
pre-commit-hooks copied to clipboard

git pre-commit hooks

Results 16 pre-commit-hooks issues
Sort by recently updated
recently updated
newest added

python-Levenshtein only works for Linux users. Levenshtein works for Windows users as well. Tested using Windows 10 and Python 3.10.6

I recently upgraded my python version to 3.10 and found out that python-Levenshtein-wheels are not maintained anymore. To my knowledge there is a fork of this library with python 3.10...

Addresses #53; should be recyclable across all hooks. I don't know how to approach unit testing the glob ignores, though.

Generally I want to replace/remove CRLF in my repos. However, there are times where I require CRLF endings in files. It would be very beneficial to have an `--ignore-files` argument...

https://github.com/Lucas-C/pre-commit-hooks/blob/master/.pre-commit-hooks.yaml#L33 has line `files: '.*/.*'`. This overrides defaults and ignores top level files from project (top-level files don't have `/` in path when pre-commit is run). Example when `insert-license` hook...

Hi, I believe your tab 2 space pre-commit module is very usefull. However, as this project has `python-Levenshtein-wheels` installing that on my Windows 10 machine resulted in many C++ compiler...

Replacement PR for #41. Remove code that was not covered and that is functionnally unreachable. .

Currently doing this: ```diff diff --git a/foo b/foo index daf7c00..c1b0299 100644 --- a/foo +++ b/foo @@ -1,3 +1,7 @@ +// Copyright (c) 2022 by Foo Inc. +// Confidential and proprietary,...

This hook could also detect/remove characters like U+00A0 or U+2013 (cf. Perl local hooks in README)

enhancement

This PR succeeds #57 and simply replaces the whole fuzzywuzzy/python-Levenshtein dependency with rapidfuzz, which is faster and MIT licensed. Note that the reported issue with `python-Levenshtein` should not occur anymore,...