• 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]
24ignore = [
25  "E401",
26  "E402",
27  "E7",
28  "PLC1901",
29  "RUF005",
30  "RUF100",
31]
32line-length = 172
33target-version = "py37"
34
35[tool.ruff.mccabe]
36max-complexity = 100
37
38[tool.ruff.per-file-ignores]
39"tools/checkimports.py" = ["W605"]
40"tools/gyp/pylib/gyp/xcodeproj_file.py" = ["PLE0101"]
41"tools/icu/shrink-icu-src.py" = ["W605"]
42"tools/mkssldef.py" = ["W605"]
43
44[tool.ruff.pylint]
45max-args = 12
46max-branches = 110
47max-returns = 12
48max-statements = 289
49