9b6f05b420
I was making a bad assumption: 1. Songs with branches have the same number of balloons. 2. Each balloon has the same number of hits across branches. Because I was making these assumptions, I thought I could just repeat the `BALLOON:` field for each branch. **But this is wrong!!** Branches can have different numbers of balloons, and they can have different number of hits in their balloons. So, we need to **NOT** necessarily repeat `BALLOON:`, and instead use the written value of `BALLOON:` directly. This way we can get the different values for each branch. This fixes the parsing of Emma's Ura (and probably other songs). Also, this revealed a bug in my parsing of Roppon no Bara to Sai no Uta, so I needed to make sure we account for "duplicated" balloons too, and repeat the values _only when necessary_.
49 lines
1.4 KiB
TOML
49 lines
1.4 KiB
TOML
[project]
|
|
name = "tja2fumen"
|
|
version = "0.0.dev0"
|
|
description = "Convert TJA chart files into fumen (.bin) chart files"
|
|
readme = "README.md"
|
|
requires-python = ">=3.8"
|
|
license = {file = "LICENSE.txt"}
|
|
keywords = ["taiko", "tatsujin", "fumen", "TJA"]
|
|
|
|
[project.urls] # Optional
|
|
"Homepage" = "https://github.com/vivaria/tja2fumen/"
|
|
"Bug Reports" = "https://github.com/vivaria/tja2fumen/issues/"
|
|
"Source" = "https://github.com/vivaria/tja2fumen/"
|
|
|
|
# The following would provide a command line executable called `sample`
|
|
# which executes the function `main` from this package when invoked.
|
|
[project.scripts] # Optional
|
|
tja2fumen = "tja2fumen:main"
|
|
|
|
[project.optional-dependencies]
|
|
dev = ["pytest", "build", "pyinstaller", "twine", "toml-cli",
|
|
"flake8", "pyproject-flake8", "mypy", "pylint"]
|
|
|
|
[tool.setuptools.packages.find]
|
|
where = ["src"]
|
|
|
|
[tool.pytest.ini_options]
|
|
addopts = "-vv --tb=short --color=yes"
|
|
console_output_style = "count"
|
|
disable_test_id_escaping_and_forfeit_all_rights_to_community_support = "True"
|
|
|
|
[tool.flake8]
|
|
exclude = "venv/"
|
|
per-file-ignores = """
|
|
./src/tja2fumen/classes.py: E221
|
|
./testing/test_conversion.py: E221, E272
|
|
"""
|
|
|
|
[tool.pylint.'MESSAGES CONTROL']
|
|
disable = """
|
|
too-many-instance-attributes,
|
|
too-many-branches,
|
|
too-many-arguments,
|
|
too-many-locals,
|
|
too-many-statements,
|
|
too-many-positional-arguments,
|
|
fixme
|
|
"""
|