Skip to content

Conversation

@petamas
Copy link

@petamas petamas commented Feb 10, 2026

This PR adds support for a couple different formats:

  • Fixed file names with known internal format:
    • Brewfile (used by Homebrew) is interpreted as Ruby
    • Fastfile (used by Fastlane) is interpreted as Ruby
    • uv.lock (used by Astral's uv) is a TOML file
  • Alternative extensions for preexisting file formats:
    • .cmd to batch (previously only .bat was recognized)
    • .diff to diff (previously only .patch was recognized)
  • New formats that are subclasses of a general-use format:
    • .xaml (XML files used by Microsoft's WPF and UWP)
    • .entitlements (property list files used by Apple OSs)
  • Completely new formats:
    • .hlsl for HLSL (High-Level Shader Language) source files
    • .hlsli for HLSL (High-Level Shader Language) header files

There's no real connection between these formats apart from all being present in a repository I'm introducing pre-commit to. I'll soon open a couple other PRs with more formats that are related to each other. (I'll open separate PRs for other groups of formats that are related to each other.)

I'm happy to split this up further if you want me to.

@asottile
Copy link
Member

yeah this is unreviewable. things need to be unambiguous and one per pr

@asottile asottile closed this Feb 10, 2026
@petamas
Copy link
Author

petamas commented Feb 10, 2026

@asottile : which of these would you consider ambiguous? I'm happy to open separate PRs per format, I just want to verify if you find any extensions ambigious.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants