mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-05-09 08:25:54 +02:00
[GH-ISSUE #458] [Feature]: Pre-Commit - Enforce test & compile & lint for the Frontend & Backend #283
Labels
No labels
A1
automated
automated
bug
bug
Closed due to inactivity
contrib
dependencies
dependencies
duplicate
enhancement
feedback
hold
invalid
Notes
P1S
pull-request
security
ThumbsUp
user-report
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/bambuddy-maziggy-1#283
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @aneopsy on GitHub (Feb 20, 2026).
Original GitHub issue: https://github.com/maziggy/bambuddy/issues/458
Originally assigned to: @maziggy on GitHub.
Problem or Use Case
The repo currently has pre-commit installed, but it's still possible to commit and push code containing lint or compilation errors. It would be better to enforce all prechecks through pre-commit hooks, ensuring a cleaner repository and reducing the need for fix-up commits.
I can take care of it if needed.
Proposed Solution
.
Alternatives Considered
No response
Feature Category
Other
Priority
Would improve my workflow
Mockups or Examples
No response
Contribution
Checklist
@maziggy commented on GitHub (Feb 20, 2026):
We already have pre-commit hooks with ruff (lint + format). Are you asking about adding frontend checks (TypeScript compilation, ESLint, etc.) to the pre-commit config? Not sure...
@aneopsy commented on GitHub (Feb 20, 2026):
Pre-commit was installed on my machine but not activated for this repo (needed
pre-commit install). I'm more familiar with Husky in npm projects, where hooks are automatically enforced on install without extra setup.For this repo, it would be great if pre-commit can include checks for TypeScript compiler errors and linting, not just Python. (run
npm run buildbefore a commit)@maziggy commented on GitHub (Feb 20, 2026):
Added frontend pre-commit hooks in branch 0.2.1b2:
Both hooks only trigger when frontend/src/**/*.{ts,tsx} files are staged, so they won't slow down backend-only commits.
Regarding the pre-commit install step — that's inherent to how pre-commit works (it needs to register the git hook once per clone). We could look into automating that as part of a dev setup script in the future, but it's a separate concern from the hook definitions themselves.