Skip to content

Commit 102c119

Browse files
committed
Merge setup.cfg & mypy.ini into pyproject.toml
1 parent fe18526 commit 102c119

File tree

3 files changed

+60
-57
lines changed

3 files changed

+60
-57
lines changed

mypi.ini

Lines changed: 0 additions & 23 deletions
This file was deleted.

pyproject.toml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,42 @@ requires = [
55
]
66
build-backend = "setuptools.build_meta"
77

8+
[project]
9+
name = "bring-api"
10+
dynamic = ["version", "readme"]
11+
description = "Unofficial package to access Bring! shopping lists API."
12+
authors = [
13+
{ name = "Cyrill Raccaud", email = "cyrill.raccaud+pypi@gmail.com" },
14+
{ name = "Manfred Dennerlein Rodelo", email = "manfred@dennerlein.name" }
15+
]
16+
dependencies = [
17+
"aiohttp"
18+
]
19+
requires-python = ">=3.11"
20+
21+
classifiers = [
22+
"Programming Language :: Python :: 3",
23+
"License :: OSI Approved :: MIT License",
24+
"Operating System :: OS Independent"
25+
]
26+
license = {text = "MIT License"}
27+
28+
[tool.setuptools]
29+
packages = ["bring_api", "bring_api.locales"]
30+
31+
[tool.setuptools.package-data]
32+
bring_api = ["py.typed"]
33+
"bring_api.locales" = ["*.json"]
34+
35+
[tool.setuptools.dynamic]
36+
version = {attr = "bring_api.__version__"}
37+
readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"}
38+
39+
[project.urls]
40+
Documentation = "https://miaucl.github.io/bring-api/"
41+
Source = "https://github.com/miaucl/bring-api"
42+
Issues = "https://github.com/miaucl/bring-api/issues"
43+
844
[tool.ruff.lint]
945
select = [
1046
"B002", # Python does not support the unary prefix increment
@@ -148,3 +184,27 @@ testpaths = [
148184

149185
"tests",
150186
]
187+
188+
[tool.mypy]
189+
python_version = "3.12"
190+
plugins = "pydantic.mypy"
191+
show_error_codes = true
192+
follow_imports = "silent"
193+
local_partial_types = true
194+
strict_equality = true
195+
no_implicit_optional = true
196+
warn_incomplete_stub = true
197+
warn_redundant_casts = true
198+
warn_unused_configs = true
199+
warn_unused_ignores = true
200+
enable_error_code = ["ignore-without-code", "redundant-self", "truthy-iterable"]
201+
disable_error_code = ["annotation-unchecked", "import-not-found", "import-untyped"]
202+
extra_checks = false
203+
check_untyped_defs = true
204+
disallow_incomplete_defs = true
205+
disallow_subclassing_any = true
206+
disallow_untyped_calls = true
207+
disallow_untyped_decorators = true
208+
disallow_untyped_defs = true
209+
warn_return_any = true
210+
warn_unreachable = true

setup.cfg

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)