chore: unify packaging around uv

This commit is contained in:
Hadrian Burkhardt
2026-04-30 23:59:56 +00:00
parent b0fc264cb2
commit bfe72b4f77
17 changed files with 43 additions and 1310 deletions
+11 -12
View File
@@ -1,34 +1,33 @@
RUN=FLASK_APP="stw_potsdam.views" pipenv run flask run
RUN=uv run flask --app stw_potsdam.views run
dependencies:
pipenv sync --dev
uv sync --extra dev
run:
$(RUN)
debug:
FLASK_ENV=development $(RUN) --debug
uv run flask --app stw_potsdam.views --debug run
test:
pipenv run python -m pytest -vv --cov-branch --cov stw_potsdam --cov-report term --cov-report html
uv run --extra dev python -m pytest -vv --cov-branch --cov stw_potsdam --cov-report term --cov-report html
test_debug:
pipenv run python -m pytest -v --trace
uv run --extra dev python -m pytest -v --trace
coverage_publish:
pipenv run python -m coveralls
uv run --extra dev python -m coveralls
coverage_report:
pipenv run python -m coverage report --fail-under 90
uv run --extra dev python -m coverage report --fail-under 90
lint:
pipenv run pycodestyle stw_potsdam tests
pipenv run pydocstyle stw_potsdam tests
pipenv run pylint stw_potsdam tests
uv run --extra dev pycodestyle stw_potsdam tests
uv run --extra dev pydocstyle stw_potsdam tests
uv run --extra dev pylint stw_potsdam tests
clean:
pipenv run python -m coverage erase
uv run --extra dev python -m coverage erase
rm -rf .pytest_cache .cache
.PHONY: dependencies run debug test test_debug coverage_publish coverage_report lint clean