diff --git a/pyproject.toml b/pyproject.toml index cc92b32..e202adb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,25 +1,28 @@ [tool.ruff] +target-version = "py37" + +line-length = 616 select = [ - "C4", # flake8-comprehensions - "C90", # mccabe - "E", # pycodestyle - "F", # Pyflakes - "I", # isort - "ICN", # flake8-import-conventions - "PGH", # pygrep-hooks - "PIE", # flake8-pie - "PLC", # Pylint conventions - "PLE", # Pylint errors - "PLR091", # Pylint refactor just for max-args, max-branches, etc. - "PYI", # flake8-pyi - "RSE", # flake8-raise - "RUF", # Ruff-specific rules - "T10", # flake8-debugger - "TCH", # flake8-type-checking - "TID", # flake8-tidy-imports - "UP", # pyupgrade - "W", # pycodestyle - "YTT", # flake8-2020 + "C4", # flake8-comprehensions + "C90", # mccabe + "E", # pycodestyle + "F", # Pyflakes + "I", # isort + "ICN", # flake8-import-conventions + "PGH", # pygrep-hooks + "PIE", # flake8-pie + "PLC", # Pylint conventions + "PLE", # Pylint errors + "PLR091", # Pylint refactor just for max-args, max-branches, etc. + "PYI", # flake8-pyi + "RSE", # flake8-raise + "RUF", # Ruff-specific rules + "T10", # flake8-debugger + "TCH", # flake8-type-checking + "TID", # flake8-tidy-imports + "UP", # pyupgrade + "W", # pycodestyle + "YTT", # flake8-2020 ] ignore = [ "E402", @@ -31,19 +34,11 @@ ignore = [ "PLC1901", "RUF001", ] -line-length = 616 -target-version = "py37" - -[tool.ruff.mccabe] -max-complexity = 21 - -[tool.ruff.pylint] -max-args = 8 -max-branches = 18 -max-statements = 73 - -[tool.ruff.per-file-ignores] -"test/*" = ["S101"] +pylint.max-args = 8 +pylint.max-branches = 18 +pylint.max-statements = 73 +mccabe.max-complexity = 21 +per-file-ignores."test/*" = [ "S101" ] [tool.codespell] ignore-words-list = 'didnt'