Skip to content
Discussion options

You must be logged in to vote

This sounds like it might be a pre-commit question rather than a Ruff question, but I've used the identify-cli command described in https://pre-commit.com/#filtering-files-with-types before to check the file type that pre-commit will detect. It looks like there is a spec type, so that might be just what you need!

uvx --from identify identify-cli try.spec
["file", "non-executable", "spec", "text"]

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@ratijas
Comment options

@ratijas
Comment options

@Avasam
Comment options

@ratijas
Comment options

Answer selected by ratijas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants