diff --git a/pyproject.toml b/pyproject.toml index 6dbd43f..eac7585 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,2 +1,30 @@ [tool.ruff] line-length = 120 + +extend-select = [ + "D419", # empty-docstring + # "E501", # line-too-long + "W291", # trailing-whitespace + "PLC0414", # useless-import-alias + "PLC2401", # non-ascii-name + "PLC3002", # unnecessary-direct-lambda-call + "E999", # syntax-error + "PLE0101", # return-in-init + "F706", # return-outside-function + "F704", # yield-outside-function + "PLE0116", # continue-in-finally + "PLE0117", # nonlocal-without-binding + "PLE0241", # duplicate-bases + "PLE0302", # unexpected-special-method-signature + "PLE0604", # invalid-all-object + "PLE0605", # invalid-all-format + "PLE0704", # misplaced-bare-raise +] + +ignore = [ + "PLR0912", # too-many-branches + "PLR0913", # too-many-arguments + "PLR0914", # too-many-locals + "PLR0915", # too-many-statements + "PLW0603", # global-statement +] diff --git a/tox.ini b/tox.ini index 2539953..ff6e744 100644 --- a/tox.ini +++ b/tox.ini @@ -1,10 +1,10 @@ [tox] -envlist = py{38,39,310,311} +envlist = py{38,39,310,311,312} [testenv] deps = ruff commands = - ruff check + ruff check --preview ruff format --check swarm --help