-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
74 lines (69 loc) · 1.32 KB
/
pyproject.toml
File metadata and controls
74 lines (69 loc) · 1.32 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
[tool.black]
line-length = 88
target-version = ['py310']
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| frontend
)/
'''
[tool.ruff]
line-length = 88
lint.select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"RUF", # Ruff-specific rules
"G", # flake8-logging-format
]
lint.ignore = [
"E501", # line too long - Let black handle line length
"G004", # Logging statement uses f-string (conflicts with Home Assistant policy)
]
exclude = [
".git",
"__pycache__",
".venv",
"venv",
".env",
"frontend",
"node_modules",
]
target-version = "py310"
[tool.ruff.lint.isort]
known-first-party = ["core", "app"]
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
strict_optional = true
[[tool.mypy.overrides]]
module = [
"tests.*",
]
disallow_untyped_defs = false
disallow_incomplete_defs = false
[[tool.mypy.overrides]]
module = [
"uvicorn.*",
"apscheduler.*",
"loguru.*",
]
ignore_missing_imports = true