-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathpyproject.toml
43 lines (39 loc) · 1.05 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
[tool.mypy]
strict = true
allow_subclassing_any = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_calls = false
warn_return_any = true
warn_unused_configs = true
warn_unused_ignores = true
namespace_packages = true
explicit_package_bases = true
exclude = [
'custom_components/foxess_modbus/vendor',
]
[[tool.mypy.overrides]]
module = 'pymodbus.*'
ignore_missing_imports = true
[tool.ruff]
lint.select = ["E", "F", "I", "N", "ANN", "S", "B", "A", "COM", "C4", "DTZ", "ISC", "ICN", "G",
"PIE", "PYI", "RET", "SLF", "SIM", "ARG", "PTH", "PLE", "PLC", "PLW", "FLY", "RUF"]
lint.ignore = [
"ANN401", # any-type
"S101", # assert
"SIM108", # if-else-block-instead-of-if-exp
"COM812", # misisng-trailing-comma
"PLW2901", # redefiend-loop-name
"RET504", # unnecessary-assign
]
lint.unfixable = [
"F841", # unused-variable
]
line-length = 120
extend-exclude = [
'custom_components/foxess_modbus/vendor',
]
[tool.ruff.lint.isort]
force-single-line = true
[tool.pytest.ini_options]
asyncio_mode = "auto"