mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-19 17:47:25 -05:00
update ruff config with more stuff
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
[tool.ruff]
|
||||
|
||||
target-version = "py310"
|
||||
target-version = "py39"
|
||||
|
||||
extend-select = [
|
||||
"B",
|
||||
"C",
|
||||
"I",
|
||||
]
|
||||
|
||||
exclude = [
|
||||
"extensions",
|
||||
@@ -10,6 +16,12 @@ exclude = [
|
||||
ignore = [
|
||||
"E501", # Line too long
|
||||
"E731", # Do not assign a `lambda` expression, use a `def`
|
||||
|
||||
"I001", # Import block is un-sorted or un-formatted
|
||||
"C901", # Function is too complex
|
||||
"C408", # Rewrite as a literal
|
||||
"B007", # Loop control variable not used within loop body
|
||||
|
||||
]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user