-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
75 lines (63 loc) · 1.33 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
[tool.poetry]
name = "geoip"
version = "0.0.2"
description = "Microservice for determining country, city, etc. by IP address"
authors = ["kostya <kostya@yandex.ru>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.12"
pydantic = "^2.5.3"
pydantic-settings = "^2.1.0"
fastapi = "^0.108.0"
loguru = "^0.7.2"
orjson = "^3.9.10"
uvicorn = "^0.25.0"
geoip2 = "^4.8.0"
httpx = {extras = ["http2"], version = "^0.26.0"}
asgi-lifespan = "^2.1.0"
[tool.poetry.group.dev.dependencies]
pytest = "^7.4.4"
pytest-asyncio = "^0.23.3"
pytest-env = "^1.1.3"
mypy = "^1.8.0"
coverage = "^7.4.0"
black = "^23.12.1"
ruff = "^0.1.11"
pytest-mock = "^3.12.0"
pre-commit = "^3.6.0"
loguru-mypy = "^0.0.4"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
minversion = "6.0"
asyncio_mode = "auto"
testpaths = [
"tests",
]
env = [
"PYTEST = True",
]
[tool.black]
line-length = 120
target-version = ["py312"]
skip-string-normalization = true
[tool.ruff]
line-length = 120
target-version = "py312"
exclude = [
".mypy_cache",
".data",
]
[tool.ruff.flake8-quotes]
docstring-quotes = "double"
inline-quotes = "single"
multiline-quotes = "double"
[tool.mypy]
plugins = [
"pydantic.mypy"
]
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true