-
Notifications
You must be signed in to change notification settings - Fork 8
/
pyproject.toml
90 lines (81 loc) · 2.31 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
[project]
name = "elkm1-lib"
version = "2.2.10"
description = "Library for interacting with ElkM1 alarm/automation panel."
readme = "README.md"
requires-python = ">= 3.11"
authors = [{name = "Glenn Waters", email = "[email protected]"}]
classifiers = [
'Development Status :: 5 - Production/Stable',
"Intended Audience :: Developers",
"Topic :: Home Automation",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"pyserial-asyncio-fast >= 0.11",
]
[tool.uv]
dev-dependencies = [
"attrs >=24",
"colorlog >=6.8",
"mypy >=1.11",
"pylint >=3.2",
"urwid ==2.1.2",
"pytest >=8.3",
"pytest-asyncio >=0.23",
"ruff >=0.6.8",
]
[project.urls]
Homepage = "https://github.com/gwww/elkm1"
Repository = "https://github.com/gwww/elkm1.git"
Issues = "https://github.com/gwww/elkm1/issues"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.pytest.ini_options]
asyncio_mode = "auto"
[tool.pylint."MESSAGES CONTROL"]
disable = [
"format", # Handled by black
"abstract-method", # With intro of async there are always methods missing
"cyclic-import", # Doesn't test if both import on load
"duplicate-code", # Unavoidable
"inconsistent-return-statements", # Doesn't handle raise
"locally-disabled", # It spams too much
"not-context-manager",
"too-few-public-methods",
"too-many-ancestors", # Too strict
"too-many-arguments",
"too-many-branches",
"too-many-instance-attributes",
"too-many-lines",
"too-many-locals",
"too-many-positional-arguments",
"too-many-public-methods",
"too-many-return-statements",
"too-many-statements",
"too-many-boolean-expressions",
"unused-argument", # Generic callbacks and setup methods create a lot of warnings
]
enable = [
#"useless-suppression", # temporarily every now and then to clean them up
"use-symbolic-message-instead",
]
[tool.mypy]
python_version = "3.11"
ignore_missing_imports = true
[tool.pyright]
pythonVersion = "3.11"
# Handled by ruff...
reportUndefinedVariable = false
[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # Pyflakes
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"I", # isort
]