• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1[tool.ruff]
2select = [
3  "C90",    # McCabe cyclomatic complexity
4  "E",      # pycodestyle
5  "F",      # Pyflakes
6  "ICN",    # flake8-import-conventions
7  "INT",    # flake8-gettext
8  "PLC",    # Pylint conventions
9  "PLE",    # Pylint errors
10  "PLR09",  # Pylint refactoring: max-args, max-branches, max returns, max-statements
11  "PYI",    # flake8-pyi
12  "RSE",    # flake8-raise
13  "RUF",    # Ruff-specific rules
14  "T10",    # flake8-debugger
15  "TCH",    # flake8-type-checking
16  "TID",    # flake8-tidy-imports
17  "W",      # pycodestyle
18  "YTT",    # flake8-2020
19]
20exclude = [
21  "deps",
22  "tools/inspector_protocol",
23  "tools/node_modules",
24]
25ignore = [
26  "E401",
27  "E402",
28  "E7",
29  "PLC1901",
30  "RUF005",
31  "RUF100",
32]
33line-length = 172
34target-version = "py37"
35
36[tool.ruff.mccabe]
37max-complexity = 100
38
39[tool.ruff.per-file-ignores]
40"tools/checkimports.py" = ["W605"]
41"tools/gyp/pylib/gyp/xcodeproj_file.py" = ["PLE0101"]
42"tools/icu/shrink-icu-src.py" = ["W605"]
43"tools/mkssldef.py" = ["W605"]
44
45[tool.ruff.pylint]
46max-args = 12
47max-branches = 110
48max-returns = 12
49max-statements = 289
50