Skip to content

Commit e0ff60f

Browse files
Ralph Agentclaude
andcommitted
🐛 Add pre-commit as dev dependency so hooks step works
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 3ba47c8 commit e0ff60f

3 files changed

Lines changed: 77 additions & 7 deletions

File tree

onboard.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,6 @@ def hooks() -> None:
401401
rprint("[red]✗ .pre-commit-config.yaml not found.[/red]")
402402
raise typer.Exit(code=1)
403403

404-
405404
config = yaml.safe_load(config_path.read_text())
406405

407406
table = Table(title="Configured Pre-commit Hooks")
@@ -426,7 +425,7 @@ def hooks() -> None:
426425

427426
if activate:
428427
result = subprocess.run(
429-
["pre-commit", "install"],
428+
["uv", "run", "pre-commit", "install"],
430429
cwd=PROJECT_ROOT,
431430
capture_output=True,
432431
text=True,

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "python-template"
33
version = "0.1.0"
4-
description = "Add your description here"
4+
description = "[O[I🐍 Opinionated uv Python template with batteries included. Cursorrules, LLMs, linting, dead code analysis, and a whole lot more."
55
authors = [
66
{ name = "Miyamura80", email = "eitomiyamura@gmail.com" }
77
]
@@ -109,5 +109,6 @@ show_missing = true
109109

110110
[dependency-groups]
111111
dev = [
112+
"pre-commit>=4.5.1",
112113
"pytest-check-links>=0.9.1",
113114
]

uv.lock

Lines changed: 74 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)