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.
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 anoqa
on it.I also removed
target-version
from ruff section of thepyproject.toml
, as ruff by default reads therequires-python
: https://docs.astral.sh/ruff/settings/#target-version out of thepyproject.toml
. This redundancy was introduced because when ruff was first added to pip pip did not usepyproject.toml
for its build configuration.