-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
73 lines (60 loc) · 1.64 KB
/
Copy pathpyproject.toml
File metadata and controls
73 lines (60 loc) · 1.64 KB
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
[project]
name = "wb-api-client-core"
version = "0.1.0"
description = "Shared async HTTP core for Wildberries API clients: token-bucket rate-limit, tenacity retry, typed errors, WB presets."
readme = "README.md"
requires-python = ">=3.12,<3.13"
authors = [{ name = "gon7187", email = "gon7187@gmail.com" }]
license = { text = "MIT" }
dependencies = [
"httpx>=0.27",
"tenacity>=9.0",
]
[project.urls]
Repository = "https://github.com/gon7187/wb-api-client-core"
[dependency-groups]
dev = [
"pytest>=8.3",
"pytest-asyncio>=0.24",
"pytest-cov>=5.0",
"ruff>=0.7",
"mypy>=1.13",
"pre-commit>=4.0",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/wb_api_client_core"]
[tool.ruff]
line-length = 100
target-version = "py312"
src = ["src", "tests"]
[tool.ruff.lint]
select = ["E", "F", "W", "I", "B", "UP", "SIM", "RUF", "ASYNC", "S", "PT", "PL"]
ignore = ["S101", "PLR0913"]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["S101", "S105", "S106", "PLR2004"]
[tool.ruff.lint.isort]
known-first-party = ["wb_api_client_core"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.mypy]
python_version = "3.12"
strict = true
warn_unused_ignores = true
warn_redundant_casts = true
files = ["src", "tests"]
[tool.pytest.ini_options]
minversion = "8.0"
asyncio_mode = "auto"
addopts = ["-ra", "--strict-markers", "--strict-config"]
testpaths = ["tests"]
[tool.coverage.run]
branch = true
source = ["src/wb_api_client_core"]
[tool.coverage.report]
fail_under = 80
show_missing = true
exclude_lines = ["pragma: no cover", "if __name__ == .__main__.:"]