-
Notifications
You must be signed in to change notification settings - Fork 29
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
Which keywords can occur more than once? #27
Comments
|
For container and report, there is no need to occur more than once, except overwriting them in different included files. |
For current tip of master, anything other than in |
Yes, sounds good to me. I don't think snakefmt should try to do the job of a linter or snakemake itself here. Just formatting. |
Yet, in order to format properly, it needs a parser that's aware of the grammar. So its an easy bonus to validate the grammar. I think it could be valuable to formalise which keywords can occur twice. But for now i can just disable this ! |
From bb1543e parameter keywords in duplicate (eg rule named in duplicate do cause parsing errors, as does snakemake currently. |
Right now,
snakefmt
allows the following to occur more than once:snakemake
allows quite a few more, includingconfigfile
,workdir
,container
,report
.(Actually I can see
configfile
multicopy should be supported, the config dictionary gets updated for every new file.)Which keywords can be multicopy?
Might be worth updating the grammar to reflect this
The text was updated successfully, but these errors were encountered: