Ruff check for other file formats especially config file formats #11478
inoa-jboliveira
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I know ruff is a Python only tool and almost all checks are related to python files (.py and .pyi), but there is an exception which is RUF200 that checks if a toml file is valid within the python spec.
Having said that, I believe other file types that belong to the python ecosystem could also have linter checks at least to know if they have valid syntax or not. Specially with file types meant for configuration or tests.
Which of you never accidentally added a trailing comma to a JSON file? A check that is basically says if JSON is valid or not would be extremely helpful.
Proposal: Provide checks for standardized file formats that would not require Ruff to write parsers, so no maintenance burden
All this gives ruff the opportunity to have more checks related to these files and possibly extend the formatter from python only.
Example -- not saying this is a good check to have, just illustrating:
Beta Was this translation helpful? Give feedback.
All reactions