2025-03-14 21:59:59 -06:00
|
|
|
# snakefmt
|
|
|
|
|
|
|
|
|
|
> Format Snakemake files.
|
2026-02-18 06:55:01 -07:00
|
|
|
> More information: <https://github.com/snakemake/snakefmt#usage>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Format a specific Snakefile:
|
|
|
|
|
|
|
|
|
|
`snakefmt {{path/to/snakefile}}`
|
|
|
|
|
|
|
|
|
|
- Format all Snakefiles recursively in a specific directory:
|
|
|
|
|
|
|
|
|
|
`snakefmt {{path/to/directory}}`
|
|
|
|
|
|
|
|
|
|
- Format a file using a specific configuration file:
|
|
|
|
|
|
|
|
|
|
`snakefmt --config {{path/to/config.toml}} {{path/to/snakefile}}`
|
|
|
|
|
|
|
|
|
|
- Format a file using a specific maximum line length:
|
|
|
|
|
|
|
|
|
|
`snakefmt --line-length {{100}} {{path/to/snakefile}}`
|
|
|
|
|
|
|
|
|
|
- Display the changes that would be performed without performing them (dry-run):
|
|
|
|
|
|
|
|
|
|
`snakefmt --diff {{path/to/snakefile}}`
|