-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Create a path type of argument that automatically expand user/var #6494
Create a path type of argument that automatically expand user/var #6494
Conversation
pylint/config/argument.py
Outdated
# We'd need to distinguish between input path that should exist and output path that do not | ||
# if not os.path.exists(value): | ||
# raise argparse.ArgumentTypeError(f"'{value}' is not a valid path is does not exists.") |
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.
@DanielNoord what do you think, is it worth it ?
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.
Probably not, as I can imagine we might also want to use this as an output
path at some point. So then it not existing is not a problem.
I think the OSError
should probably be caught in the checkers themselves.
Pull Request Test Coverage Report for Build 2263887299
💛 - Coveralls |
Co-authored-by: Daniël van Noord <[email protected]>
Type of Changes
Description
Refactor prior to #6493, permitted by the migration to argparse. It could permit to expanduser in various pylint configuration / options, so it's a feature.