forked from NickWaterton/Roomba980-Python
-
Notifications
You must be signed in to change notification settings - Fork 23
/
pyproject.toml
83 lines (73 loc) · 1.97 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
[tool.poetry]
name = "roombapy"
version = "1.8.2"
description = "Python program and library to control Wi-Fi enabled iRobot Roombas"
authors = ["Philipp Schmitt <[email protected]>"]
readme = "README.md"
license = "MIT"
repository = "https://github.com/pschmitt/roombapy"
classifiers = [
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Networking"
]
include=["roombapy/py.typed"]
packages = [
{ include = "roombapy" },
]
[tool.poetry.scripts]
roombapy = "roombapy.cli:cli"
[tool.poetry.dependencies]
python = ">=3.10,<4.0"
orjson = ">=3.9.13"
paho-mqtt = "~1.6.1"
mashumaro = {version = "^3.12"}
click = { version = "^8.1", optional = true }
tabulate = { version = "^0.9", optional = true }
# python 3.13 compatibility
typing_extensions = ">=4.12.0"
[tool.poetry.extras]
cli = ["click", "tabulate"]
[tool.poetry.group.dev.dependencies]
pytest = "^8.0"
pytest-asyncio = ">=0.23,<0.26"
ruff = ">=0.5.0,<0.9"
pre-commit = ">=3.6.2,<5.0.0"
pre-commit-hooks = ">=4.5,<6.0"
codespell = "^2.2.6"
mypy = "^1.8"
types-paho-mqtt = "~1.6.0"
types-tabulate = "~0.9.0"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
line-length = 79
[tool.ruff.lint]
ignore = [
"ANN401", # Opinioated warning on disallowing dynamically typed expressions
"B007",
"C901",
"D203", # Conflicts with other rules
"D213", # Conflicts with other rules
"DTZ005",
"FBT002",
"COM812", # Conflicts with other rules
"ISC001", # Conflicts with other rules
"PLR2004", # Just annoying, not really useful
"PLR0912",
]
select = ["ALL"]
[tool.ruff.format]
docstring-code-format = true
[tool.mypy]
follow_imports = "normal"
strict_optional = true
strict = true
packages = ["roombapy", "tests"]
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
warn_untyped_fields = true