Make default_target configurable#2218
Conversation
|
Interesting feature! So I can also reference rules that are only included later from external |
Asking the right questions. If I put in a rule that doesn't exist, I get a MissingRuleException:
No rule to produce foobar (if you use input functions make sure that they don't raise unexpected exceptions).I could add a custom check at the end of the top-level |
|
A different error message would certainly be more user friendly, albeit maybe overengineered? Quick and simple: Document the error message that would come out if one uses a rule that does not exist. |
This allows users to leverage the
rulegraphandfilegraphrules in their soft forks and to pointpixi run snakemaketo their own "all"-style rule without needing to deletedefault_target: Truefrom the existingallrule.Technically, it also allows a user to also have different default targets per
run, so they can callpixi run snakemake --configfile config/config.<run-with-different-target>.yamland it will switch out the default target for that run without the user needing to specify the target in the CLI call. Useful for tests, perhaps?Checklist
Required:
doc/release_notes.md.If applicable:
scripts/lib/validation.doc/*.mdfiles.