-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
79 lines (72 loc) · 1.85 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
68
69
70
71
72
73
74
75
76
77
78
79
[project]
name = "clip-image-search"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"fastapi[standard]>=0.115.6",
"numpy<2",
"pillow>=11.0.0",
"transformers>=4.47.1",
"torch<2.3.0",
"sqlmodel>=0.0.22",
"alembic>=1.14.0",
"pgvector>=0.3.6",
"asyncpg>=0.30.0",
"pydantic-settings>=2.7.0",
"tenacity>=9.0.0",
"pytest>=8.3.4",
]
[dependency-groups]
dev = [
"pre-commit>=4.0.1",
"pyright>=1.1.391",
"requests>=2.32.3",
"ruff>=0.8.4",
]
[tool.ruff]
src = ["."]
extend-exclude = ["*/migrations"]
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"D", # pydocstyle
"PLR", # pylint-refactor
"ISC001", # conflict with format
"COM812", # conflict with format
"ANN401", # allow dynamically typed expressions (typing.Any)
"S101", # allow usage of assert
"S311", # allow usage of random
"PGH003", # allow type: ignore
"TRY003", # allow long messages outside the exception class
"ISC001", # conflict with formatter
"C901", # too pedenatic
]
unfixable = [
"PIE794", # don't touch redefinition
]
[tool.ruff.lint.pycodestyle]
max-line-length = 110
max-doc-length = 110
[tool.ruff.lint.isort]
relative-imports-order = "closest-to-furthest"
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"scripts/*" = ["INP001"]
[tool.pyright]
venvPath = "."
venv = ".venv"
include = ["."]
exclude = ["*/migrations"]
pythonVersion = "3.12"
pythonPlatform = "Linux"
typeCheckingMode = "basic"
useLibraryCodeForTypes = false
reportIncompatibleMethodOverride = "warning"
reportIncompatibleVariableOverride = "warning"
reportUnnecessaryTypeIgnoreComment = "warning"
reportUnnecessaryIsInstance = "warning"
reportUnnecessaryComparison = "warning"
reportUnnecessaryContains = "warning"
reportAssertAlwaysTrue = "warning"