Autofix Ruff W (not W605) (mostly whitespace)

This commit is contained in:
Aarni Koskela 2023-05-11 18:28:15 +03:00
parent 431bc5a297
commit 49a55b410b
39 changed files with 167 additions and 166 deletions

View File

@ -1841,15 +1841,15 @@ def versions_html():
return f"""
version: <a href="https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/{commit}">{tag}</a>
  
 
python: <span title="{sys.version}">{python_version}</span>
  
 
torch: {getattr(torch, '__long_version__',torch.__version__)}
  
 
xformers: {xformers_version}
  
 
gradio: {gr.__version__}
  
 
checkpoint: <a id="sd_checkpoint_hash">N/A</a>
"""

View File

@ -6,6 +6,7 @@ extend-select = [
"B",
"C",
"I",
"W",
]
exclude = [
@ -20,7 +21,7 @@ ignore = [
"I001", # Import block is un-sorted or un-formatted
"C901", # Function is too complex
"C408", # Rewrite as a literal
"W605", # invalid escape sequence, messes with some docstrings
]
[tool.ruff.per-file-ignores]