fix: move dev tools to dependency-groups so uv sync installs them always

ruff, ty, pytest, pytest-cov were in [project.optional-dependencies]
requiring --extra dev to install. Moved to [dependency-groups] which
uv sync includes by default, fixing the pre-push hook finding no ruff.
This commit is contained in:
Justin Bollinger
2026-03-20 10:16:53 -04:00
parent 0d59f0f203
commit 600e21c034
2 changed files with 5 additions and 7 deletions

View File

@@ -114,7 +114,7 @@ reinstall: uninstall install
dev-install:
@echo "Installing project with development dependencies..."
uv pip install -e ".[dev]"
uv sync --group dev
dev-reinstall: uninstall dev-install

View File

@@ -20,12 +20,6 @@ hate_crack = "hate_crack.__main__:main"
[project.optional-dependencies]
tui = ["simple-term-menu==1.6.6"]
dev = [
"ty==0.0.17",
"ruff==0.15.1",
"pytest==9.0.2",
"pytest-cov==7.0.0",
]
[tool.setuptools.packages.find]
include = ["hate_crack*"]
@@ -78,5 +72,9 @@ testpaths = [
[dependency-groups]
dev = [
"ty==0.0.17",
"ruff==0.15.1",
"pytest==9.0.2",
"pytest-cov==7.0.0",
"pytest-timeout>=2.4.0",
]