Skip to content

Formatting, Linting & Pre-commit Hooks#17

Merged
ayshadogo merged 1 commit intoDfunder:mainfrom
icedoutskay:formating
Feb 23, 2026
Merged

Formatting, Linting & Pre-commit Hooks#17
ayshadogo merged 1 commit intoDfunder:mainfrom
icedoutskay:formating

Conversation

@icedoutskay
Copy link

Formatting, Linting & Pre-commit Hooks

Description

This PR introduces consistent formatting, linting, and optional pre-commit hooks to enforce code quality across the repository.

The goal is to ensure contributors follow a uniform Rust style and catch common issues early through automated tooling.


Changes Included

  • Added rustfmt.toml to define project-wide formatting rules
  • Configured strict Clippy settings with deny rules for common pitfalls
  • Added optional pre-commit hooks to run:
    • cargo fmt --all
    • cargo clippy --all-targets --all-features
    • cargo test
  • Updated CONTRIBUTING.md with instructions for:
    • Formatting and linting locally
    • Enabling pre-commit hooks (optional)

Notes

  • Pre-commit hooks are opt-in to avoid friction for new contributors
  • This PR does not change runtime behavior, only developer tooling and standards

This PR closes #7

@ayshadogo ayshadogo merged commit 77bc3a7 into Dfunder:main Feb 23, 2026
2 of 5 checks passed
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.

Formatting, Linting & Pre-commit Hooks

2 participants