-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpyproject.toml
60 lines (56 loc) · 1.63 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
[project]
name = "magiqtouch"
version = "0.1.0"
description = ""
authors = [
{ name = "Andrew Leech", email = "[email protected]" }
]
dependencies = [
"mandate==2.0.1",
#"aiohttp==3.7.2",
#"requests==2.28.1",
"homeassistant==2024.2.5",
]
#[project.dev-dependencies]
#homeassistant = "^2022.8.6"
[tool.setuptools.packages.find]
where = [
"custom_components"
]
[build-system]
requires = ["setuptools>=40.6.0"]
build-backend = "setuptools.build_meta"
[tool.mypy]
disable_error_code = "import-untyped"
follow_imports_for_stubs = false
check_untyped_defs = true
[[tool.mypy.overrides]]
# Allow initialising structures with None
# without marking them as optional
module = [
'magiqtouch.structures',
]
disable_error_code = "assignment"
[tool.ruff]
# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
select = ["E", "F"]
ignore = [
"E402", # Module level import not at top of file
"E722", # don't use bare except
"E731", # do not assign a `lambda` expression"
]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["A", "B", "C", "D", "E", "F", "G", "I", "N", "Q", "S", "T", "W", "ANN", "ARG", "BLE", "COM", "DJ", "DTZ", "EM", "ERA", "EXE", "FBT", "ICN", "INP", "ISC", "NPY", "PD", "PGH", "PIE", "PL", "PT", "PTH", "PYI", "RET", "RSE", "RUF", "SIM", "SLF", "TCH", "TID", "TRY", "UP", "YTT"]
unfixable = []
# Exclude a variety of commonly ignored directories.
exclude = [
".ruff_cache",
"custom_components/magiqtouch/vendor",
"venv",
".venv",
"__pypackages__",
]
# Same as our configuration of Black.
line-length = 99
[tool.ruff.format]
exclude = ["custom_components/magiqtouch/vendor"]