Kizi-Art commited on
Commit
0120332
1 Parent(s): 7b7b425

Upload pyproject.toml with huggingface_hub

Browse files
Files changed (1) hide show
  1. pyproject.toml +35 -0
pyproject.toml ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [tool.ruff]
2
+
3
+ target-version = "py39"
4
+
5
+ extend-select = [
6
+ "B",
7
+ "C",
8
+ "I",
9
+ "W",
10
+ ]
11
+
12
+ exclude = [
13
+ "extensions",
14
+ "extensions-disabled",
15
+ ]
16
+
17
+ ignore = [
18
+ "E501", # Line too long
19
+ "E731", # Do not assign a `lambda` expression, use a `def`
20
+
21
+ "I001", # Import block is un-sorted or un-formatted
22
+ "C901", # Function is too complex
23
+ "C408", # Rewrite as a literal
24
+ "W605", # invalid escape sequence, messes with some docstrings
25
+ ]
26
+
27
+ [tool.ruff.per-file-ignores]
28
+ "webui.py" = ["E402"] # Module level import not at top of file
29
+
30
+ [tool.ruff.flake8-bugbear]
31
+ # Allow default arguments like, e.g., `data: List[str] = fastapi.Query(None)`.
32
+ extend-immutable-calls = ["fastapi.Depends", "fastapi.security.HTTPBasic"]
33
+
34
+ [tool.pytest.ini_options]
35
+ base_url = "http://127.0.0.1:7860"