-
Notifications
You must be signed in to change notification settings - Fork 17
/
pyproject.toml
100 lines (85 loc) · 2.16 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
[tool.poetry]
name = "hue2mqtt"
version = "0.4.2"
description = "Python Hue to MQTT Bridge"
authors = ["Dan Trickey <[email protected]>"]
license = "MIT"
readme = "README.md"
repository = "https://github.com/trickeydan/hue2mqtt-python"
homepage = "https://github.com/trickeydan/hue2mqtt-python"
documentation = "https://github.com/trickeydan/hue2mqtt-python"
classifiers = [
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
[tool.poetry.dependencies]
python = "^3.8"
gmqtt = "^0.6.10"
aiohue = "^2.5.1"
pydantic = "^1.9.2"
click = "^8.1.3"
aiohttp = "^3.8.1"
tomli = { version = "^2.0.1", python = "<=3.11" }
[tool.poetry.dev-dependencies]
ruff = "*"
mypy = "*"
pytest = "*"
pytest-cov = "*"
pytest-asyncio = "^0.15.1"
[tool.poetry.scripts]
hue2mqtt = 'hue2mqtt.app:app'
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
[tool.mypy]
mypy_path = "stubs"
warn_unused_ignores = true
warn_return_any = true
strict_optional = true
no_implicit_optional = true
disallow_subclassing_any = true
disallow_any_generics = true
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_decorators = true
check_untyped_defs = true
[[tool.mypy.overrides]]
module = ["gmqtt.*"]
disallow_any_explicit = false
[[tool.mypy.overrides]]
module = ["aiohue.*"]
ignore_missing_imports = true
[tool.ruff]
select = [
"A",
"ANN",
"B",
"BLE",
"C4",
"COM",
"DJ",
"DTZ",
"E",
"F",
"FBT",
"I",
"N",
"S",
"T10",
"UP",
"W",
]
ignore = [
"ANN101", # Missing type annotation for `self` in method
"ANN102", # Missing type annotation for `cls` in classmethod
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed
"COM812", #
"B009", # Do not call `getattr` with a constant attribute value.
"B027", # an empty method in an abstract base class, but has no abstract decorator
"FBT001", # Boolean positional arg in function definition
"N805", # First argument of a method should be named `self`
"S101", # S101 Use of `assert` detected
]
target-version = "py38"
line-length = 90