-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
122 lines (110 loc) · 3.29 KB
/
pyproject.toml
File metadata and controls
122 lines (110 loc) · 3.29 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
115
116
117
118
119
120
121
[project]
name = "openmirlab-sheetsage-infer"
version = "0.1.1"
description = "Minimal inference-only version of SheetSage for music transcription"
readme = "README.md"
requires-python = ">=3.10"
license = { text = "MIT" }
authors = [
{ name = "Chris Donahue" }
]
keywords = [
"music",
"transcription",
"chords",
"lead-sheet",
"music-theory",
"audio-analysis",
"jukebox",
"pytorch",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Multimedia :: Sound/Audio",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"torch>=2.0.0",
"jukebox-infer>=0.1.0",
"madmom",
"librosa>=0.11.0",
"numpy>=2.0.0",
"scipy>=1.11.0",
"audioread>=3.1.0",
"soundfile>=0.13.0",
"validators>=0.35.0",
"pillow>=12.0.0",
"pretty-midi>=0.2.11",
"tqdm>=4.0.0",
"resampy>=0.4.0", # Required by librosa for audio resampling
]
[project.optional-dependencies]
youtube = [
"yt-dlp>=2025.11.0",
]
dev = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"ruff>=0.1.0",
"mypy>=1.0.0",
]
[project.urls]
Homepage = "https://github.com/openmirlab/sheetsage-infer"
Repository = "https://github.com/openmirlab/sheetsage-infer"
Issues = "https://github.com/openmirlab/sheetsage-infer/issues"
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
include = ["sheetsage*"]
[tool.setuptools.package-data]
sheetsage = ["assets/*.json"]
[tool.uv.sources]
madmom = {git = "https://github.com/CPJKU/madmom.git"}
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"-v",
"--strict-markers",
]
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
]
ignore = [
"E501", # line too long (handled by formatter)
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401", "F403"] # Allow unused imports and star imports in __init__.py
"sheetsage/representations/jukebox_modules/**" = ["E741", "N806", "N802", "E731", "B011", "B905", "F841", "E722", "I001", "F401", "N812", "C408", "W291", "W292", "W293", "B007", "B904", "F821", "E402"] # Vendored code - ignore style issues
"sheetsage/representations/jukebox.py" = ["E402"] # Imports after sys.path.insert are intentional
"sheetsage/modules/modules.py" = ["N812"] # PyTorch convention uses F for functional
"examples/**" = ["F401"] # Example files may have unused imports for demonstration
"tests/**" = ["B004", "B017", "N806", "F401", "I001"] # Test files - allow some style flexibility
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false
disallow_incomplete_defs = false
check_untyped_defs = true