-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
162 lines (145 loc) · 3.49 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
[project]
requires-python = ">=3.9"
[tool.poetry]
authors = [
"Pavel Perestoronin <[email protected]>",
]
description = "Generic API client based on Pydantic"
keywords = ["api", "api-client", "pydantic"]
license = "Apache-2.0"
name = "combadge"
readme = "README.md"
repository = "https://github.com/kpn/combadge"
version = "0.0.0"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Internet",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Topic :: System",
"Topic :: System :: Networking",
"Typing :: Typed",
]
[tool.mypy]
allow_redefinition = true
allow_untyped_globals = true
check_untyped_defs = true
disable_error_code = "type-abstract" # https://github.com/python/mypy/issues/4717
pretty = true
warn_unused_configs = true
warn_redundant_casts = true
[tool.ruff]
line-length = 120
target-version = "py39"
[tool.ruff.lint]
select = [
"A",
"ANN",
"B",
"C4",
"COM",
"D",
"E",
"F",
"I",
"N",
"PIE",
"PT",
"PTH",
"RET",
"SIM",
"T20",
"TRY",
"UP",
"W",
"YTT",
]
ignore = [
"ANN401",
"D100",
"D103",
"D104",
"D105",
"D202",
"D203",
"D212", # alternative of D213
"D406",
"D407",
"D413",
"TRY003",
"UP006", # Python 3.9+
]
unfixable = ["B"]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["D101", "D102", "D106"]
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"
[tool.pytest.ini_options]
addopts = "--block-network --cov=./ --cov-report=xml"
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "session"
[tool.coverage.run]
branch = true
omit = ["tests/*"]
source = ["combadge"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"except ImportError",
"if TYPE_CHECKING:",
]
[build-system]
requires = ["poetry-core", "poetry-dynamic-versioning"]
build-backend = "poetry_dynamic_versioning.backend"
[tool.poetry.dependencies]
python = "^3.9.0"
annotated-types = "^0.7.0"
get-annotations = { version = "^0.1.2", python = "<3.10" }
httpx = {version = ">=0.23.3, <1.0.0", optional = true}
pydantic = "^2.0.0"
typing-extensions = "^4.5.0"
zeep = {version = "^4.2.1", optional = true}
[tool.poetry.extras]
httpx = ["httpx"]
zeep = ["zeep"]
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
mypy = "1.13.0"
pytest = "8.3.4"
pytest-cov = "5.0.0"
types-requests = "^2.28.11.8"
ruff = "0.8.2"
pytest-recording = "0.13.2"
pytest-asyncio = "0.24.0"
urllib3 = "1.26.20"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
black = "24.10.0"
cairosvg = "2.7.1"
mkdocs-autorefs = "1.2.0"
mkdocs-git-committers-plugin-2 = "2.4.1"
mkdocs-git-revision-date-localized-plugin = "1.3.0"
mkdocs-material = "9.5.48"
mkdocstrings = { version = "0.27.0", extras = ["python"] }
pillow = "11.0.0"
[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
pattern = "default-unprefixed"
style = "pep440"
strict = true
latest-tag = true