[Docs Request]: `python_version` when unspecified
jamesbraza opened this issue · 2 comments
jamesbraza commented
Overview
python_version
shows up in the docs in a few places:
- https://github.com/dosisod/refurb/blob/v1.22.1/docs/configs/default.toml#L9
- https://github.com/dosisod/refurb/blob/v1.22.1/docs/configs/reference.toml#L25
- https://github.com/dosisod/refurb/tree/v1.22.1#setting-python-version
It would be good to document what version it will use, when unspecified.
Proposal
It would be nice if the defaults for python_version
would fall back on:
- Match the current interpreter's version
.python-version
from pyenv (like GitHubactions/setup-python
does)project.requires-python
inpyproject.toml
dosisod commented
Thank you for opening this! When unspecified, Refurb uses the current interpreter version. Refurb does not look at the .python-version
or pyproject.toml
files for versions, though having an option to do this could be useful.
I'll update the docs to reflect the current behavior, and look into adding a flag to default to the min version in pyproject.toml
/.python-version
in the future.
dosisod commented
Thank you @jamesbraza for opening this!