pypa / pip

The Python package installer
https://pip.pypa.io/
MIT License
9.36k stars 2.98k forks source link

Update ruff to 0.5.0 #12805

Open notatallshaw opened 3 days ago

notatallshaw commented 3 days ago

A large update to ruff was just released: https://astral.sh/blog/ruff-v0.5.0

There was only 1 new rule break, a bare raise in src/pip/_internal/utils/misc.py which looks valid to me so I put a noqa on it.

I also removed target-version from ruff section of the pyproject.toml, as ruff by default reads the requires-python: https://docs.astral.sh/ruff/settings/#target-version out of the pyproject.toml. This redundancy was introduced because when ruff was first added to pip pip did not use pyproject.toml for its build configuration.