Commit 49a55b41 authored by Aarni Koskela's avatar Aarni Koskela

Autofix Ruff W (not W605) (mostly whitespace)

parent 431bc5a2
...@@ -1841,15 +1841,15 @@ def versions_html(): ...@@ -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 = [ ...@@ -6,6 +6,7 @@ extend-select = [
"B", "B",
"C", "C",
"I", "I",
"W",
] ]
exclude = [ exclude = [
...@@ -20,7 +21,7 @@ ignore = [ ...@@ -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]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment