-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathpyproject.toml
66 lines (58 loc) · 1.59 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
[project]
name = "hubitat"
version = "0.9.41"
description = "A Hubitat integration for Home Assistant"
authors = [{ name = "Jason Cheatham", email = "[email protected]" }]
dependencies = [
"pyright>=1.1.359",
]
requires-python = ">=3.12,<3.13"
license = { text = "MIT" }
[project.urls]
homepage = "https://github.com/jason0x43/hacs-hubitat"
[project.optional-dependencies]
#[tool.uv.scripts]
#test-lint = "pyright custom_components/hubitat"
#test-test = "pytest tests"
#test = { chain = ["test-lint", "test-test"] }
#pub = "python scripts/publish.py"
[tool.pytest.ini_options]
testpaths = ["tests"]
filterwarnings = [
"ignore::DeprecationWarning:pkg_resources",
"ignore:Inheritance class HomeAssistantApplication:DeprecationWarning",
]
[tool.uv]
dev-dependencies = [
"ruff",
"pre-commit<3.0.0,>=2.4.0",
"homeassistant==2024.11.0",
"pytest-asyncio>=0.16.0",
"setuptools>=62.2.0",
"tomlkit>=0.12.3",
]
[tool.pyright]
include = ["custom_components/hubitat"]
exclude = ["**/__pycache__"]
extraPaths = ["__pypackages__/3.9/lib"]
venvPath = "."
venv = ".venv"
stubPath = "."
reportDuplicateImport = true
reportMissingImports = true
reportOptionalCall = true
reportOptionalMemberAccess = true
reportOptionalSubscript = true
reportUnusedClass = true
reportUnusedFunction = true
reportUnusedImport = true
reportUnusedVariable = true
reportExplicitAny = false
[tool.ruff.lint]
select = ["E", "W", "F", "PYI", "I"]
[tool.ruff.lint.isort]
combine-as-imports = true
order-by-type = true
force-wrap-aliases = true
known-first-party = ["homeassistant", "tests"]
forced-separate = ["tests"]