Skip to content
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

Refactor run.py with DEFAULT_SETTINGS & simple error exits #893

Merged
merged 3 commits into from
Jan 27, 2021

Conversation

neiljp
Copy link
Collaborator

@neiljp neiljp commented Jan 27, 2021

This is the first part of #841 with some extra work and a few other commits first to help application of that refactor, and to extract DEFAULT_SETTINGS into a central place.

@Abhirup-99 Happy to take feedback :)

This is mostly a refactor, but also updates the help text for the
color-depth and theme.
@zulipbot zulipbot added the size: XL [Automatic label added by zulipbot] label Jan 27, 2021
@neiljp neiljp marked this pull request as ready for review January 27, 2021 16:34
@neiljp neiljp force-pushed the 2021-01-26-simplify-run-with-841-pt1 branch 2 times, most recently from 0bbe9f7 to 0bac50e Compare January 27, 2021 23:44
Errors are now specified as:
* the main error string (to be styled red)
* an optional extra text (unstyled, default empty string)
* an optional error code (default 1)

This is mostly a refactor, but some behavior without fixed tests is
improved with regard to newlines and text.

Tests added.

Co-authored-by: neiljp (Neil Pilgrim) <github@kepier.clara.net>
@neiljp neiljp force-pushed the 2021-01-26-simplify-run-with-841-pt1 branch from 0bac50e to 5b558ad Compare January 27, 2021 23:54
@neiljp neiljp merged commit 0b88ecb into zulip:master Jan 27, 2021
@neiljp
Copy link
Collaborator Author

neiljp commented Jan 27, 2021

@Abhirup-99 Thanks for your initial work on that commit - good motivation to get this file more organized 👍

@neiljp neiljp added this to the Next Release milestone Jan 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: XL [Automatic label added by zulipbot]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants