Skip to content

Conversation

@mdgoldberg
Copy link
Owner

@mdgoldberg mdgoldberg commented Jan 17, 2026

Summary

Add pre-commit hooks to ensure code quality before commits.

Changes

  • Created .pre-commit-config.yaml with Rust and general best-practice hooks
  • Rust hooks: cargo fmt, cargo check, cargo clippy (matching CI configuration)
  • General hooks: trailing whitespace, end-of-file, YAML/TOML syntax checks, merge conflict detection, large file checks, line ending normalization

Why

Pre-commit hooks catch issues locally before pushing, reducing CI failures and providing faster feedback.

Matt Goldberg added 4 commits January 17, 2026 00:16
Replace .get(0) with .first(), use .find() instead of .filter().next(),
leverage ? operator for early returns, and implement Ord trait for
CardPlay/Card to ensure total ordering consistency.

Changes identified by cargo clippy.
@mdgoldberg mdgoldberg merged commit 778da1d into main Jan 18, 2026
4 checks passed
@mdgoldberg mdgoldberg deleted the feature/setup-ci branch January 18, 2026 05:58
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