-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
104 lines (91 loc) · 1.98 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
[tool.poetry]
name = "cache-and-reduce"
version = "0.1.0"
description = "Example of caching and reducing patterns for routes"
authors = ["Sergey Natalenko <sergey.natalenko@mail.ru>"]
license = "MIT"
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.12"
aiohttp = "^3.11.11"
httpx = "^0.28.1"
aiocache = "^0.12.3"
[tool.poetry.group.dev.dependencies]
pre-commit = "^4.0.1"
mypy = "^1.14.1"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
asyncio_mode = "auto"
python_files = "test_*"
python_functions = "test_*"
python_classes = "TestSuite*"
addopts = "-p no:cacheprovider"
asyncio_default_fixture_loop_scope = "function"
[tool.coverage.report]
fail_under = 70
show_missing = true
skip_covered = false
skip_empty = true
omit = ["*/migrations/*", "*/__main__.py"]
exclude_also = [
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == __main__:",
"if TYPE_CHECKING:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
"pass",
]
[tool.coverage.run]
branch = true
source = ["exchange_service"]
command_line = "-m pytest"
[tool.coverage.xml]
output = "coverage.xml"
[tool.ruff]
line-length = 88
exclude = [".git", ".mypy_cache", ".ruff_cache", ".venv"]
indent-width = 4
target-version = "py312"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.ruff.lint]
select = [
"BLE",
"C90",
"E",
"F",
"G",
"I",
"ICN",
"ISC",
"PLE",
"Q",
"RUF006",
"RUF100",
"T10",
"T20",
"TID",
"UP",
"W",
]
ignore = ["ISC001"]
fixable = ["ALL"]
[tool.ruff.lint.isort]
known-first-party = ["cache_and_reduce", "tests"]
[tool.mypy]
check_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
ignore_missing_imports = false
no_implicit_optional = true
[[tool.mypy.overrides]]
module = ["aiocache.*"]
ignore_missing_imports = true