core: added ruff check/format configs

This commit is contained in:
RhodeCode Admin 2025-01-13 17:46:24 +01:00
parent bf83236cf8
commit 7130effb58
3 changed files with 14 additions and 2 deletions

View file

@ -71,6 +71,10 @@ line-length = 120
# Assume Python 3.11
target-version = "py311"
exclude = [
"rhodecode/config/rcextensions/examples",
"rhodecode/lib/_vendor/authomatic/six.py"
]
[tool.ruff.lint]
select = [
@ -84,7 +88,15 @@ select = [
]
ignore = [
"I001", # unsorted-imports
"E402", # module-import-not-at-top-of-file
"E501", # line too long, handled by black
"F403", # undefined-local-with-import-star
"F405", # undefined-local-with-import-star-usage
"F401", # unused-import
"F841", # unused-variable
]
[tool.ruff.lint.isort]