-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Allow user to specify custom typeshed directory #1588
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
Changes from all commits
5afdb9d
a00b4f6
00f3323
18e61ff
4cd96cd
3ca9253
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -198,6 +198,8 @@ def process_options(args: List[str], | |
help="dump type inference stats") | ||
parser.add_argument('--custom-typing', metavar='MODULE', dest='custom_typing_module', | ||
help="use a custom typing module") | ||
parser.add_argument('--custom-typeshed-dir', metavar='DIR', | ||
help="use the custom typeshed in DIR") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think Jukka had suggested to change this to "custom typeshed package in DIR" ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looking through the old comments, we noted that typeshed wasn't really a package -- that's why I left that out here. |
||
parser.add_argument('--scripts-are-modules', action='store_true', | ||
help="Script x becomes module x instead of __main__") | ||
parser.add_argument('--config-file', | ||
|
@@ -451,6 +453,7 @@ def get_init_file(dir: str) -> Optional[str]: | |
'python_version': lambda s: tuple(map(int, s.split('.'))), | ||
'strict_optional_whitelist': lambda s: s.split(), | ||
'custom_typing_module': str, | ||
'custom_typeshed_dir': str, | ||
'junit_xml': str, | ||
} | ||
|
||
|
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.
Can you also update config_file.rst?
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.
👍