-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
117 lines (105 loc) · 2.12 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
[project]
name = "naudio"
authors = [
{ name = "nousr", email = "discord@nousr.com" },
]
description = "A trainer for audio models."
readme = "README.md"
requires-python = ">=3.10"
keywords = [
"jax",
"audio",
"flax",
"optax",
"stable-audio",
"generative-ai",
"deep-learning",
"neural-networks",
"machine-learning",
]
license = { file = "LICENSE.md" }
classifiers = [
"Programming Language :: Python :: 3",
]
dynamic = ["version"]
dependencies = [
"jax==0.4.30",
"flax==0.8.4",
"jaxtyping==0.2.30",
"beartype==0.18.5",
"einops==0.8.0",
"tensorboard==2.17.0"
]
[project.optional-dependencies]
dev = [
"ruff==0.4.10",
"setuptools-scm==8.1.0",
"pre-commit==3.7.1", # remember to run `pre-commit install` after installing
]
all = [
"naudio[dev]",
]
[project.scripts]
naudio = "naudio.trainer.cli:main"
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools>=64", "wheel"]
[tool.setuptools_scm]
write_to = "src/naudio/_version.py"
[tool.setuptools.packages.find]
namespaces = true
where = ["src"]
include = ["naudio*"]
exclude = ["naudio.tests*"]
[tool.setuptools.package-data]
"*" = [
"*.css",
"*.json",
"*.md",
"*.txt",
]
"naudio.data" = [
"*.ckpt",
"*.pt",
"*.pth",
"*.safetensors",
]
[tool.ruff]
line-length = 110
target-version = "py310"
extend-exclude = ["/usr/lib/*"]
[tool.ruff.lint]
ignore = [
"E501", # line too long - will be fixed in format
"F722", # jaxtyping forward annotation
]
[tool.ruff.lint.isort]
combine-as-imports = true
force-wrap-aliases = true
known-local-folder = ["src"]
known-first-party = ["naudio"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "auto"
skip-magic-trailing-comma = false
docstring-code-format = true
exclude = [
"src/naudio/_version.py", # generated by setuptools_scm
]
[tool.pyright]
include = ["src/**"]
exclude = ["/usr/lib/**"]
stubPath = "./typings"
[tool.tomlsort]
in_place = true
no_sort_tables = true
spaces_before_inline_comment = 1
spaces_indent_inline_array = 2
trailing_comma_inline_array = true
sort_first = [
"project",
"build-system",
"tool.setuptools-scm",
"tool.setuptools",
]