Skip to content

Use predefined types for pre-commit over file endings #815

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hofbi
Copy link

@hofbi hofbi commented Jun 24, 2025

pre-commit has some predefined types that match the correct extensions. The jsonnet type matches https://github.com/pre-commit/identify/blob/40af39f8124a4e8029ff3716c2b0bbf2e1e5fb1e/identify/extensions.py#L139 and https://github.com/pre-commit/identify/blob/40af39f8124a4e8029ff3716c2b0bbf2e1e5fb1e/identify/extensions.py#L151 which are exactly the file endings used before

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant