Ruff v0.8.0 is released with several notable changes. The default target Python version is bumped from 3.8 to 3.9, reflecting Python 3.8's end-of-life status. This may cause formatting and linting behavior changes for users who haven't explicitly set a target version. The release also stabilizes 13 previously preview-only rules (including FastAPI-specific rules and several RUF/UP rules), renames flake8-type-checking error codes from TCH to TC, removes six deprecated rules (ANN101, ANN102, PT004, PT005, UP027, E999), updates Unicode width calculations, and changes the standalone installer's default install directory from ~/.cargo/bin to ~/.local/bin.

8m read timeFrom astral.sh
Post cover image
Table of contents
Migrating to v0.8 #Rule stabilizations #Other behavior changes #

Sort: