-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Andrew Ramirez
committed
Sep 13, 2024
1 parent
888b96b
commit f21903f
Showing
5 changed files
with
309 additions
and
2,405 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,26 @@ | ||
SHELL := /bin/bash | ||
.PHONY: clean test pyright | ||
|
||
.PHONY: clean test | ||
|
||
flist = $(wildcard pf2rnaseq/figures/figure*.py) | ||
allOutput = $(patsubst pf2rnaseq/figures/figure%.py, output/figure%.svg, $(flist)) | ||
flist = $(wildcard pf2scrnaseq/figures/figure*.py) | ||
allOutput = $(patsubst pf2scrnaseq/figures/figure%.py, output/figure%.svg, $(flist)) | ||
|
||
all: $(allOutput) | ||
|
||
output/figure%.svg: pf2rnaseq/figures/figure%.py | ||
output/figure%.svg: pf2scrnaseq/figures/figure%.py | ||
@ mkdir -p ./output | ||
poetry run fbuild $* | ||
rye run fbuild $* | ||
|
||
output/figureCITEseq%.svg: pf2rnaseq/figures/figureCITEseq%.py | ||
@ mkdir -p ./output | ||
poetry run fbuild CITEseq$* | ||
test: .venv | ||
rye run pytest -s -v -x | ||
|
||
.venv: | ||
rye sync | ||
|
||
test: | ||
poetry run pytest -s -x -v | ||
coverage.xml: .venv | ||
rye run pytest --junitxml=junit.xml --cov=pf2scrnaseq --cov-report xml:coverage.xml | ||
|
||
coverage.xml: | ||
poetry run pytest --cov=pf2rnaseq --cov-report=xml | ||
pyright: .venv | ||
rye run pyright pf2scrnaseq | ||
|
||
clean: | ||
rm -rf output profile profile.svg | ||
rm -rf factor_cache | ||
|
||
testprofile: | ||
poetry run python3 -m cProfile -o profile -m pytest -s -v -x | ||
gprof2dot -f pstats --node-thres=5.0 profile | dot -Tsvg -o profile.svg | ||
|
||
mypy: | ||
poetry run mypy --install-types --non-interactive --ignore-missing-imports --check-untyped-defs pf2rnaseq | ||
rm -rf factor_cache |
Oops, something went wrong.