Skip to content

Commit

Permalink
Remove poetry and move to rye
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Ramirez committed Sep 13, 2024
1 parent 888b96b commit f21903f
Show file tree
Hide file tree
Showing 5 changed files with 309 additions and 2,405 deletions.
37 changes: 15 additions & 22 deletions makefile
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
Loading

0 comments on commit f21903f

Please sign in to comment.