Skip to content

Commit

Permalink
Enable ruff rules, add 3.12 to tox
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberw committed Jan 19, 2024
1 parent da68e94 commit 54e0001
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
28 changes: 28 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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
]
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 54e0001

Please sign in to comment.