.fmf formatting #2164
Replies: 2 comments 9 replies
-
Thanks for the idea. Sounds good to me. Yes, |
Beta Was this translation helpful? Give feedback.
-
oh well, nevermind pre-commit/identify#395 As for formatting, linting .fmf files, I've settled with yamlfix:
pyproject.toml:
which leaves yaml/yml files alone and only checks/formats .fmf files. @psss does it make sense to have some tmt-recommended formatting standard, or is it "anything yaml parsable is good"? :) |
Beta Was this translation helpful? Give feedback.
-
Identify is a python file identification library. It is being used by pre-commit.
I would like to add .fmf to the list of extensions there, but have a couple of questions:
as opposed to just
Adding it would mean any pre-commit hooks that are being run against yaml files would also run against .fmf files without explicitly configuring it (which might sometimes not even be possible ...yamlfix 👀)
fyi
.fmf
directory is correctly identified.I'm not sure where else is identify lib being used, but in pre-commit, this would allow running checks against .fmf files much easier by being able to use
types
andtypes_or
filters.Also, it would allow to make tmt/.pre-commit-hooks.yaml a bit cleaner.
Beta Was this translation helpful? Give feedback.
All reactions