A quick question about the `pyupgrade` plugin: Can...
# general
h
A quick question about the
pyupgrade
plugin: Can I set a different target version on some sections somehow? In my repo, some projects are Python 3.9+, some are 3.10+, and some are 3.11-only. Ideally, I'd like to set a specific Python version per project (or even petter, that the
project.requires-python
of each
pyproject.toml
will be picked-up automatically. Thanks ๐Ÿ™
๐Ÿงต
e
h
Thanks. Looked around in `pyupgrade`'s issues and it looks like the maintainer is against configuration files in general, so it will need to be part of Pants' plugin. I might give it a go at some point... Do you happen to know if Pants has a
pyproject.toml
parsing util I can take a look at? Specifically, I'll need to parse the
python-requires = "..."
part.
e
I think if you have any serious interest you'll be able to answer that for yourself very quickly.
h
Ack