-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
79 lines (71 loc) · 1.76 KB
/
pyproject.toml
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
[tool.poetry]
name = "apihub"
version = "0.1.2"
description = "a API gateway on top of Redis"
license = "MIT"
authors = ["Yifan Zhang <[email protected]>"]
readme = "README.rst"
[tool.poetry.scripts]
apihub_server = "apihub.server:main"
apihub_result = "apihub.result:main"
apihub_worker = "apihub.worker:main"
apihub_cli = "apihub.cli:cli"
apihub_admin = "apihub.admin:create_all_statements"
[tool.poetry.group.dev.dependencies]
openapi-spec-validator = "^0.5.1"
alembic = "^1.9.1"
pyyaml = "^6.0"
[tool.black]
line-length = 88
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
[tool.flake8]
ignore = "E203, E266, E402, E501, W503, F403, F401"
max-line-length = 88
max-complexity = 18
select = "B,C,E,F,W,T4,B9"
[tool.pytest.ini_options]
minversion = "6.0"
python_files = "*.py"
addopts = "--color=yes -p no:warnings --ignore=templates --ignore=static --doctest-glob *.rst --ignore=apihub --ignore=alembic"
doctest_optionflags= "NORMALIZE_WHITESPACE ELLIPSIS"
[tool.poetry.dependencies]
python = "^3.7"
prometheus-client = ">=0.7.0,<0.8.0"
redis = "^4.0.0"
fastapi = "^0.65.1"
uvicorn = "^0.13.4"
fastapi-jwt-auth = "^0.5.0"
psycopg2-binary = "^2.8.6"
SQLAlchemy = "^1.4.15"
SQLAlchemy-Utils = "^0.37.4"
python-multipart = "^0.0.5"
jsonschema = "^4.0.0"
typer = "^0.4.0"
orjson = "^3.6.7"
tanbih-pipeline = {extras = ["redis"], version = "^0.12.4"}
[tool.poetry.dev-dependencies]
pytest = "^6.0"
pre-commit = "^2.13.0"
pytest-asyncio = "^0.15.1"
pytest-dotenv = "^0.5.2"
factory-boy = "^3.2.0"
requests = "^2.25.1"
mypy = "^0.812"
black = {version = "^21.6b0", allow-prereleases = true}
locust = "^2.13.0"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"