Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ Before you push

It's a good idea to run ``just full-check`` before getting a review.
This will run linters, docs build and tests under every supported Python version.
You can automatically fix many lint errors using ``just autofix`` (or ``just autofix-python`` and ``just autofix-rust`` separately).

Benchmarking
============
Expand Down
12 changes: 10 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ lint-python:
@echo 'Running Import Linter...'
@uv run lint-imports

# Lint Rust code using cargo fmt and clippy
# Lint Rust code using cargo fmt and clippy.
[working-directory: 'rust']
[group('linting')]
lint-rust:
Expand All @@ -89,11 +89,19 @@ lint-rust:
[group('linting')]
autofix-rust:
@cargo clippy --all-targets --all-features --fix --allow-staged --allow-dirty
@just format-rust

# Fix any ruff errors
# Fix any ruff errors.
[group('linting')]
autofix-python:
@uv run ruff check --fix
@just format-python

# Fix any lint errors.
[group('linting')]
autofix:
@just autofix-rust
@just autofix-python

# Run linters.
[group('linting')]
Expand Down