Checks are automatically run on certain pushed commits for testing and linting purposes. Some are defined by .github/workflows/ci.yaml while others are configured outside of this repository.
pre-commit is used for various checks (see configuration).
You can either install it yourself to catch issues before pushing or look for the pre-commit.ci run after pushing.
We use snakefmt
to ensure consistency in style across Snakemake files in this project.
- Using mamba/bioconda:
mamba install -c bioconda snakefmt
- Using pip:
pip install snakefmt
- Check for styling issues with
snakefmt --check .
- Automatically fix styling issues with
snakefmt .
- Install the VSCode extension
- Check for styling issues with
Ctrl+Shift+P
and selectsnakefmt: Check
- Automatically fix styling issues with
Ctrl+Shift+P
and selectFormat document