Closed hartwork closed 1 year ago
I'm not sure. The precommit stuff isn't my bailiwick. Someone with more knowledge should comment on this.
@bwendling let me look into pre-commit code for that…
@bwendling I believe it's fair to say that the .yml
ones without a
have never been supported by pre-commit.
Here's what I did with Git:
# git remote -v
origin https://github.com/pre-commit/pre-commit (fetch)
origin https://github.com/pre-commit/pre-commit (push)
# git rev-parse HEAD
51104fa94a6c3cdf603de2e187284289ea5abcf5
# git log -p | grep -F .pre-commit-hooks.yml | wc -l
0 ^^^^^
# git log -p | grep -F .pre-commit-hooks.yaml | wc -l
239 ^
# git log -p | grep -F .pre-commit-config.yml | wc -l
0 ^^^^^^
# git log -p | grep -F .pre-commit-config.yaml | wc -l
682 ^
# git log -p | grep -F "'yml'" | wc -l
0
# git log -p | grep -F '"yml"' | wc -l
0 ^^
# git log -p | grep -F '".yml"' | wc -l
0 ^
# git log -p | grep -F "'.yml'" | wc -l
0 ^^
I'll create a pull request dropping the .yml
ones then.
Hi!
There are two pre-commit files in here that have identical copies as both
.yaml
and.yml
:Is there a reason we need both of these still today? Also, does anyone know what it was that got us into this duplication back then?
Thanks and best, Sebastian