pyproject.toml 811 Bytes
Newer Older
Muyang Li's avatar
Muyang Li committed
1
2
3
4
[tool.isort]
profile = "black"
known_first_party = ["nunchaku"]
line_length = 120
sxtyzhangzk's avatar
sxtyzhangzk committed
5

Muyang Li's avatar
Muyang Li committed
6
7
8
[tool.black]
line-length = 120
target-version = ['py311']
9

Hyunsung Lee's avatar
Hyunsung Lee committed
10
[tool.ruff]
Muyang Li's avatar
Muyang Li committed
11
line-length = 120
Hyunsung Lee's avatar
Hyunsung Lee committed
12

sxtyzhangzk's avatar
sxtyzhangzk committed
13
14
15
16
[project]
dynamic = ["version"]
name = "nunchaku"
dependencies = [
17
18
19
    "diffusers>=0.35.1",
    "transformers>=4.53.3",
    "accelerate>=1.9.0",
sxtyzhangzk's avatar
sxtyzhangzk committed
20
21
    "sentencepiece",
    "protobuf",
22
23
24
    "huggingface_hub>=0.34",
    "peft>=0.17",
    "einops",
25
]
Muyang Li's avatar
Muyang Li committed
26
requires-python = ">=3.10"
Muyang Li's avatar
Muyang Li committed
27
28
29
30
31
32
33
34
35
36
37
38

[build-system]
requires = [
    "setuptools",
    "torch>=2.5",
    "wheel",
    "ninja",
]
build-backend = "setuptools.build_meta"

[tool.setuptools.packages.find]
include = ["nunchaku"]
39
40
41
42
43
44
45
46
47

[tool.doc8]
max-line-length = 120
ignore-path = ["docs/_build"]
ignore = ["D000", "D001"]

[tool.rstcheck]
ignore_directives = ["tabs"]
ignore_messages = ["ERROR/3", "INFO/1"]