-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPipfile
42 lines (38 loc) · 1.21 KB
/
Pipfile
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
33
34
35
36
37
38
39
40
41
42
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
fastapi = "*"
uvicorn = "*"
sqlalchemy = "*"
pydantic = {extras = ["email"], version = "*"}
alembic = "*"
psycopg2-binary = "*"
pytest = "*"
passlib = {extras = ["bcrypt"], version = "*"}
python-jose = {extras = ["cryptography"], version = "*"}
python-multipart = "*"
requests = "*"
hashids = "*"
loguru = "*"
sentry-sdk = "*"
asgi-idempotency-header = "*"
aioredis = "*"
fastapi-sso = "*"
[dev-packages]
flake8 = "*"
black = "*"
pre-commit = "*"
mypy = "*"
types-requests = "*"
sqlalchemy = {extras = ["mypy"], version = "*"}
[requires]
python_version = "3.10"
[scripts]
makemigrations = "bash -c 'docker-compose up -d pg && cd src && alembic upgrade head && alembic revision --autogenerate && cd .. && docker-compose down'"
down = "bash -c 'docker-compose down && docker-compose -f docker-compose.stage.yml down'"
lint = "bash -c 'pipenv run mypy src && pipenv run flake8 src --statistics'"
test = "bash -c 'docker-compose down && docker-compose -f docker-compose.test.yml up -d && docker-compose -f docker-compose.test.yml exec api pytest && docker-compose down'"
local = "docker-compose"
stage = "docker-compose -f docker-compose.stage.yml"