mirror of
https://github.com/long2ice/fastapi-cache.git
synced 2026-03-25 04:57:54 +00:00
28 lines
483 B
Makefile
28 lines
483 B
Makefile
checkfiles = fastapi_cache/ examples/ tests/
|
|
py_warn = PYTHONDEVMODE=1
|
|
|
|
up:
|
|
@poetry update
|
|
|
|
deps:
|
|
@poetry install --no-root -E all
|
|
|
|
style: deps
|
|
@poetry run isort -src $(checkfiles)
|
|
@poetry run black $(checkfiles)
|
|
|
|
check: deps
|
|
@poetry run black $(checkfiles) || (echo "Please run 'make style' to auto-fix style issues" && false)
|
|
@poetry run flake8 $(checkfiles)
|
|
|
|
test: deps
|
|
$(py_warn) poetry run pytest
|
|
|
|
build: clean deps
|
|
@poetry build
|
|
|
|
clean:
|
|
@rm -rf ./dist
|
|
|
|
ci: check test
|