forked from vladmandic/automatic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
67 lines (65 loc) · 1.35 KB
/
pyproject.toml
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
[tool.ruff]
target-version = "py310"
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",
]
exclude = [
"/usr/lib",
"extensions",
"extensions-builtin",
"modules/lora",
"modules/dml",
"modules/k-diffusion",
"repositories/ldm",
"repositories/taming",
"repositories/blip",
"repositories/codeformer",
]
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
"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()`
"F401", # Imported but unused
"EXE001", # Shebang present
"ISC003", # Implicit string concatenation
"RUF005", # Consider concatenation
"RUF012", # Mutable class attributes
"RUF013", # Implict optional
"RUF015", # Prefer `next`
]
[tool.ruff.flake8-bugbear]
extend-immutable-calls = ["fastapi.Depends", "fastapi.security.HTTPBasic"]
[tool.pytest.ini_options]
base_url = "http://127.0.0.1:7860"