Skip to content

Remove precommit hooks - #249

Open
spacey-sooty wants to merge 1 commit into
frcsoftware:mainfrom
spacey-sooty:remove-precommit-hooks
Open

Remove precommit hooks#249
spacey-sooty wants to merge 1 commit into
frcsoftware:mainfrom
spacey-sooty:remove-precommit-hooks

Conversation

@spacey-sooty

Copy link
Copy Markdown
Member

Description

I removed the precommit hooks because they are annoying and keep failing for people. Just run the commands you need to.

Meta

Merge checklist:

@spacey-sooty
spacey-sooty requested a review from a team as a code owner September 6, 2026 16:59
@github-actions github-actions Bot added the infra Any infrastructure for building the website or syncing files label Sep 6, 2026
@github-actions

github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown

🌐 Preview URL: https://pr-249-frcsoftware.frcsoftware.workers.dev

@samfreund samfreund left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm against this until we demonstrate what the issues people are hitting are, and that they're unresolvable.

@TheComputer314

Copy link
Copy Markdown
Contributor

Linting before committing does allow for guarantees that the commit is cleanly formatted and whatnot, but sometimes the linter is broken or you just wanna throw down a commit without linting. Commit hooks can be bypassed, but it's not an easily accessible setting in most IDEs and it auto-resets to no bypass on IntelliJ.

Lint-staged also only lints things within the git stage, which can sometimes fail if additional stuff needs to be linted, if the lint depends on something else, or if you use an IDE that doesn't use the traditional git staging mechanism such as IntelliJ.

Linting also takes a few seconds before the lint actually saves, and if it fails VSCode and IntelliJ doesn't make it obvious why it failed in the commit hook.

I'm in favor of removing pre-commit hooks, then maybe adding back in a pre-push hook when we've stabilized the linter.

@Daniel1464 Daniel1464 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make precommit hooks opt-in instead of opt-out? As in, doing git commit -f -n "my commit" will run the hooks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infra Any infrastructure for building the website or syncing files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants