snakefmt
Format Snakemake files. tldr-pages
On several platforms
Several platforms
Format a specific Snakefile
snakefmt path/to/snakefileIdentifyFormat all Snakefiles recursively in a specific directory
snakefmt path/to/directoryIdentifyFormat a file using a specific configuration file
snakefmt --config path/to/config.toml path/to/snakefileIdentifyFormat a file using a specific maximum line length
snakefmt --line-length 100 path/to/snakefileIdentifySimulate formatting and display the changes that would be made
snakefmt --diff path/to/snakefileIdentify