-
Notifications
You must be signed in to change notification settings - Fork 192
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
BBH pipeline: prompt to edit README.md #6454
base: develop
Are you sure you want to change the base?
Conversation
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.
Tests are failing because everything is being p
MaxIts: 100 | ||
Verbosity: Quiet | ||
Verbosity: Silent |
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.
Leave these as quiet. We don't write this information out anywhere else (even though maybe we should) and it's useful to know. Also, it's not affecting performance (that I know of)
"--edit-readme/--no-edit-readme", | ||
default=None, | ||
help=( | ||
"Edit the README file in the pipeline directory or run directory. " | ||
"If not specified, a prompt will ask whether to edit the README." |
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.
I'm not a huge fan of always being prompted for this. I'd like the option, but just not being forced to do it by default. I think this should just be a bool that defaults to false.
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.
Without the prompt there's little point to have the option. The idea is to encourage writing notes into a readme file.
# Edit README | ||
readme = ( | ||
Path(pipeline_dir or segments_dir or run_dir or Path.cwd()) | ||
/ "README.md" | ||
) | ||
if edit_readme or ( | ||
edit_readme is None and click.confirm(f"Edit {readme}?", default=True) | ||
): | ||
click.edit(filename=readme) |
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.
Is there a way to not repeat this or the click option multiple times?
Proposed changes
When starting runs, prompt to edit the README.md file. I hope this helps keeping better track of notes for each run. Can be disabled on the command line.
Upgrade instructions
Code review checklist
make doc
to generate the documentation locally intoBUILD_DIR/docs/html
.Then open
index.html
.code review guide.
bugfix
ornew feature
if appropriate.Further comments