Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: set up Black correctly and Snakemake format #137

Merged
merged 5 commits into from
Feb 11, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# This file is used to list commits which will be ignored by github to calculate git blame
# These are commits which modify multiple parts of the codebase, e.g formatting changes

# Format Snakefile with snakefmt
684d582acdb8af4ae87911dc7eb747411ff30eaa
3 changes: 2 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ jobs:
- name: black
uses: psf/black@stable
with:
options: "--check --verbose --line-length=79 --required-version 24.1.1"
options: "--check --verbose --line-length=79"
src: "./scripts"
version: "24.1.1"
deliaBlue marked this conversation as resolved.
Show resolved Hide resolved


snakemake-format-graph-test:
Expand Down
1 change: 1 addition & 0 deletions environment.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ channels:
- conda-forge
- bioconda
dependencies:
- black>=24.1.1
- coverage>=7.3.2
- flake8>=6.1.0
- flake8-docstrings>=1.7.0
Expand Down
8 changes: 5 additions & 3 deletions workflow/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,10 @@ rule finish:
sample=pd.unique(samples_table.index.values),
),
piles_design=expand(
PILEUP_DIR / "{condition}" / "check_file_{condition}.txt"
if config["lib_dict"] != None
else [],
(
PILEUP_DIR / "{condition}" / "check_file_{condition}.txt"
if config["lib_dict"] != None
else []
),
condition=list(config["lib_dict"].keys()),
),
Loading