-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
executable file
·136 lines (116 loc) · 3.4 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
#################################################
# Project metadata
#################################################
[project]
requires-python = ">=3.8"
name = "fastapi-nano"
version = "0.1.0"
description = "CoreService for Sensay-AI created from A minimal FastAPI project template."
readme = "README.md"
keywords = ["fastapi", "template", "minimal", "docker", "cookiecutter"]
license = {file = "LICENSE"}
authors = [
{ name = "Minh Nguyen", email = "[email protected]" },
{ name = "Tri Tran", email = "[email protected]" },
{ name = "Binh Pham", email = "[email protected]" }
]
[project.urls]
Repository = "https://github.com/Sensay-AI/core-service"
#################################################
# Mypy config
#################################################
[tool.mypy]
follow_imports = "skip"
ignore_missing_imports = true
warn_no_return = true
warn_unused_ignores = true
allow_untyped_globals = true
allow_redefinition = true
disallow_untyped_defs = true
no_implicit_optional = true
show_error_codes = true
pretty = true
exclude = ['build','venv','.venv','alembic/production/env.py']
[[tool.mypy.overrides]]
module = "app.tests.*"
ignore_errors = true
#################################################
# Ruff config
#################################################
[tool.ruff]
line-length = 88
# Enable Pyflakes `E` and `F` codes by default
select = ["E", "F", "I001", "PT", "C4"]
ignore = ["E501"]
respect-gitignore = true
per-file-ignores = {}
# Allow unused variables when underscore-prefixed
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
# Assume Python 3.11
target-version = "py311"
[tool.ruff.mccabe]
# Unlike Flake8, default to a complexity level of 10
max-complexity = 10
#################################################
# Pytest config
#################################################
[tool.pytest.ini_options]
addopts = "--strict-markers --maxfail 1 --cov src --no-header"
markers = """
integration: mark a test as an integration test.
"""
console_output_style = "progress"
#################################################
# Setuptools config
#################################################
[tool.setuptools.packages.find]
where = ["app"] # ["."] by default
[tool.poetry]
name = "fastapi-nano"
version = "0.1.0"
description = "CoreService for Sensay-AI created from A minimal FastAPI project template."
authors = [
"minhnguyen <[email protected]>",
"Tri Tran <[email protected]>",
"Binh Pham <[email protected]>"
]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.11"
bcrypt = "^4.0.1"
fastapi = "^0.97.0"
passlib = "^1.7.4"
python-multipart = "^0.0.6"
uvicorn = "^0.22.0"
gunicorn = "^20.1.0"
python-jose = "^3.3.0"
sqlalchemy = "^2.0.19"
psycopg2-binary = "^2.9.6"
pyjwt = "^2.1.0"
singleton-decorator = "^1.0.0"
cryptography = "^41.0.1"
boto3 = "^1.28.23"
pillow = "^10.0.0"
replicate = "^0.11.0"
openai = "^0.27.8"
boto3-type-annotations-with-docs = "^0.3.1"
dependency-injector = "^4.41.0"
pyyaml = "^6.0.1"
sentry-sdk = { version = "*", extras = ["fastapi"] }
langchain = "^0.0.265"
tiktoken = "^0.4.0"
jinja2 = "^3.1.2"
[tool.poetry.group.dev.dependencies]
black = "^23.7.0"
httpx = "^0.24.1"
mypy = "^1.4.1"
pip-tools = "^7.3.0"
pytest-cov = "^4.1.0"
ruff = "^0.0.284"
pytest = "^7.3.2"
requests = "^2.31.0"
pytest-asyncio = "^0.21.1"
alembic = "^1.11.2"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"