-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathpyproject.toml
More file actions
executable file
·95 lines (85 loc) · 1.88 KB
/
pyproject.toml
File metadata and controls
executable file
·95 lines (85 loc) · 1.88 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "sparse-videogen"
version = "0.1.0"
description = "Sparse Video Generation Models"
readme = "svg/README.md"
requires-python = ">=3.8"
license = "Apache-2.0"
authors = [{ name = "FirstIntelligence" }]
dependencies = [
"torch>=2.0.0",
"torchvision>=0.15.0",
"numpy>=1.21.0",
"scipy>=1.7.0",
"scikit-learn>=1.0.0",
"pillow>=9.0.0",
"tqdm>=4.65.0",
"matplotlib>=3.5.0",
"einops>=0.6.0",
"diffusers==0.34.0",
"transformers>=4.49.2",
"accelerate>=1.7.0",
"ftfy",
"imageio",
"imageio-ffmpeg",
"pytest",
"IPython",
"termcolor",
"tabulate",
"lpips",
"scikit-image",
"loguru",
"pandas",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"black>=22.0.0",
"isort>=5.10.0",
"flake8>=4.0.0",
"mypy>=0.900",
]
[tool.setuptools.packages.find]
where = ["."]
include = ["svg*"]
[tool.hatch.build.targets.wheel]
packages = ["svg"]
[tool.black]
line-length = 120
target-version = ['py310']
include = '\.pyi?$'
extend-exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
)/
'''
[tool.ruff]
line-length = 120
target-version = "py310"
exclude = [".git", ".mypy_cache", ".tox", ".venv", "build", "dist"]
src = ["svg"]
[tool.ruff.lint]
extend-select = ["I", "E", "F"]
extend-ignore = ["E203", "E731", "D203", "D212", "E501", "F841"]
[tool.hatch.envs.lint]
dev-mode = false
dependencies = ["black", "ruff"]
[tool.hatch.envs.lint.scripts]
check = [
"ruff check analyze svg/models/hyvideo svg/models/wan svg/utils svg/*.py",
"black --check analyze svg/models/hyvideo svg/models/wan svg/utils svg/*.py",
]
fix = [
"ruff check analyze svg/models/hyvideo svg/models/wan svg/utils svg/*.py --fix",
"black analyze svg/models/hyvideo svg/models/wan svg/utils svg/*.py",
]