Newer
Older
TIASjudge / pyproject.toml
[project]
name = "tiasjudge"
version = "0.1.0"
description = "舌診支援システム(舌画像の ROI 色から舌色を 5 分類する)"
requires-python = ">=3.12,<3.13"
dependencies = [
    "numpy>=2.0",
    # 舌色判定(参考.Issue #13)の ONNX モデルの推論に使う
    "onnxruntime>=1.30.0",
    # ENV_01 の選定どおり OpenCV 4.x 系に固定する(cv2.ml.SVM の挙動同一性のため)
    "opencv-python>=4.10,<5",
    "pyside6>=6.7",
]

[project.scripts]
tiasjudge = "tiasjudge.__main__:main"

[dependency-groups]
dev = [
    "pyinstaller>=6.22.2",
    "pytest>=8.0",
    "ruff>=0.6",
]

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.build.targets.wheel]
packages = ["src/tiasjudge"]

[tool.ruff]
line-length = 100
target-version = "py312"
src = ["src", "tests"]
# Claude Code 用のフック等は本プロジェクトのコード規約の対象外とする
extend-exclude = [".claude"]

[tool.ruff.lint]
# E/W: pycodestyle, F: pyflakes, I: isort, N: pep8-naming,
# UP: pyupgrade, B: flake8-bugbear, SIM: flake8-simplify
select = ["E", "W", "F", "I", "N", "UP", "B", "SIM"]

[tool.ruff.format]
quote-style = "double"

[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-ra"