-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
134 lines (116 loc) · 3.55 KB
/
pyproject.toml
File metadata and controls
134 lines (116 loc) · 3.55 KB
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
[tool.poetry]
name = "aio-ownet"
version = "0.0.5"
description = "Async OWFS (owserver) client"
authors = ["epenet", "HACF <contact@hacf.fr>"]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/hacf-fr/aio-ownet"
repository = "https://github.com/hacf-fr/aio-ownet"
documentation = "https://aio-ownet.readthedocs.io"
keywords=["owfs", "owserver"]
classifiers = [
"Operating System :: OS Independent",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Topic :: Home Automation",
]
[tool.poetry.urls]
Changelog = "https://github.com/hacf-fr/aio-ownet/releases"
[tool.poetry.requires-plugins]
poetry-plugin-export = ">=1.8"
[tool.poetry.dependencies]
python = ">=3.11,<4.0"
click = { version = ">=8.0.1", optional = true }
[tool.poetry.group.dev.dependencies]
Pygments = "==2.20.0"
ruff = "==0.15.8"
coverage = {extras = ["toml"], version = "==7.13.5"}
darglint = "==1.8.1"
mypy = "1.19.1"
pre-commit = "==4.5.1"
pre-commit-hooks = "==6.0.0"
pytest = "==9.0.2"
pytest-asyncio = "==1.3.0"
pytest-cov = "==7.1.0"
safety = "==3.7.0"
typeguard = "==4.5.1"
# docs (Python >= 3.14)
furo = {version = "==2025.12.19", python = ">=3.14"}
myst-parser = {version = "==5.0.0", python = ">=3.14"}
sphinx = {version = "==9.1.0", python = ">=3.14"}
sphinx-autobuild = {version = "==2025.8.25", python = ">=3.14"}
sphinx-click = {version = "==6.2.0", python = ">=3.14"}
[tool.poetry.extras]
cli = ["click"]
[tool.poetry.scripts]
aio-ownet = "aio_ownet.__main__:main"
[tool.coverage.paths]
source = ["src", "*/site-packages"]
tests = ["tests", "*/tests"]
[tool.coverage.run]
branch = true
source = ["aio_ownet", "tests"]
[tool.coverage.report]
show_missing = true
[tool.mypy]
strict = true
warn_unreachable = true
pretty = true
show_column_numbers = true
show_error_codes = true
show_error_context = true
[[tool.mypy.overrides]]
module = 'defusedxml.*'
ignore_missing_imports = true
[tool.ruff]
line-length = 80
target-version = "py311"
[tool.ruff.lint]
ignore = [
"A001", # Variable is shadowing a Python builtin
"A002", # Argument is shadowing a Python builtin
"C400", # Unnecessary generator
"E501", # Line too long (81 > 80)
"ERA001", # Found commented-out code
"N815", # Variable in class scope should not be mixedCase
"PLR2004", # Magic value used in comparison, consider replacing
"PLR0911", # Too many return statements
"PLR0913", # Too many arguments in function definition
"PT001", # Use `@pytest.fixture()` over `@pytest.fixture`
"PT018", # Assertion should be broken down into multiple parts
"PT022", # No teardown in fixture `cli_runner`, use `return` instead of `yield`
"PT023", # Use `@pytest.mark.asyncio()` over `@pytest.mark.asyncio`
"PLW0127", # Self-assignment of variable
]
select = [
"A", #flake8-builtins
"B", #flake8-bugbear
"C4", #flake8-comprehensions
"C90", #mccabe
"E", #pycodestyle error
"ERA", #eradicate
"F", #Pyflakes
"I", #isort
"N", #pep8-naming
"PL", #Pylint
"PT", #flake8-pytest-style
"UP", #pyupgrade
]
[tool.ruff.lint.isort]
force-single-line = true
known-local-folder = [
"renault_api",
]
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.pydocstyle]
convention = "google"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"