-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpyproject.toml
More file actions
79 lines (71 loc) · 2.02 KB
/
Copy pathpyproject.toml
File metadata and controls
79 lines (71 loc) · 2.02 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
[project]
name = "ha-city-visitor-parking"
version = "0.0.0"
requires-python = ">=3.14.2"
dependencies = ["pycityvisitorparking==0.5.26"]
[dependency-groups]
dev = [
"mypy==1.20.1",
"pre-commit==4.5.1",
"pymicro-vad==2.0.1",
"pyright==1.1.408",
"ruff==0.15.11",
"types-PyYAML==6.0.12.20260408",
"zizmor==1.24.0",
]
test = [
"pytest==9.0.0",
"pytest-asyncio==1.3.0",
"pytest-cov==7.0.0",
"pytest-homeassistant-custom-component==0.13.324", # TODO: when bumping, re-check allow-ghsas in dependency-review.yml for stale exceptions
"freezegun==1.5.2",
]
perf = [
"isal==1.8.0",
"zlib-ng==1.0.0",
]
# ----------------------------
# Mypy configuration
# ----------------------------
[tool.mypy]
python_version = "3.14"
namespace_packages = true
explicit_package_bases = true
mypy_path = "../homeassistant-core"
follow_imports = "skip"
[[tool.mypy.overrides]]
module = "pytest_homeassistant_custom_component.*"
ignore_missing_imports = true
disable_error_code = ["import-untyped"]
# ----------------------------
# Pyright configuration
# ----------------------------
[tool.pyright]
include = ["custom_components/city_visitor_parking"]
extraPaths = ["../homeassistant-core", "../pyCityVisitorParking/src"]
pythonVersion = "3.14"
typeCheckingMode = "strict"
reportMissingImports = "none"
reportPrivateImportUsage = "none"
reportUnknownVariableType = "none"
reportUnknownMemberType = "none"
reportUnknownArgumentType = "none"
reportUnknownParameterType = "none"
# ----------------------------
# Pytest configuration
# ----------------------------
[tool.pytest.ini_options]
addopts = "-ra"
asyncio_mode = "auto"
testpaths = ["tests"]
# ----------------------------
# Ruff configuration
# ----------------------------
[tool.ruff]
target-version = "py314"
line-length = 88
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP", "B", "D", "C4", "SIM", "DTZ", "RET", "TCH", "PERF", "RUF", "N", "PL", "ANN"]
ignore = ["D203", "D204", "D213", "D215", "D400", "D401", "D404", "D406", "D407", "D408", "D409", "D413"]
[tool.ruff.format]
quote-style = "double"