pypi ruff 0.0.276
v0.0.276

latest releases: 0.6.8, 0.6.7, 0.6.6...
15 months ago

See the release blog post for more, including detailed descriptions of any newly added rules.

What's Changed

Highlights include: experimental support for linting Jupyter Notebooks.

To opt-in to linting Jupyter Notebook files, add the *.ipynb pattern to your include
setting, like so:

[tool.ruff]
# Allow Ruff to discover `*.ipynb` files.
include = ["*.py", "*.pyi", "**/pyproject.toml", "*.ipynb"]

This will prompt Ruff to discover Jupyter Notebook files in any specified directories, and lint them
accordingly.

Jupyter Notebook support is currently opt-in and experimental. We'd love your help testing it out.
Have feedback? Run into issues? Let us know!

New Rules

  • [flake8-pyi] Implement PYI002, PYI003, PYI004, PYI005 by @density in #5457
  • [numpy] Implement numpy-deprecated-function (NPY003) by @charliermarsh in #5468
  • [perflint] Implement unnecessary-list-cast (PERF101) by @qdegraaf in #5121
  • [perflint] Implement try-except-in-loop (PERF203) by @evanrittenhouse in #5166
  • [perflint] Implement manual-list-comprehension (PERF401) and manual-list-copy (PERF402) rules by @qdegraaf in #5298
  • [pylint] Implement Pylint single-string-used-for-slots (C0205) as single-string-slots (PLC0205) by @tjkuson in #5399

Jupyter

Settings

Bug Fixes

New Contributors

Full Changelog: v0.0.275...v0.0.276

Don't miss a new ruff release

NewReleases is sending notifications on new releases.