Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
96 lines (82 loc) · 2.78 KB
/
Copy pathpyproject.toml
File metadata and controls
96 lines (82 loc) · 2.78 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
[build-system]
requires = ["hatchling>=1.26"]
build-backend = "hatchling.build"
[project]
name = "nnnotes"
description = "Offline data toolkit for BanG Dream! Our Notes game files: catalogs, bundles, master data, stories, Live2D, audio and live charts"
readme = "README.md"
license = "MIT"
license-files = ["LICENSE"]
requires-python = ">=3.11"
authors = [{ name = "MetaMiku" }, { name = "emptysekai" }]
dependencies = [
"UnityPy>=1.25",
"numpy>=2.0",
"Pillow>=10.0",
"pycryptodome>=3.20",
"grpcio>=1.49.1",
"brotli>=1.1",
]
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
"Topic :: Multimedia",
]
dynamic = ["version"]
[project.optional-dependencies]
test = ["pytest>=8", "ruff>=0.15", "jsonschema>=4.18", "import-linter>=2.1", "pyright>=1.1.414"]
fonts = ["fonttools>=4.50", "freetype-py>=2.5", "scipy>=1.13"]
docs = ["mkdocs>=1.6,<2", "mkdocs-material>=9.5", "mkdocstrings[python]>=0.29"]
# the deck model of music-data: one nnnotes version carries one ournotes-deck release (.github/workflows/deck.yml moves
# the pin when ournotes-deck publishes a newer one)
deck = ["ournotes-sim==0.0.9"]
[project.scripts]
nnnotes = "nnnotes.cli:main"
[project.urls]
Homepage = "https://github.com/MetaSekaiLab/nnnotes"
Documentation = "https://metasekailab.github.io/nnnotes/"
Source = "https://github.com/MetaSekaiLab/nnnotes"
Issues = "https://github.com/MetaSekaiLab/nnnotes/issues"
[tool.hatch.version]
path = "src/nnnotes/__init__.py"
[tool.hatch.build.targets.wheel]
packages = ["src/nnnotes"]
[tool.hatch.build.targets.sdist]
include = ["/src", "/tests", "/docs", "/scripts", "/CHANGELOG.md", "/CONTRIBUTING.md", "/README.md", "/README.zh-CN.md", "/mkdocs.yml", "/LICENSE"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-ra"
[tool.ruff]
line-length = 120
target-version = "py311"
extend-exclude = [".venv"]
[tool.ruff.lint]
select = ["E", "W", "F", "I", "UP", "B"]
# B023: the closures defined in loops are called within the iteration that defines them; B905: zip pairs columns whose
# lengths are checked where they are read
ignore = ["B023", "B905"]
[tool.ruff.lint.flake8-bugbear]
extend-immutable-calls = ["nnnotes.content.liveoptions.LiveOptions"]
[tool.pyright]
include = ["src"]
pythonVersion = "3.11"
pythonPlatform = "Linux"
typeCheckingMode = "basic"
# the configuration and source layers, and the schemas, are checked in strict mode
strict = ["src/nnnotes/core", "src/nnnotes/source", "src/nnnotes/schemas"]
[tool.importlinter]
root_package = "nnnotes"
[[tool.importlinter.contracts]]
name = "Layers: each subpackage imports only the layers below it"
type = "layers"
layers = [
"cli",
"site | musicdata",
"pipeline",
"content",
"unity",
"formats",
"source",
"core",
]
containers = ["nnnotes"]