-
Notifications
You must be signed in to change notification settings - Fork 1
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
Make providers configurable, add config file for easier configuration #15
Conversation
In general LGTM, although I agree that a config file would be helpful with such an amount of options. |
def parse_config(file_path: str): | ||
with open(file_path, "r") as file: # letting it crash if this fails | ||
content = file.read() | ||
return parse_json_to_providers(content) |
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 suppose I could add some custom error handling here, but we want to let it crash anyways, so didn't seem useful
Added a json config file, moved provider, max_rpm and credentials configuration there |
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
Allowing the user to easily configure which providers should be compared to TravelTime.