-
Notifications
You must be signed in to change notification settings - Fork 38
Adds log file test fix and extends blacklist to allows for single files #79
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
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.
Thanks! Much easier to look over.
I just have one request and then this is good to be merged.
html5validator/cli.py
Outdated
args = parse_yaml(args.config, args) | ||
LOGGER.debug(args) | ||
args, extra_args = parse_yaml(args.config, args) | ||
LOGGER.debug(args, extra_args) |
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.
Don't you need a format string as the first argument?
At this point, logging is also not configured yet. Maybe remove.
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 removed the logging here. Don't know what you refer to with format string and the first argument in the path to the config file.
@@ -90,8 +93,8 @@ def main(): | |||
args, extra_args = parser.parse_known_args() | |||
|
|||
if args.config is not None: | |||
args = parse_yaml(args.config, args) | |||
LOGGER.debug(args) | |||
args, extra_args = parse_yaml(args.config, args) |
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 didn't realize this before, but overwriting all command line arguments is really not great. A config file should serve as a default that can be overridden by command line args. A todo item for later.
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.
The issue with this is that most command-line arguments have a default so we would need to have a list of what the default arguments are to compare to what was passed.
Thanks! |
Much cleaner of #75