diff options
author | 2024-02-02 16:24:26 +0000 | |
---|---|---|
committer | 2024-02-02 16:24:26 +0000 | |
commit | 1b09322f8be46530e01ffb6f5a80c14e786c5411 (patch) | |
tree | b7aee0921899d9a786f5c9f20184f7658fa2ed9a | |
parent | Bump ruff from 0.1.15 to 0.2.0 (diff) |
Move ruff config to new sections
-rw-r--r-- | pyproject.toml | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/pyproject.toml b/pyproject.toml index b1b67ffb..6aef5a7a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -55,6 +55,12 @@ known_first_party = ["bot"] [tool.ruff] target-version = "py311" extend-exclude = [".cache"] +line-length = 120 +unsafe-fixes = true +preview = true + +[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", @@ -67,12 +73,8 @@ 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"] -unsafe-fixes = true -preview = true -[tool.ruff.isort] +[tool.ruff.lint.isort] known-first-party = ["bot"] order-by-type = false case-sensitive = true |