-
Notifications
You must be signed in to change notification settings - Fork 173
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
Allow specifying multiple paths as positional arguments #61
Comments
My investigation so far makes me think that the command line config settings already support multiple positional input paths, since prospector is passing positional = (
('checkpath', {
'help': 'The path to a Python project to inspect. Defaults to PWD'
' if not specified.',
'metavar': 'PATH',
'nargs': '*',
}) I think the key is that currently prospector only uses the first path in the list of paths: # Make it so
prospector = Prospector(config, paths[0])
prospector.execute()
prospector.print_messages() and The solution seems to be either:
|
Opened #78 for this issue. |
I merged in #78 and you can now run prospector with
It will output all messages together followed by a summary. It's sort of equivalent to saying |
This is related to #56. It would be easier to wrap prospector in other tools (such as a git commit hook) if it could accept more than one path at a time.
I'm interested in implementing this myself and submitting it as a pull request, but I wouldn't mind if someone else with more free time does it instead.
The text was updated successfully, but these errors were encountered: