mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-05 23:07:42 -05:00
Update pre-commit hooks configuration to use ruff instead of black
This commit is contained in:
committed by
Thaddeus Crews
parent
aaa4560729
commit
d9f8ef68df
@@ -11,6 +11,19 @@ namespace_packages = true
|
||||
explicit_package_bases = true
|
||||
exclude = ["thirdparty/"]
|
||||
|
||||
[tool.black]
|
||||
[tool.ruff]
|
||||
extend-exclude = ["thirdparty"]
|
||||
extend-include = ["SConstruct", "SCsub"]
|
||||
line-length = 120
|
||||
extend-exclude = ".*thirdparty/.*"
|
||||
target-version = "py37"
|
||||
|
||||
[tool.ruff.lint]
|
||||
extend-select = [
|
||||
"I", # isort
|
||||
]
|
||||
|
||||
[tool.ruff.lint.per-file-ignores]
|
||||
"{SConstruct,SCsub}" = [
|
||||
"E402", # Module level import not at top of file
|
||||
"F821", # Undefined name
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user