2020-08-26 18:04:57 +08:00
|
|
|
checkfiles = fastapi_cache/ examples/ tests/
|
|
|
|
|
py_warn = PYTHONDEVMODE=1
|
|
|
|
|
|
|
|
|
|
up:
|
|
|
|
|
@poetry update
|
|
|
|
|
|
|
|
|
|
deps:
|
|
|
|
|
@poetry install --no-root -E all
|
|
|
|
|
|
|
|
|
|
style: deps
|
2023-02-15 10:49:35 +08:00
|
|
|
@isort -src $(checkfiles)
|
|
|
|
|
@black $(checkfiles)
|
2020-08-26 18:04:57 +08:00
|
|
|
|
|
|
|
|
check: deps
|
2023-02-15 10:49:35 +08:00
|
|
|
@black $(checkfiles) || (echo "Please run 'make style' to auto-fix style issues" && false)
|
|
|
|
|
@flake8 $(checkfiles)
|
2020-08-26 18:04:57 +08:00
|
|
|
|
|
|
|
|
test: deps
|
2023-02-15 10:49:35 +08:00
|
|
|
$(py_warn) pytest
|
2020-08-26 18:04:57 +08:00
|
|
|
|
2021-01-06 19:57:16 +08:00
|
|
|
build: clean deps
|
2020-08-26 18:04:57 +08:00
|
|
|
@poetry build
|
|
|
|
|
|
2021-01-06 10:44:22 +08:00
|
|
|
clean:
|
|
|
|
|
@rm -rf ./dist
|
|
|
|
|
|
2020-08-26 18:04:57 +08:00
|
|
|
ci: check test
|