pypa / twine

Utilities for interacting with PyPI
https://twine.readthedocs.io/
Apache License 2.0
1.59k stars 305 forks source link

Prefer ruff to black #1132

Closed jaraco closed 2 months ago

jaraco commented 2 months ago

Is there an existing issue for this?

What keywords did you use to search existing issues?

I spent the last two days working through twine issues and didn't see it

Please describe why your using this option

In my other projects, I've recently switched from black to ruff and it's been a real quality of life improvement with few exceptions. Better performance, better style choices, etc. Around the same time, I also switched from flake8 to ruff for similar reasons.

One exception is that the plugin for my editor no longer can tell when I'm not working in a project that's configured for ruff, so unconditionally autoformats code on save. This has been a hassle for me when working on twine, because my editor will save using ruff formatting, then I need to re-run tox -e format to undo the unrelated changes made to the style.

It would be nice if twine could adopt ruff too so that the rules/checks could be defined in a ruff.toml or pyproject.toml for twine and the code would match that expectation.

Would this project consider the switch?

Anything else you'd like to mention?

No response

sigmavirus24 commented 2 months ago

No. I'm good as the only person here year round.