-
-
Notifications
You must be signed in to change notification settings - Fork 584
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there room to improve options documentation? #1729
Comments
Hi @ucodery, I agree there is a lot of room for improvement here - especially in regards to the option documentation. It is auto generated from the CLI help strings, perhaps the auto generator could provide a way to neatly supplant that auto included information with more details in particular examples? In any case excited for improvements in this area, and would happily approve PRs here!
You're exactly right that the 38 is a leak of the Python environment used to auto generate that part of the documentation. py3 is indeed the default (which is assuming that any version of Python3 could be the target) py38 would only be used if the version was set to auto
This is certainly far from ideal. I suppose with an updated docs page, in an ideal world, we would show examples across the CLI, API, and config file. Needless to say, excited to see any work in this area, and happy to help in any way I can! |
The documentation for
Example pyproject.toml files with non-minimal tools.isort sections:
by combining as many of the above as possible, this is an incomplete but most of the settings:
|
While there is always room for improvement, I think all the major pain points listed in this issue have now been addressed. Thanks for the great suggestions for improvement! |
Wow, these new example fields are so good! Makes it easy to copy/paste most of the way to new behavior. |
The Options page in the documentation seems especially difficult to decipher. Part of this is likely to be because it is generated, as it probably should be at this size. But all the examples, if they can be quite called that, are overly-vague.
When recently setting up a new project I had to go through several iterations of guessing what
py_version
was expecting, it says the default ispy3
but also says that38
is the current value (this looks like a small piece of the build environment escaping into the project?) As a side note the CLI help seems a bit more straightforward on acceptable values to this particular option. I'm still not sure the exact structure of a valid version string is to this field.Also, showing the default value for a setting isn't always the most useful piece of information. Seems like most of these are
frozenset()
but what can go in that frozen set? And what is a frozenset in toml - presumably an array; in cfg?python != toml so displaying defaults in python repr like
False
don't translate well to writing a config file as onlyfalse
will work in pyproject.toml.I realize this is a big effort ask, maybe requiring multiple PRs but if there is interest I would be willing to devote time to this issue.
PS a big kudos to keeping such detailed documentation on this complex a project (html + md is around half the project and almost 1:1 python LoC! 🙌 📖 )
The text was updated successfully, but these errors were encountered: