-
Notifications
You must be signed in to change notification settings - Fork 189
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
Module meta.yml restructure #3028
Module meta.yml restructure #3028
Conversation
Looked into the pyaml issue, and looks like some people are using ruamel instead of pyaml. Should we do the same? |
Sounds good!
You can see how the changes in some modules will look like here. |
34d5828
to
e6b4c85
Compare
…cesses, for meta.yml
e6b4c85
to
ef7364d
Compare
Continuation of #2789
This PR adds an automated way of generating the right format
meta.yml
for modules.Note that the structure proposed in nf-core/modules#4983 (comment) is not possible if we want to automate the creation of this file, as comments are ignored when reading a yaml file with Python.
Example of outputs formatting:
In this PR we also add an option
--update-meta-yml
--fix
to fix existing files automatically.To be changed to
--fix
as suggested in #2789 (comment)Pytests are also missing for this functionality.A test was added for the command
nf-core modules lint --fix
.Together with this PR, there are other actions which must happen at the same time:
POC in modules: nf-core/modules#5867