-
-
Notifications
You must be signed in to change notification settings - Fork 335
/
Copy pathpyproject.toml
92 lines (80 loc) · 1.72 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
80
81
82
83
84
85
86
87
88
89
90
91
92
[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",
"textual>=1.0.0",
"pyyaml>=6.0.2",
"numba>=0.61.0",
"soundfile>=0.13.0",
]
[project.optional-dependencies]
cuda = ["onnxruntime-gpu>=1.16.0"]
cpu = ["onnxruntime>=1.16.0"]
dev = ["pytest", "ruff", "ipykernel", "types-requests", "types-PyYAML"]
[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 = 200
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