mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-12-29 19:05:05 +08:00
Autofix Ruff W (not W605) (mostly whitespace)
This commit is contained in:
parent
431bc5a297
commit
49a55b410b
@ -1841,15 +1841,15 @@ def versions_html():
|
|||||||
|
|
||||||
return f"""
|
return f"""
|
||||||
version: <a href="https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/{commit}">{tag}</a>
|
version: <a href="https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/{commit}">{tag}</a>
|
||||||
•
|
•
|
||||||
python: <span title="{sys.version}">{python_version}</span>
|
python: <span title="{sys.version}">{python_version}</span>
|
||||||
•
|
•
|
||||||
torch: {getattr(torch, '__long_version__',torch.__version__)}
|
torch: {getattr(torch, '__long_version__',torch.__version__)}
|
||||||
•
|
•
|
||||||
xformers: {xformers_version}
|
xformers: {xformers_version}
|
||||||
•
|
•
|
||||||
gradio: {gr.__version__}
|
gradio: {gr.__version__}
|
||||||
•
|
•
|
||||||
checkpoint: <a id="sd_checkpoint_hash">N/A</a>
|
checkpoint: <a id="sd_checkpoint_hash">N/A</a>
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -6,6 +6,7 @@ extend-select = [
|
|||||||
"B",
|
"B",
|
||||||
"C",
|
"C",
|
||||||
"I",
|
"I",
|
||||||
|
"W",
|
||||||
]
|
]
|
||||||
|
|
||||||
exclude = [
|
exclude = [
|
||||||
@ -20,7 +21,7 @@ ignore = [
|
|||||||
"I001", # Import block is un-sorted or un-formatted
|
"I001", # Import block is un-sorted or un-formatted
|
||||||
"C901", # Function is too complex
|
"C901", # Function is too complex
|
||||||
"C408", # Rewrite as a literal
|
"C408", # Rewrite as a literal
|
||||||
|
"W605", # invalid escape sequence, messes with some docstrings
|
||||||
]
|
]
|
||||||
|
|
||||||
[tool.ruff.per-file-ignores]
|
[tool.ruff.per-file-ignores]
|
||||||
|
Loading…
Reference in New Issue
Block a user