맥락: - Python 코드만 대상으로 Ruff 기반 format/lint와 pre-commit hook을 도입한다. - Cython game.pyx는 Ruff 대상에서 제외해 포맷터 충돌을 피한다. 변경: - ruff와 pre-commit dev dependency 및 Ruff 설정을 추가했다. - pre-commit config와 Python format/check 스크립트를 추가했다. - Ruff format/check --fix 결과로 Python import 정렬과 포맷을 적용했다. 확인: - uv sync --extra gui - uv run pre-commit run --all-files - scripts/check-python.sh - uv run lost-cities-classic
56 lines
1.1 KiB
TOML
56 lines
1.1 KiB
TOML
[project]
|
|
name = "coolrl-lost-cities"
|
|
version = "0.1.0"
|
|
description = "Focused Lost Cities classic game extraction"
|
|
readme = "README.md"
|
|
authors = [
|
|
{ name = "정시원", email = "sebastianrcnt@gmail.com" }
|
|
]
|
|
requires-python = ">=3.11"
|
|
dependencies = [
|
|
"numpy>=1.26.0",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
gui = [
|
|
"pygame>=2.6.1",
|
|
"pygame-gui>=0.6.14",
|
|
]
|
|
|
|
[project.scripts]
|
|
lost-cities-classic = "coolrl_lost_cities.games.classic:main"
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
"cython>=3.0",
|
|
"pre-commit>=4.0.0",
|
|
"pytest>=9.0.3",
|
|
"ruff>=0.8.0",
|
|
]
|
|
|
|
[build-system]
|
|
requires = ["setuptools>=69", "wheel", "Cython>=3.0", "numpy>=1.26.0"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[tool.setuptools.packages.find]
|
|
where = ["src"]
|
|
include = ["coolrl_lost_cities*"]
|
|
|
|
[tool.setuptools.package-data]
|
|
"coolrl_lost_cities.games.classic" = [
|
|
"assets/*.json",
|
|
"fixtures/*.json",
|
|
"docs/*.md",
|
|
]
|
|
|
|
[tool.ruff]
|
|
line-length = 100
|
|
target-version = "py311"
|
|
extend-exclude = [
|
|
"src/coolrl_lost_cities/games/classic/game.pyx",
|
|
]
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "I", "UP", "B"]
|
|
ignore = ["E501"]
|