astral-sh / astral-sh/ruff

Mention minimal Python version in Ruff rules

Open
#17,531 1 comment 0 reactions 0 assignees View on GitHub
documentation
Dominant language
Rust
Stars
49.6k
Forks
2.4k
Avg merge
1d 21h
Merged PRs (30d)
435

Description

The documentation for Ruff rules should mention the required minimal python version to be enabled, if there is one.

I was scratching my head for a bit about why suddenly after adding `uv` to my project I started getting [B905](https://docs.astral.sh/ruff/rules/zip-without-explicit-strict/) warnings which weren't there before, until i found the answer in [this comment](https://github.com/astral-sh/ruff/issues/4102#issuecomment-1851048379).

Contributor guide

Open the contributing guide

Research direction

Start with the B905 rule page linked in the issue and compare it with the comment explaining why adding uv changed the warnings. Review the Ruff rules documentation structure to find where a minimum Python version is represented. Done means affected rule documentation clearly states the required minimum Python version, when one exists.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.