-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpyproject.toml
104 lines (95 loc) · 2.53 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
[build-system]
requires = ["poetry_core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "BERTopic-as-service"
version = "0.2.0"
homepage = "https://github.com/SergeyShk/bertopic-as-service"
repository = "https://github.com/SergeyShk/bertopic-as-service"
documentation = "https://github.com/SergeyShk/bertopic-as-service"
authors = ["Sergey Shkarin <[email protected]>", "Alexey Vatolin <[email protected]>"]
maintainers = ["Sergey Shkarin <[email protected]>"]
description = "Using BERTopic as a service to create easily interpretable topics"
license = "MIT"
keywords = ["Topic Modeling", "BERTopic", "FastAPI"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.8"
setuptools = "*" # for umap library
bertopic = "*"
joblib= "<=1.1.0"
fastapi = "*"
gunicorn = "*"
uvicorn = "*"
aiobotocore = ">=1.4.2"
pydantic = {extras = ["dotenv"], version = ">=1.8.2"}
sqlmodel = ">=0.0.4"
psycopg2-binary = "^2.9.1"
asyncpg = ">=0.24.0"
alembic = ">=1.7.5"
fastapi-pagination = {extras = ["sqlmodel"], version = ">=0.9.1"}
[tool.poetry.dev-dependencies]
black = "*"
isort = "*"
mypy = "*"
pre-commit = "*"
pytest = "*"
pytest-cov = "*"
pytest-mock = "^3.6.1"
ruff = "*"
httpx = "*"
[tool.black]
target-version = ["py38"]
line-length = 99
color = true
[tool.isort]
py_version = 38
line_length = 99
known_typing = ["typing", "types", "typing_extensions", "mypy", "mypy_extensions"]
sections = ["FUTURE", "TYPING", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
profile = "black"
include_trailing_comma = true
multi_line_output = 3
indent = 4
color_output = true
[tool.mypy]
python_version = 3.8
files = ["service", "tests"]
pretty = true
show_traceback = true
color_output = true
allow_redefinition = false
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
ignore_missing_imports = true
implicit_reexport = false
no_implicit_optional = true
show_column_numbers = true
show_error_codes = true
show_error_context = true
strict_equality = true
strict_optional = true
warn_no_return = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
warn_unused_configs = true
warn_unused_ignores = true
[tool.ruff]
target-version = "py38"
line-length = 99
select = ["A", "B", "C", "E", "F", "N", "Q", "W", "UP"]
ignore = ["E501", "F401", "B904", "B008"]
format = "grouped"
exclude = ["*.md"]
show-source = true
[tool.ruff.mccabe]
max-complexity = 18
[tool.pytest.ini_options]
addopts = "-vv -x --lf"
testpaths = ["tests"]
markers = [
"unit: unit tests",
"slow: integration tests",
]