-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
78 lines (69 loc) · 1.61 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
[tool.poetry]
name = "discord-activity-bot"
version = "1.1.0"
description = ""
authors = ["Alexei Stoliarov <[email protected]>"]
license = "MIT"
packages = [{ include = "dbot", from = "src" }]
[tool.poetry.dependencies]
python = "^3.12.1"
Jinja2 = "^3.1.2"
sentry-sdk = "^1.5.10"
structlog = "^22.1.0"
tenacity = "^8.1.0"
discord-py = { extras = ["voice"], version = "^2.3.2" }
redis = "^5.0.0"
pydantic = "^2.3.0"
pydantic-settings = "^2.0.3"
freezegun = "^1.2.2"
aioprometheus = {extras = ["aiohttp"], version = "^23.3.0"}
chardet = "^5.2.0"
[tool.poetry.group.dev.dependencies]
mypy = "^1.5.1"
pytest = "^7.4.0"
pytest-mock = "^3.11.1"
isort = "^5.12.0"
black = "^23.7.0"
pytest-asyncio = "^0.21.1"
flake8 = "^6.1.0"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 120
[tool.isort]
combine_as_imports = true
profile = "black"
[tool.mypy]
plugins = [
"pydantic.mypy"
]
disallow_any_decorated = false
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_calls = true
disallow_untyped_defs = true
ignore_missing_imports = true
no_implicit_reexport = true
strict_equality = true
warn_redundant_casts = true
warn_unreachable = true
warn_unused_configs = true
warn_unused_ignores = true
mypy_path = "stubs"
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
warn_untyped_fields = true
[[tool.mypy.overrides]]
module = [
"tests.*"
]
ignore_errors = true
[tool.pytest.ini_options]
asyncio_mode = "auto"
pythonpath = ["src", "tests"]
addopts = [
"--import-mode=importlib",
]