Linters
Development on the Python wrapper may involve changes in either the Python or Rust code. Each language has distinct linter tests that must be passed before committing changes.
Python Linters
Section titled “Python Linters”This project uses the following Python linters and formatters:
isortblackflake8mypy
To check formatting and run static analysis for Python code, use the dev.py utility from the root python/ directory:
python3 dev.py lintBy default, this will auto-fix formatting issues using isort and black. If you want to only check formatting without modifying any files, pass the —check flag:
python3 dev.py lint --checkRust Linters
Section titled “Rust Linters”For Rust code, run manually:
rustup component add clippy rustfmtcargo clippy --all-features --all-targets -- -D warningscargo fmt --manifest-path ./Cargo.toml --all