diff options
author | 2024-02-02 16:21:44 +0000 | |
---|---|---|
committer | 2024-02-02 16:21:44 +0000 | |
commit | 35d84d3e0dace918ffbd550ada40f82793224974 (patch) | |
tree | 5ea8d0c68dbb1aaabafb8a1ecde7d54e5376f024 | |
parent | Bump ruff from 0.1.15 to 0.2.0 (diff) |
Move ruff config to new sections
-rw-r--r-- | pyproject.toml | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pyproject.toml b/pyproject.toml index fa91b1ac6..8c0351d1d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -69,6 +69,10 @@ source = ["tests"] [tool.ruff] target-version = "py311" extend-exclude = [".cache"] +line-length = 120 + +[tool.ruff.lint] +select = ["ANN", "B", "C4", "D", "DTZ", "E", "F", "I", "ISC", "INT", "N", "PGH", "PIE", "Q", "RET", "RSE", "RUF", "S", "SIM", "T20", "TID", "UP", "W"] ignore = [ "ANN002", "ANN003", "ANN101", "ANN102", "ANN204", "ANN206", "ANN401", "B904", @@ -81,15 +85,13 @@ ignore = [ "S311", "SIM102", "SIM108", ] -line-length = 120 -select = ["ANN", "B", "C4", "D", "DTZ", "E", "F", "I", "ISC", "INT", "N", "PGH", "PIE", "Q", "RET", "RSE", "RUF", "S", "SIM", "T20", "TID", "UP", "W"] -[tool.ruff.isort] +[tool.ruff.lint.isort] order-by-type = false case-sensitive = true combine-as-imports = true -[tool.ruff.per-file-ignores] +[tool.ruff.lint.per-file-ignores] "tests/*" = ["ANN", "D"] [tool.pytest.ini_options] |