mirror of
https://github.com/Cian-H/invenio-theme-iform.git
synced 2025-12-22 20:51:58 +00:00
Switched from black to ruff
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user