forked from nathanmarlor/foxess_modbus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
42 lines (37 loc) · 1010 Bytes
/
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
[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
[[tool.mypy.overrides]]
module = 'pymodbus.*'
ignore_missing_imports = true
[tool.ruff]
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"]
ignore = [
"ANN101", # missing-type-self
"ANN401", # any-type
"S101", # assert
"SIM108", # if-else-block-instead-of-if-exp
"COM812", # misisng-trailing-comma
"PLW2901", # redefiend-loop-name
"RET504", # unnecessary-assign
]
unfixable = [
"F841", # unused-variable
]
line-length = 120
[tool.ruff.isort]
force-single-line = true
[tool.black]
line-length = 120
exclude = "scripts"
[tool.pytest.ini_options]
asyncio_mode = "auto"