Ruff v0.0.276 introduces experimental Jupyter Notebook linting support, a first-class import resolver based on Pyright's resolver, and several new performance-oriented lint rules from the perflint family (PERF101, PERF203, PERF401, PERF402). New rules also cover NumPy deprecated functions (NPY003), Python stub file correctness (PYI002-PYI005), and single-string __slots__ assignments (PLC0205). The release also includes numerous bug fixes across various rule categories.

9m read timeFrom astral.sh
Post cover image
Table of contents
Jupyter Notebook support #First-class import resolution #New rule: unnecessary-list-cast ( PERF101 ) #New rule: try-except-in-loop ( PERF203 ) #New rule: manual-list-comprehension ( PERF401 ) #New rule: manual-list-copy ( PERF402 ) #New rule: numpy-deprecated-function ( NPY003 ) #New rule: single-string-slots ( PLC0205 ) #New rule: complex-if-statement-in-stub ( PYI002 ) #New rule: unrecognized-version-info-check ( PYI003 ) #New rule: patch-version-comparison ( PYI004 ) #New rule: wrong-tuple-length-version-comparison ( PYI005 ) #Bug fixes #
5 Impressions