Switched from black to ruff

This commit is contained in:
2025-04-25 16:21:55 +01:00
parent c3867ca695
commit 07f8c8c8b6

View File

@@ -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"]