generated from doramasma/python-project-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
62 lines (54 loc) · 1.44 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
[project]
name = "news_ask_ai"
version = "0.1.0"
description = "NewsAskAI is an open-source project that scrapes the latest news and generates a list of the most relevant ones. It allow users to ask questions about the news"
authors = [{ name = "Doramas Baez Bernal", email = "doramas6@hotmail.com" }]
readme = "README.md"
keywords = ['Python', 'template', 'uv']
requires-python = ">=3.12.8"
dependencies = [
"mypy>=1.14.1",
"ruff>=0.8.6",
"chromadb>=0.6.2",
"sentence-transformers>=3.3.1",
"transformers>=4.48.0",
"accelerate>=1.2.1",
"bitsandbytes>=0.45.0",
"gnews>=0.3.9",
"textual>=1.0.0"
]
[project.optional-dependencies]
cuda = ["flash-attn>=2.7.3"]
[project.scripts]
"app" = "news_ask_ai:main"
[tool.mypy]
strict = true
ignore_missing_imports = false
allow_untyped_globals = false
allow_redefinition = true
check_untyped_defs = true
color_output = true
error_summary = true
warn_return_any = true
warn_no_return = true
pretty = true
exclude = "^build/"
[tool.ruff]
target-version = "py312"
line-length = 120
indent-width = 4
fix = true
[tool.ruff.format]
indent-style = "space"
line-ending = "auto"
quote-style = "double"
skip-magic-trailing-comma = false
[build-system]
requires = ["setuptools>=61.0", "torch>=2.5.1"]
build-backend = "setuptools.build_meta"
[tool.uv]
no-build-isolation-package = ["flash-attn"]
[[tool.uv.dependency-metadata]]
name = "flash-attn"
version = "2.7.3"
requires-dist = ["torch", "einops"]