Ben Chuanlong Du's Blog

It is never too late to learn.

Ruff Is An Extremely Fast Python Linter Written in Rust

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Use ruff In a uv Managed Python Project

uv run ruff check 
uv run ruff format .

Use ruff Standalone

The most convenient way to use run ruff standalone is via uvx …

Tips on Rust Clippy

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

unused_variables unused_imports dead_code

General Tips

  1. Clippy does not support filtering by specific lint directly. However, it can be achieved via the old rustc flags hack. For example, you can use the …

Tips on Darglint

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Tips and Traps

  1. It is suggested that you avoid using darglint directly, but instead you can use flake8 which will automatically call darglint if it exists.

  2. Improperly escaped \n causes darglint …