From 07f8c8c8b62964e4ff98d9d37ae5ddf0d3372fb8 Mon Sep 17 00:00:00 2001 From: Cian Hughes Date: Fri, 25 Apr 2025 16:21:55 +0100 Subject: [PATCH] Switched from black to ruff --- pyproject.toml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index fc7377a..5271fb3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -81,12 +81,19 @@ testpaths = ["tests", "invenio_theme_iform"] live_server_scope = "module" # Code style tools configuration -[tool.black] -line-length = 88 -target-version = ['py312'] +[tool.ruff] +line-length = 100 +target-version = "py313" +exclude = ["docs"] -[tool.isort] -profile = "black" +[tool.ruff.lint.isort] +force-sort-within-sections = true +lines-after-imports = -1 + +[tool.ruff.format] +quote-style = "double" +indent-style = "space" +line-ending = "auto" [tool.pydocstyle] add_ignore = ["D401"]