Use imports and run directive instead of script directive for Snakefiles / clarify how to debug Snakemake scripts
fhg-isi opened this issue · 0 comments
fhg-isi commented
Maybe you could
-
adapt the Snakemake rules to use
run
directives instead ofscript
directives to allow for easier debugging in IDEs
https://stackoverflow.com/questions/78677266/how-to-debug-scripts-for-pypsa-eur -
and/or include some hints in the documentation,
- that snakemake does not support debuggin in IDEs if
script
orshell
directive is used instead ofrun
directive. - explain how the
mocksnackemake
workaround can be used for the purpose of debugging. - how to handle issues with missing files for that workaround. Is there an extra set of files that are always present for purpose of testing/debugging? Or does it use "regular" files, that need to be created running corresponding scripts/rules beforehand?
- that snakemake does not support debuggin in IDEs if
Related: