pypa / setuptools

Official project repository for the Setuptools build system
https://pypi.org/project/setuptools/
MIT License
2.54k stars 1.19k forks source link

Remove unused vars or mark them explicitly #4724

Closed abravalheri closed 3 weeks ago

abravalheri commented 3 weeks ago

Summary of changes

As a response to @Avasam's comment in https://github.com/pypa/setuptools/pull/4721#issuecomment-2449896724, I split the changes regarding unused variables into a separated PR.

(Since I had to do some manual intervention on top of the ruff fixes, I thought that I should make it available, but I am happy to simply close the PR as well if we don't want to go that direction).

Closes

Pull Request Checklist

[PR docs]: https://setuptools.pypa.io/en/latest/development/developer-guide.html#making-a-pull-request