-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
44 lines (37 loc) · 1.11 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
[tool.mypy]
disallow_untyped_defs = true
[[tool.mypy.overrides]]
module = ['litellm', "nltk", "alignscore","pgvector.sqlalchemy",
"google.auth.transport", "google.oauth2",
"gtts", "google.cloud", "bertopic", "hdbscan", "pydub",
"sklearn", "umap", "bokeh.*"]
ignore_missing_imports = true
follow_imports = "skip"
[tool.ruff]
lint.select = ["E", "F", "B", "Q", "I"]
line-length = 88
lint.ignore = ["B008"] # Do not perform function calls in argument defaults.
[tool.ruff.lint.flake8-bugbear]
extend-immutable-calls = ["fastapi.Depends", "fastapi.params.Depends","typer.Option"]
[tool.ruff.lint.isort]
known-first-party = ["core_backend"]
[tool.isort]
known_first_party = ["core_backend"]
[tool.pytest.ini_options]
filterwarnings = [
"ignore::DeprecationWarning"
]
markers = [
"rails: marks tests that are testing rails. These call an LLM service."
]
asyncio_mode = "auto"
# Pytest coverage
[tool.coverage.report]
exclude_lines = [
'if __name__ == "__main__"',
"if __name__ == '__main__'",
"def cli",
"if TYPE_CHECKING:",
"pragma: no cover",
]
omit = ["*/tests/*"]