-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
121 lines (107 loc) · 3.31 KB
/
Copy pathpyproject.toml
File metadata and controls
121 lines (107 loc) · 3.31 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "weatherlink-live-local"
version = "0.4.0"
description = "Read current weather data from Davis WeatherLink Live units + connected sensors"
authors = [{ name = "Lukas Berbuer", email = "lukas.berbuer@gmail.com" }]
readme = "README.md"
license = { text = "MIT License" }
requires-python = ">=3.7"
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: OS Independent",
]
keywords = [
"davis",
"weatherlink",
"local",
"api",
"weather",
"iot",
"smarthome",
]
dependencies = ["zeroconf"]
[project.optional-dependencies]
docs = [
"sphinx>=5",
"sphinx-autodoc-typehints",
"furo",
"myst-parser", # include markdown files
]
tests = [
"coverage>=5", # pyproject.toml support
"httpretty",
"pytest>=6", # pyproject.toml support
]
tools = [
"hatch",
"mypy>=0.9", # pyproject.toml support
"ruff>=0.5",
]
dev = [
"weatherlink-live-local[docs,tests,tools]", # recursive dependency since pip 21.2
]
[project.urls]
Changelog = "https://github.com/lukasberbuer/weatherlink-live-local-python/blob/master/CHANGELOG.md"
Issues = "https://github.com/lukasberbuer/weatherlink-live-local-python/issues"
Repository = "https://github.com/lukasberbuer/weatherlink-live-local-python"
[tool.hatch.envs.hatch-test]
features = ["tests"]
[[tool.hatch.envs.hatch-test.matrix]]
python = ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
[tool.hatch.envs.typing]
dependencies = ["mypy"]
skip-install = true
[tool.hatch.envs.typing.scripts]
check = "mypy ."
[tool.hatch.envs.docs]
features = ["docs"]
[tool.hatch.envs.docs.scripts]
linkcheck = "sphinx-build -b linkcheck docs/ docs/_build"
dummy = "sphinx-build -b dummy docs/ docs/_build"
html = "sphinx-build -b html docs/ docs/_build"
[tool.ruff]
include = ["pyproject.toml", "src/**/*.py", "tests/**/*.py"]
line-length = 100
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN", # flake8-annotations
"COM812", # Trailing comma missing, conflicts with ruff format
"D", # pydocstyle
"E501", # Line too long
"EM102", # Exception must not use an f-string literal, assign to variable first
"ISC001", # Conflicts with ruff format
"PLR2004", # Magic value used in comparison
"S101", # Use of `assert` detected
"TRY003", # Avoid specifying long messages outside the exception class
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"INP001", # File is part of an implicit namespace package. Add an __init__.py.
"PLR2004", # Magic value used in comparison
]
[tool.mypy]
ignore_missing_imports = true
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -q" # test summary for (a)ll except passed
testpaths = ["tests"]
log_cli = true
log_cli_level = "WARNING"
[tool.coverage.run]
branch = true
source = ["weatherlink_live_local"]
[tool.coverage.paths]
source = ["src", "*/site-packages"]