Spaces:
Runtime error
Runtime error
File size: 1,786 Bytes
c19ca42 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
[tool.ruff]
target-version = "py39"
exclude = [
"/usr/lib",
"extensions",
"extensions-builtin",
"modules/dml",
"modules/k-diffusion",
"repositories/ldm",
"repositories/taming",
"repositories/blip",
"repositories/codeformer",
"modules/control/proc/normalbae/",
"modules/control/proc/leres/",
"modules/control/units/*_model.py",
"modules/control/units/*_pipe.py",
"modules/xadapter/*.py",
"modules/tcd/*.py",
]
[tool.ruff.lint]
select = [
"F",
"E",
"W",
"C",
"B",
"I",
"YTT",
"ASYNC",
"RUF",
"AIR",
"NPY",
"C4",
"T10",
"EXE",
"ISC",
"ICN",
"RSE",
"TCH",
"TID",
"INT",
"PLE",
# "FIX",
# "A",
# "T20",
# "S",
# "PL",
]
ignore = [
"A003", # Class attirbute shadowing builtin
"C901", # Function is too complex
"E501", # Line too long
"E731", # Do not assign a `lambda` expression, use a `def`
"I001", # Import block is un-sorted or un-formatted
"W605", # Invalid escape sequence, messes with some docstrings
"B006", # Do not use mutable data structures for argument defaults
"B028", # No explicit stacklevel
"B905", # Without explicit scrict
"C408", # Rewrite as a literal
"E402", # Module level import not at top of file
"E721", # Do not compare types, use `isinstance()`
"E741", # Do not use variables named `l`, `O`, or `I`
"EXE001", # Shebang present
"F401", # Imported but unused
"ISC003", # Implicit string concatenation
"RUF005", # Consider concatenation
"RUF012", # Mutable class attributes
"RUF013", # Implict optional
"RUF015", # Prefer `next`
"TID252", # Relative imports from parent modules
]
[tool.ruff.lint.flake8-bugbear]
extend-immutable-calls = ["fastapi.Depends", "fastapi.security.HTTPBasic"]
[tool.pytest.ini_options]
base_url = "http://127.0.0.1:7860"
|