Spaces:
Runtime error
Runtime error
Create pyproject.toml
Browse files- pyproject.toml +30 -0
pyproject.toml
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[tool.ruff]
|
2 |
+
line-length = 120
|
3 |
+
# Deprecation of Cuda 11.6, Python 3.7 support for PyTorch 2.0
|
4 |
+
target-version = "py38"
|
5 |
+
exclude = ['eva_clip']
|
6 |
+
# A list of file patterns to omit from linting, in addition to those specified by exclude.
|
7 |
+
extend-exclude = ["__pycache__", "*.pyc", "*.egg-info", ".cache"]
|
8 |
+
|
9 |
+
select = ["E", "F", "W", "C90", "I", "UP", "B", "C4", "RET", "RUF", "SIM"]
|
10 |
+
|
11 |
+
|
12 |
+
ignore = [
|
13 |
+
"UP006", # UP006: Use list instead of typing.List for type annotations
|
14 |
+
"UP007", # UP007: Use X | Y for type annotations
|
15 |
+
"UP009",
|
16 |
+
"UP035",
|
17 |
+
"UP038",
|
18 |
+
"E402",
|
19 |
+
"RET504",
|
20 |
+
"C901",
|
21 |
+
]
|
22 |
+
|
23 |
+
[tool.isort]
|
24 |
+
profile = "black"
|
25 |
+
skip_glob = 'eva_clip/*.py'
|
26 |
+
|
27 |
+
[tool.black]
|
28 |
+
line-length = 119
|
29 |
+
skip-string-normalization = 1
|
30 |
+
exclude = 'eva_clip'
|