soinov commited on
Commit
bbda1ee
·
verified ·
1 Parent(s): 932bda8

Upload pyproject.toml with huggingface_hub

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