aboutsummaryrefslogtreecommitdiffstats
path: root/pyproject.toml
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2023-05-10 13:37:39 +0200
committerGravatar Johannes Christ <[email protected]>2023-05-10 13:37:39 +0200
commit5eada1e9801c158b9d90b673ee5fd504b4806eeb (patch)
tree91c736bd1353ec40de85e7758dc59ffcaf024856 /pyproject.toml
parentMerge pull request #968 from python-discord/ruff (diff)
Add Django-specific rules for ruff
Diffstat (limited to '')
-rw-r--r--pyproject.toml3
1 files changed, 2 insertions, 1 deletions
diff --git a/pyproject.toml b/pyproject.toml
index 9019efb0..fb82aa2e 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -51,13 +51,14 @@ ignore = [
"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",
+ "DJ001", "DJ008",
"RET504",
"RUF005",
"S311",
"SIM102", "SIM108",
]
line-length = 120
-select = ["ANN", "B", "C4", "D", "DTZ", "E", "F", "ISC", "INT", "N", "PGH", "PIE", "RET", "RSE", "RUF", "S", "SIM", "T20", "TID", "UP", "W"]
+select = ["ANN", "B", "C4", "D", "DJ", "DTZ", "E", "F", "ISC", "INT", "N", "PGH", "PIE", "RET", "RSE", "RUF", "S", "SIM", "T20", "TID", "UP", "W"]
[tool.ruff.per-file-ignores]
"pydis_site/apps/**/migrations/*.py" = ["ALL"]