Fix test pipeline and clean-up config

This commit is contained in:
Yax 2023-11-11 14:04:13 +01:00
parent e85157c5a0
commit 760097fe92
4 changed files with 25 additions and 30 deletions

View file

@ -5,24 +5,28 @@ ifeq (run,$(firstword $(MAKECMDGOALS)))
$(eval $(RUN_ARGS):;@:)
endif
all: black test typehint lint
# code quality
all: black typehint lint
black:
rye run isort --multi-line 3 --profile black src/ tests/
rye run black --target-version py311 src/ tests/
test:
rye run coverage run -m --source=stacosys pytest tests
rye run coverage report
typehint:
rye run mypy --ignore-missing-imports src/ tests/
lint:
rye run pylint src/
# test
test:
rye run coverage run -m --source=stacosys pytest tests
rye run coverage report
# build
build:
rye run pyinstaller stacosys.spec
# run
run:
rye run python src/stacosys/run.py $(RUN_ARGS)