Skip to content

feat: add pre-commit hooks with lint-staged#162

Merged
OttoAllmendinger merged 3 commits intomasterfrom
BTC-2650.git-hooks
Feb 13, 2026
Merged

feat: add pre-commit hooks with lint-staged#162
OttoAllmendinger merged 3 commits intomasterfrom
BTC-2650.git-hooks

Conversation

@OttoAllmendinger
Copy link
Contributor

Set up Husky pre-commit hooks with lint-staged configuration to
automatically run formatting and linting on staged files before
commits. This ensures code quality by running:

  • Prettier and ESLint on JS/TS files
  • Cargo fmt and clippy on Rust files

Updated README with developer setup instructions.

BTC-2650

Set up Husky pre-commit hooks with lint-staged configuration to
automatically run formatting and linting on staged files before
commits. This ensures code quality by running:
- Prettier and ESLint on JS/TS files
- Cargo fmt and clippy on Rust files

Updated README with developer setup instructions.

Issue: BTC-2650

Co-authored-by: llm-git <llm-git@ttll.de>
@OttoAllmendinger OttoAllmendinger marked this pull request as ready for review February 13, 2026 09:07
@OttoAllmendinger OttoAllmendinger requested a review from a team as a code owner February 13, 2026 09:07
OttoAllmendinger and others added 2 commits February 13, 2026 10:39
Add Rust linting configuration to check for unexpected cfg conditions
from dependencies. Fix multiple clippy warnings including:

- Replace map().unwrap_or(false) with simpler expressions
- Use *cached instead of clone() for XpubTriple
- Use x_only_public_key() instead of to_inner()
- Simplify control flow with div_ceil() and find()
- Avoid unnecessary cloning with tap_script_sigs.insert(*key, *sig)
- Add #[allow(clippy::too_many_arguments)] where appropriate

Issue: BTC-2650

Co-authored-by: llm-git <llm-git@ttll.de>
Enable cargo clippy checks alongside formatting in the pre-commit hooks
for Rust files. Checks are configured to treat warnings as errors
for better code quality enforcement.

Issue: BTC-2650

Co-authored-by: llm-git <llm-git@ttll.de>
@OttoAllmendinger OttoAllmendinger merged commit a1b72f2 into master Feb 13, 2026
6 checks passed
@OttoAllmendinger OttoAllmendinger deleted the BTC-2650.git-hooks branch February 13, 2026 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants