2023-04-14 18:49:01 +02:00
|
|
|
[tool.ruff]
|
2024-04-08 09:42:09 +02:00
|
|
|
exclude = [
|
|
|
|
"deps",
|
|
|
|
"tools/cpplint.py",
|
|
|
|
"tools/gyp",
|
|
|
|
"tools/inspector_protocol",
|
2024-06-19 21:54:08 +02:00
|
|
|
"tools/eslint/node_modules",
|
2024-09-18 17:07:37 +02:00
|
|
|
"tools/github_reporter"
|
2024-04-08 09:42:09 +02:00
|
|
|
]
|
|
|
|
line-length = 172
|
2024-08-23 23:20:32 +02:00
|
|
|
target-version = "py38"
|
2024-04-08 09:42:09 +02:00
|
|
|
|
|
|
|
[tool.ruff.lint]
|
2023-04-14 18:49:01 +02:00
|
|
|
select = [
|
|
|
|
"C90", # McCabe cyclomatic complexity
|
|
|
|
"E", # pycodestyle
|
|
|
|
"F", # Pyflakes
|
|
|
|
"ICN", # flake8-import-conventions
|
|
|
|
"INT", # flake8-gettext
|
|
|
|
"PLC", # Pylint conventions
|
|
|
|
"PLE", # Pylint errors
|
|
|
|
"PLR09", # Pylint refactoring: max-args, max-branches, max returns, max-statements
|
|
|
|
"PYI", # flake8-pyi
|
|
|
|
"RSE", # flake8-raise
|
|
|
|
"RUF", # Ruff-specific rules
|
|
|
|
"T10", # flake8-debugger
|
|
|
|
"TCH", # flake8-type-checking
|
|
|
|
"TID", # flake8-tidy-imports
|
|
|
|
"W", # pycodestyle
|
|
|
|
"YTT", # flake8-2020
|
|
|
|
]
|
|
|
|
ignore = [
|
|
|
|
"E401",
|
|
|
|
"E402",
|
|
|
|
"E7",
|
|
|
|
"PLC1901",
|
|
|
|
"RUF005",
|
|
|
|
"RUF100",
|
|
|
|
]
|
|
|
|
|
2024-04-08 09:42:09 +02:00
|
|
|
[tool.ruff.lint.mccabe]
|
2023-04-14 18:49:01 +02:00
|
|
|
max-complexity = 100
|
|
|
|
|
2024-04-08 09:42:09 +02:00
|
|
|
[tool.ruff.lint.pylint]
|
2023-04-14 18:49:01 +02:00
|
|
|
max-args = 12
|
|
|
|
max-branches = 110
|
|
|
|
max-returns = 12
|
|
|
|
max-statements = 289
|