-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
pyproject.toml
158 lines (143 loc) · 3.34 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
[tool.poetry]
authors = [
"Pavel Perestoronin <[email protected]>",
"Bo Bayles",
"Théo Mathieu",
"Aleksey Zubakov",
"Tobias Kölling",
"Shiba",
]
description = "Protocol Buffers using Python type annotations"
keywords = ["protobuf", "protocol-buffers"]
license = "MIT"
name = "pure-protobuf"
readme = "README.md"
repository = "https://github.com/eigenein/protobuf"
version = "0.0.0"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"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",
"License :: OSI Approved :: MIT License",
"Typing :: Typed",
]
[build-system]
requires = ["poetry-core", "poetry-dynamic-versioning"]
build-backend = "poetry_dynamic_versioning.backend"
[tool.poetry.dependencies]
get-annotations = { version = "^0.1.2", python = "<3.10" }
python = "^3.9.0"
typing-extensions = "^4.4.0"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
black = "24.10.0"
cairosvg = "2.7.1"
mkdocs-autorefs = "1.2.0"
mkdocs-git-revision-date-localized-plugin = "1.3.0"
mkdocs-material = "9.5.47"
mkdocstrings = { version = "0.27.0", extras = ["python"] }
mypy = "1.13.0"
pillow = "11.0.0"
pydantic = "2.10.2"
pytest = "8.3.4"
pytest-benchmark = "5.1.0"
pytest-cov = "6.0.0"
ruff = "0.8.1"
[tool.poetry.urls]
"Changelog" = "https://github.com/eigenein/protobuf/blob/master/CHANGELOG.md"
"Homepage" = "https://github.com/eigenein/protobuf"
"Issues" = "https://github.com/eigenein/protobuf/issues"
[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
pattern = "default-unprefixed"
style = "pep440"
strict = true
latest-tag = true
[tool.mypy]
allow_redefinition = true
allow_untyped_globals = true
check_untyped_defs = true
ignore_missing_imports = true
pretty = true
[tool.pytest.ini_options]
addopts = "--cov=./ --cov-report=xml"
[tool.coverage.run]
source = ["pure_protobuf"]
omit = ["tests/*"]
[tool.coverage.report]
exclude_lines = [
"except ImportError",
"if TYPE_CHECKING:",
"pragma: no cover",
"raise AssertionError",
"raise NotImplementedError",
]
[tool.black]
line-length = 120
target-version = ["py39", "py310", "py311", "py312", "py313", "py314"]
[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",
]
unfixable = ["B"]
ignore = [
"ANN101",
"ANN102",
"ANN401",
"D100",
"D101", # TODO
"D102", # TODO
"D103",
"D104",
"D107",
"D202",
"D203",
"D205",
"D212", # alternative of D213
"D406",
"D407",
"D413",
"E501", # prevents black from running
"PT001",
"PT011",
"PT013",
"RET505",
"TRY003",
"UP007", # 3.10
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["D101", "D102", "D106", "D205"]
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"