forked from fastapi-users/fastapi-users
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
32 lines (23 loc) · 727 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
PIPENV_RUN := pipenv run
MONGODB_CONTAINER_NAME := fastapi-users-test-mongo
isort-src:
$(PIPENV_RUN) isort ./fastapi_users
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
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