forked from pymodbus-dev/pymodbus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ruff.toml
52 lines (52 loc) · 1.33 KB
/
ruff.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
target-version="py38"
exclude = [
"pymodbus/transport/serial_asyncio",
"venv",
".venv",
".git",
"build",
]
ignore = [
"D202", # No blank lines allowed after function docstring (to work with black)
"D400", # docstrings ending in period
"E501", # line too long
"E731", # lambda expressions
"PT019", # Bug: https://github.com/m-burst/flake8-pytest-style/issues/202
"S101", # Use of `assert`
"S311", # PRNG for cryptography
"S104", # binding on all interfaces
]
line-length = 120
select = [
"B007", # Loop control variable {name} not used within loop body
"B014", # Exception handler with duplicate exception
"C", # complexity
"D", # docstrings
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"PGH", # pygrep-hooks
"PLC", # pylint
"PT", # flake8-pytest-style
"RUF", # ruff builtins
"S", # bandit
"SIM105", # flake8-simplify
"SIM117", #
"SIM118", #
"SIM201", #
"SIM212", #
"SIM300", #
"SIM401", #
"UP", # pyupgrade
"W", # pycodestyle warnings
# "TRY", # tryceratops
"TRY004", # Prefer TypeError exception for invalid type
]
[pydocstyle]
convention = "pep257"
[isort]
lines-after-imports = 2
known-local-folder = [
"common",
"contrib",
]