diff --git a/pyproject.toml b/pyproject.toml index 83d29405d..ebba65cd8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ exclude = [ "python-stdlib", "unix-ffi", ] -select = [ +lint.select = [ "ASYNC", # flake8-comprehensions "C4", # flake8-comprehensions "C90", # McCabe cyclomatic complexity @@ -53,7 +53,7 @@ select = [ # "TRY", # tryceratops # "UP", # pyupgrade ] -ignore = [ +lint.ignore = [ "E722", "E741", # 'l' is currently widely used "F401", @@ -78,17 +78,17 @@ ignore = [ line-length = 99 target-version = "py37" -[tool.ruff.mccabe] +[tool.ruff.lint.mccabe] max-complexity = 61 -[tool.ruff.pylint] +[tool.ruff.lint.pylint] allow-magic-value-types = ["bytes", "int", "str"] max-args = 14 max-branches = 58 max-returns = 13 max-statements = 166 -[tool.ruff.per-file-ignores] +[tool.ruff.lint.per-file-ignores] "micropython/aiorepl/aiorepl.py" = ["PGH001"] # manifest.py files are evaluated with some global names pre-defined