11cb0ef41Sopenharmony_ci[tool.ruff]
21cb0ef41Sopenharmony_ciselect = [
31cb0ef41Sopenharmony_ci  "C90",    # McCabe cyclomatic complexity
41cb0ef41Sopenharmony_ci  "E",      # pycodestyle
51cb0ef41Sopenharmony_ci  "F",      # Pyflakes
61cb0ef41Sopenharmony_ci  "ICN",    # flake8-import-conventions
71cb0ef41Sopenharmony_ci  "INT",    # flake8-gettext
81cb0ef41Sopenharmony_ci  "PLC",    # Pylint conventions
91cb0ef41Sopenharmony_ci  "PLE",    # Pylint errors
101cb0ef41Sopenharmony_ci  "PLR09",  # Pylint refactoring: max-args, max-branches, max returns, max-statements
111cb0ef41Sopenharmony_ci  "PYI",    # flake8-pyi
121cb0ef41Sopenharmony_ci  "RSE",    # flake8-raise
131cb0ef41Sopenharmony_ci  "RUF",    # Ruff-specific rules
141cb0ef41Sopenharmony_ci  "T10",    # flake8-debugger
151cb0ef41Sopenharmony_ci  "TCH",    # flake8-type-checking
161cb0ef41Sopenharmony_ci  "TID",    # flake8-tidy-imports
171cb0ef41Sopenharmony_ci  "W",      # pycodestyle
181cb0ef41Sopenharmony_ci  "YTT",    # flake8-2020
191cb0ef41Sopenharmony_ci]
201cb0ef41Sopenharmony_ciexclude = [
211cb0ef41Sopenharmony_ci  "deps",
221cb0ef41Sopenharmony_ci  "tools/inspector_protocol",
231cb0ef41Sopenharmony_ci  "tools/node_modules",
241cb0ef41Sopenharmony_ci]
251cb0ef41Sopenharmony_ciignore = [
261cb0ef41Sopenharmony_ci  "E401",
271cb0ef41Sopenharmony_ci  "E402",
281cb0ef41Sopenharmony_ci  "E7",
291cb0ef41Sopenharmony_ci  "PLC1901",
301cb0ef41Sopenharmony_ci  "RUF005",
311cb0ef41Sopenharmony_ci  "RUF100",
321cb0ef41Sopenharmony_ci]
331cb0ef41Sopenharmony_ciline-length = 172
341cb0ef41Sopenharmony_citarget-version = "py37"
351cb0ef41Sopenharmony_ci
361cb0ef41Sopenharmony_ci[tool.ruff.mccabe]
371cb0ef41Sopenharmony_cimax-complexity = 100
381cb0ef41Sopenharmony_ci
391cb0ef41Sopenharmony_ci[tool.ruff.per-file-ignores]
401cb0ef41Sopenharmony_ci"tools/checkimports.py" = ["W605"]
411cb0ef41Sopenharmony_ci"tools/gyp/pylib/gyp/xcodeproj_file.py" = ["PLE0101"]
421cb0ef41Sopenharmony_ci"tools/icu/shrink-icu-src.py" = ["W605"]
431cb0ef41Sopenharmony_ci"tools/mkssldef.py" = ["W605"]
441cb0ef41Sopenharmony_ci
451cb0ef41Sopenharmony_ci[tool.ruff.pylint]
461cb0ef41Sopenharmony_cimax-args = 12
471cb0ef41Sopenharmony_cimax-branches = 110
481cb0ef41Sopenharmony_cimax-returns = 12
491cb0ef41Sopenharmony_cimax-statements = 289
50