-
-
Notifications
You must be signed in to change notification settings - Fork 417
Expand file tree
/
Copy pathpyproject.toml
More file actions
114 lines (103 loc) · 2.13 KB
/
pyproject.toml
File metadata and controls
114 lines (103 loc) · 2.13 KB
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
[project]
name = "glados"
version = "0.1.0"
description = "GLaDOS Voice Assistant"
requires-python = ">=3.12"
dependencies = [
"sounddevice>=0.5.1",
"levenshtein>=0.26.1",
"loguru>=0.7.3",
"jinja2>=3.1.5",
"requests>=2.32.3",
"opencv-python>=4.12.0",
"textual>=1.0.0",
"pyyaml>=6.0.2",
"numba>=0.61.0",
"soundfile>=0.13.0",
"regex>=2024.5.15",
"pydantic>=2.10.6",
"httpx>=0.28.1",
"rich>=14.0.0",
"threadpoolctl>=3.0.0",
"mcp>=1.25.0",
]
[project.optional-dependencies]
cuda = ["onnxruntime-gpu>=1.16.0"]
cpu = ["onnxruntime>=1.16.0"]
tiktoken = ["tiktoken>=0.5.0"]
dev = [
"pytest",
"pytest-anyio",
"pytest-loguru",
"pytest-mock",
"ruff",
"ipykernel",
"types-requests",
"types-PyYAML",
]
export = [
"nemo_toolkit[asr]>=2.6.1",
"onnx>=1.20.1",
"onnxconverter-common>=1.16.0",
]
api = ["litestar[standard,structlog]>=2.15.1"]
[project.scripts]
glados = "glados.cli:main"
# Build system
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
# Ruff configuration
[tool.ruff]
# Same as Black
line-length = 120
indent-width = 4
# Enable all rules, including those that replace Black and isort
lint.extend-select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"RUF", # Ruff-specific rules
"ANN", # Annotation rules
"PYI", # Type stub rules
]
# Assume Python 3.12
target-version = "py312"
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"build",
"dist",
"node_modules",
"venv",
]
[tool.ruff.lint.isort]
order-by-type = true
force-sort-within-sections = true
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.mypy]
python_version = "3.12"
strict = true