Skip to content

Revamp code quality checks, including Rust checks#209

Merged
sampsyo merged 15 commits intomainfrom
ci-checks
Apr 18, 2025
Merged

Revamp code quality checks, including Rust checks#209
sampsyo merged 15 commits intomainfrom
ci-checks

Conversation

@sampsyo
Copy link
Collaborator

@sampsyo sampsyo commented Apr 18, 2025

We previously did some checks on Python code; I've updated those to use ruff for listing & formatting, and I've also added some checks for Rust code (cargo check, cargo clippy, and cargo fmt). Always good for your health!

The addition of Clippy revealed several things to fix in our Rust code, so I did that too. I suppressed one interesting lint: the repr_packed_without_abi lint, which warns that the layout of #repr(packed) structs is unstable. That would be a problem if our file formats were meant to be consumed by other tools. That's not currently true, but if it ever is, we should consider switching to the C ABI.

@sampsyo sampsyo merged commit 711624f into main Apr 18, 2025
14 checks passed
@sampsyo sampsyo deleted the ci-checks branch April 18, 2025 21:46
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.

1 participant