-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
75 lines (66 loc) · 1.67 KB
/
Copy pathpyproject.toml
File metadata and controls
75 lines (66 loc) · 1.67 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
[build-system]
requires = ["setuptools>=65"]
build-backend = "setuptools.build_meta"
[project]
name = "gofanco-prophecy"
version = "2.1.0"
description = "Home Assistant custom integration for the Gofanco Prophecy 4x4 HDMI Matrix."
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.12"
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
log_cli = true
log_cli_level = "WARNING"
[tool.ruff]
target-version = "py312"
line-length = 88
[tool.ruff.lint]
select = [
"B", # bugbear
"C4", # comprehensions
"D", # pydocstyle
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"PT", # pytest-style
"PYI", # pyi
"RET", # return
"RUF", # ruff
"SIM", # simplify
"SLF", # self
"TID", # tidy imports
"UP", # pyupgrade
"W", # pycodestyle warnings
]
ignore = [
"D203", # incompatible with D211
"D213", # incompatible with D212
"D400",
"D415",
"SLF001", # private member access; allowed within this package
]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["D", "SLF", "PT011"]
[tool.ruff.lint.pydocstyle]
convention = "pep257"
[tool.ruff.lint.isort]
force-sort-within-sections = true
known-first-party = ["custom_components.gofanco_prophecy", "tests"]
combine-as-imports = true
split-on-trailing-comma = false
[tool.mypy]
python_version = "3.12"
strict = true
ignore_missing_imports = true
warn_unused_ignores = true
no_implicit_optional = true
implicit_reexport = true
exclude = ["tests/"]
[[tool.mypy.overrides]]
module = "custom_components.gofanco_prophecy.*"
disallow_untyped_defs = true
disallow_any_generics = true
warn_return_any = true