diff options
author | 2024-02-19 21:40:25 +0000 | |
---|---|---|
committer | 2024-03-04 12:35:42 +0000 | |
commit | 94f7d60d0cb6ac4cdd8e23bcc494996fc01dd015 (patch) | |
tree | 3b94b885d8ba66c4aa21515bbe4eb34e4d93cefe | |
parent | ruff lint fix: Breaking changes to make bool args kwarg-only (diff) |
New ruff linting config
-rw-r--r-- | pyproject.toml | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/pyproject.toml b/pyproject.toml index 9f9b9f19..732fde54 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -79,23 +79,32 @@ source = ["tests"] [tool.ruff] target-version = "py310" extend-exclude = [".cache"] +output-format = "concise" 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"] +select = ["ALL"] ignore = [ "ANN002", "ANN003", "ANN101", "ANN102", "ANN204", "ANN206", "ANN401", "B904", - "C401", "C408", + "C401", "C408", "C901", + "COM812", + "CPY001", "D100", "D104", "D105", "D107", "D203", "D212", "D214", "D215", "D301", "D400", "D401", "D402", "D404", "D405", "D406", "D407", "D408", "D409", "D410", "D411", "D412", "D413", "D414", "D416", "D417", "E731", + "EM101", "EM102", + "G004", + "PLE0604", + "PLR", + "PT009", "RET504", "RUF005", "S311", "S404", "SIM102", "SIM108", + "TRY003", ] [tool.ruff.lint.isort] @@ -105,4 +114,5 @@ combine-as-imports = true known-first-party = ["dev", "pydis_core", "docs"] [tool.ruff.lint.per-file-ignores] -"tests/*" = ["ANN", "D"] +"docs/*" = ["TRY002"] +"tests/*" = ["ANN", "D", "S101", "SLF001"] |