-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Add new flag to CLI: --config-file
#11036
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
Conversation
Signed-off-by: Chris Mahoney <[email protected]>
for more information, see https://pre-commit.ci
Signed-off-by: Chris Mahoney <[email protected]>
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.
Hi @chrimaho, thanks for the contribution!
However please check your Git settings, both main.py
and test_config.py
have changed entirely.
it seems like the newline convention was changed, wen setting ignore whitespace it gets down to a reasonable diff please fix the newline convention |
- `main.py` to commit SHA `310b67b` - `test_config.py` to commit SHA `407b330`
Signed-off-by: Chris Mahoney <[email protected]>
Thank you @nicoddemus and @RonnyPfannschmidt. |
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.
LGTM, thanks!
Reminder: we should squash this before merging.
(Small tip @chrimaho: you can add "Fix #11036" to your PR description to automatically close the issue when it gets merged: https://github.blog/2013-05-14-closing-issues-via-pull-requests/). |
Add new flag to CLI:
--config-file
There is already an exiting flag in the CLI for importing a custom config file:
-c
. This change does not change the behaviour of that flag, but simply adds a new flag to execute the same process:--config-file
.This change is also in-line with other large Python packages which use the same behaviour:
--config-file CONFIG_FILE
. See here.--config FILE
. See here.--config-file
#11031