tonybaloney / perflint

Python Linter for performance anti patterns
MIT License
665 stars 10 forks source link

fix: pre-commit configuration filename #32

Closed adamantike closed 2 years ago

adamantike commented 2 years ago

According to pre-commit official documentation [0]:

A git repo containing pre-commit plugins must contain a .pre-commit-hooks.yaml file that tells pre-commit:

With the current filename (yml instead of yaml), trying to configure this project as a hook makes pre-commit fail with:

An error has occurred: InvalidManifestError:
=====> .local/cache/pre-commit/repog7znoma3/.pre-commit-hooks.yaml is not a file

[0] https://pre-commit.com/#creating-new-hooks

tonybaloney commented 2 years ago

Thanks!!