forked from ONSdigital/dp-nlp-category-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
71 lines (60 loc) · 1.63 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
# API
[tool.flake8]
max-line-length = 120
[tool.poetry]
name = "category_api"
version = "0.1.0"
description = "Created for ONS. API/CLI wrapper for proof-of-concept mmap'd Rust word2vec implementation linked with category matching"
license = "MIT"
authors = [
"Phil Weir <[email protected]>",
"Kanika Miglani <[email protected]>",
"Kamen Dimitrov <[email protected]>",
]
packages = [
{ include = "category_api" },
{ include = "category_api/scripts" }
]
# For installable server
[tool.poetry.dependencies]
python = ">=3.9,<4"
# category - poetry can not currently recognise a local maturin project as Python
# category = {path="../core", develop=false}
bonn = "0.1.5"
click = "^8.0.3"
httpx = "^0.24.0"
fastapi = "^0.110.0"
pydantic = "^1.9.0"
uvicorn = "^0.17.4"
dynaconf = "^3.1.7"
urllib3 = "^1.26"
structlog = "^23.3.0"
requests = "^2.28.2"
ruff = "^0.0.264"
boto3 = "^1.26.165"
json-log-formatter = "^0.5.2"
gunicorn = "^22.0.0"
pip = ">=23.3"
[tool.poetry.scripts]
category_cli = "category_api.scripts.category:main"
[tool.poetry.dev-dependencies]
safety = "^3.2.0"
jake = "^3.0.0"
isort = "^5.12.0"
pytest = "^7.2.2"
wheel = "^0.40.0"
ruff = "^0.0.264"
[tool.poetry.group.dev.dependencies]
pytest-asyncio = "^0.21.0"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
select = ["E", "F"]
# Ignore E501 - some lines can't be smalled than 90
ignore = ["E501"]
[tool.pytest.ini_options]
filterwarnings = [
"ignore:Deprecated call to `pkg_resources.declare_namespace:DeprecationWarning",
"ignore:pkg_resources is deprecated as an API.",
]