mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2026-03-13 07:49:55 +08:00
* Add db adapter for ormar (wip) * finish ormar support enough to pass tests * remove idea folder * update ormar version in tool.flit.metadata.requires-extra * Add documentation about ormar * Apply isort and black formatting * Restore python 3.7 in Pipfile * Update build.yml * Add missing test for ormar update * changes after review Co-authored-by: Paolo Dina <paolo.dina@codingmoth.com> Co-authored-by: collerek <collerek@gmail.com>
33 lines
756 B
Makefile
33 lines
756 B
Makefile
PIPENV_RUN := pipenv run
|
|
MONGODB_CONTAINER_NAME := fastapi-users-test-mongo
|
|
|
|
isort-src:
|
|
$(PIPENV_RUN) isort ./fastapi_users ./tests
|
|
|
|
isort-docs:
|
|
$(PIPENV_RUN) isort ./docs/src -o fastapi_users
|
|
|
|
format: isort-src isort-docs
|
|
$(PIPENV_RUN) black .
|
|
|
|
test:
|
|
docker stop $(MONGODB_CONTAINER_NAME) || true
|
|
docker run -d --rm --name $(MONGODB_CONTAINER_NAME) -p 27017:27017 mongo:4.2
|
|
$(PIPENV_RUN) pytest --cov=fastapi_users/ --cov-report=term-missing --cov-fail-under=100
|
|
docker stop $(MONGODB_CONTAINER_NAME)
|
|
|
|
docs-serve:
|
|
$(PIPENV_RUN) mkdocs serve
|
|
|
|
docs-publish:
|
|
$(PIPENV_RUN) mkdocs gh-deploy
|
|
|
|
bumpversion-major:
|
|
$(PIPENV_RUN) bumpversion major
|
|
|
|
bumpversion-minor:
|
|
$(PIPENV_RUN) bumpversion minor
|
|
|
|
bumpversion-patch:
|
|
$(PIPENV_RUN) bumpversion patch
|