-
-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy pathpyproject.toml
More file actions
81 lines (69 loc) · 1.7 KB
/
pyproject.toml
File metadata and controls
81 lines (69 loc) · 1.7 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
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools>=77.0"]
[project]
name = "pyTibber"
license = "GPL-3.0-or-later"
description = "A python3 library to communicate with Tibber"
readme = "README.md"
authors = [{ name = "Daniel Hjelseth Hoyer", email = "mail@dahoiv.net" }]
requires-python = ">=3.11"
classifiers = [
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Topic :: Home Automation",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"aiohttp>=3.0.6",
"gql>=4.0.0",
"websockets>=14.0.0",
]
dynamic = ["version"]
[project.urls]
"Source code" = "https://github.com/Danielhiversen/pyTibber"
[tool.setuptools.dynamic]
version = { attr = "tibber.const.__version__"}
[tool.setuptools.packages.find]
include = ["tibber*"]
[tool.mypy]
python_version = "3.12"
disallow_incomplete_defs = true
implicit_optional = true
strict_optional = false
[tool.pytest.ini_options]
asyncio_default_fixture_loop_scope = "function"
asyncio_mode = "auto"
[tool.coverage]
run.branch = true
paths.source = [
"tibber",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"@overload",
"def __repr__",
"if TYPE_CHECKING",
"raise NotImplementedError",
"raise RuntimeError",
'if __name__ == "__main__":',
]
[tool.ruff]
line-length = 120
target-version = "py311"
[tool.ruff.lint]
ignore = ["D", "EM", "FBT", "PLR0913", "C901", "S101", "S105", "TRY"]
select = ["ALL"]
[tool.ruff.lint.isort]
known-first-party = ["tibber", "test"]
[tool.ruff.lint.per-file-ignores]
"setup.py" = ["D100"]
"test/**/*" = [
"ANN201",
"PLR2004",
"S101",
"S106",
]