-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
144 lines (129 loc) · 3.19 KB
/
pyproject.toml
File metadata and controls
144 lines (129 loc) · 3.19 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
[project]
name = "remote_logger"
readme = "README.md"
description = "Log Home Assistant events to a Syslog or OTEL collector."
dynamic = ["version"]
requires-python = ">=3.14.2"
dependencies = [
"homeassistant>=2026.3.2",
]
[dependency-groups]
dev=[
"homeassistant-stubs >= 2026.3.2",
"pytest",
"pytest-cov",
"pytest-homeassistant-custom-component>=0.13.316",
"pytest-unordered",
"pytest-mock",
"pytest-xdist",
"pytest-icdiff",
"pre-commit",
"ruff",
"mypy",
"genbadge[all]",
"uv==0.10.6" # hass compatibility
]
docs=[
"mkdocs-minify-plugin",
"pymdown-extensions",
"mkdocs-material[imaging]>=9.7.1",
"mkdocs-autorefs",
"mkdocs-coverage",
"mkdocs-pagetree-plugin",
"mkdocs<2.0.0",
"pngquant",
"mkdocstrings",
"mkdocstrings-python",
"mkdocs-git-revision-date-localized-plugin",
"mkdocs-meta-descriptions-plugin",
"mkdocs-minify-html-plugin",
"mkdocs-htmlproofer-plugin",
"mkdocs-minify-plugin",
"mkdocs-material-extensions"
]
[tool.bandit]
exclude_dirs = ["tests"]
skips = ["B105"]
[tool.poetry]
package-mode = false
packages = [{ include = "custom_components.remote_logger" }]
[tool.setuptools.packages.find]
where = [
"custom_components",
] # list of folders that contain the packages (["."] by default)
include = [
"remote_logger*",
] # package names should match these glob patterns (["*"] by default)
exclude = [
"remote_logger.tests*",
] # exclude packages matching these glob patterns (empty by default)
namespaces = true # to disable scanning PEP 420 namespaces (true by default)
[tool.poetry.group.dev.dependencies]
homeassistant-stubs = "2026.2.1"
[tool.ruff]
line-length = 128
indent-width = 4
target-version = "py312"
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"htmlcov",
".mypy_cache",
".pytest_cache",
".github",
"node_modules",
"site-packages",
"venv",
]
[tool.ruff.lint]
preview = false
select = ["E", "C","R", "F", "B", "W", "I", "C90", "N", "D", "UP", "YTT","UP",
"RUF","PGH","PT","T20","DTZ","TD","PTH","ARG","INT","TCH","TID","SIM","PERF","ASYNC","ANN","S","A","COM","C4"]
ignore = [
"W191","E111","E114","E117","D206","D300","Q000","Q001","COM812","COM819","ISC001","ISC002", # std formatter conflicts
"D203","D213", # other formatter clashes
"TD002","TD003","TD005","SIM102","SIM117","ANN002", "ANN003","SIM108",
"D103","D100","D101","D102","D104","D107","D415","D400","D415","ANN401",
"S101","C901","FURB113","PGH003",
"S602","S607"] # subprocess usage
unfixable = ["B"]
[tool.ruff.format]
preview = true
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = [
"tests",
]
norecursedirs = [
".git",
"templates",
]
addopts = [
"--timeout=30",
"--cov-report=xml:cov.xml",
"--cov-report=html",
"--cov-report=term-missing",
"--cov=custom_components/remote_logger",
"--cov-fail-under=90"
]