-
Notifications
You must be signed in to change notification settings - Fork 89
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
Adding descriptions to two settings #1733
Conversation
armi/bookkeeping/mainInterface.py
Outdated
- List of files to copy (cannot be directories). | ||
- Can be of length zero (that just means no files will be copied). | ||
- The file names listed can use the ``*`` glob syntax, to reference multiple files. | ||
|
||
|
||
``CONF_COPY_FILES_TO`` : | ||
|
||
- List of directories to copy the files into. | ||
- Can be of length zero; all files will be copied to the local dir. | ||
- Can be of length one; all files will be copied to that dir. | ||
- The only other valid length for this list _must_ be the same length as the "from" list. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is all really useful context for a user. Unfortunately users won't typically see this info because it is in the docstring of a private method. Is there a better place to put this that will make it user-facing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm... I can' think of where else it would belong.
What is the change?
Adding descriptions to two settings:
CONF_COPY_FILES_FROM
andCONF_COPY_FILES_TO
.Also, while I was at it, this work let me to:
MainInterface._moveFiles()
DeprecationWarning
that soon settings will require descriptions (same as with parameters).Why is the change being made?
To close #1727
These two settings are slightly complicated, and interact heavily, so they should have descriptions that explain their use.
Checklist
doc
folder.pyproject.toml
.