From 4b37331dac686911e449a3ffc76ce85f1e05291a Mon Sep 17 00:00:00 2001
From: Aleksolotl <aleksolotl@aleksis.org>
Date: Sat, 18 Nov 2023 14:22:13 +0000
Subject: [PATCH] Update pyproject.toml

---
 pyproject.toml | 27 ++++++++++++++-------------
 1 file changed, 14 insertions(+), 13 deletions(-)

diff --git a/pyproject.toml b/pyproject.toml
index 655be1db0..448e26bd3 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -63,19 +63,7 @@ alsijil = "aleksis.apps.alsijil.apps:AlsijilConfig"
 django-stubs = "^4.2"
 safety = "^2.3.5"
 
-flake8 = "^6.0.0"
-flake8-django = "^1.0.0"
-flake8-fixme = "^1.1.1"
-flake8-bandit = "^4.1.1"
-flake8-builtins = "^2.0.0"
-flake8-docstrings = "^1.5.0"
-flake8-rst-docstrings = "^0.3.0"
-
-black = ">=21.0"
-flake8-black = "^0.3.0"
-
-isort = "^5.0.0"
-flake8-isort = "^6.0.0"
+ruff = "^0.1.5"
 
 curlylint = "^0.13.0"
 
@@ -102,6 +90,19 @@ sphinx_material = "^0.0.35"
 line-length = 100
 exclude = "/migrations/"
 
+[tool.ruff]
+exclude = ["migrations", "tests"]
+
+[tool.ruff.lint]
+select = ["E", "F", "UP", "B", "SIM", "I", "DJ", "A", "S"]
+ignore = ["UP034", "UP015", "B028"]
+
+[tool.ruff.isort]
+known-first-party = ["aleksis"]
+section-order = ["future", "standard-library", "django", "third-party", "first-party", "local-folder"]
+
+[tool.ruff.isort.sections]
+django = ["django"]
 [build-system]
 requires = ["poetry-core>=1.0.0"]
 build-backend = "poetry.core.masonry.api"
-- 
GitLab