Skip to content
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

Command line option to read list of files to check from a file #1476

Closed
gvanrossum opened this issue May 4, 2016 · 4 comments
Closed

Command line option to read list of files to check from a file #1476

gvanrossum opened this issue May 4, 2016 · 4 comments
Labels

Comments

@gvanrossum
Copy link
Member

This would be handy when you have a truly long list of files, possibly containing spaces, produced by a shell pipeline (e.g. FILES=$(find . -name '*.py' --print0 | xargs -0 grep -l '# type:')).

@ilevkivskyi
Copy link
Member

This request appeared few times again at PyCon, so I am raising priority to high.

@JukkaL
Copy link
Collaborator

JukkaL commented May 18, 2018

You can already do things like mypy @files.txt which seems to be good enough.

@ilevkivskyi
Copy link
Member

OK, so we can close this.

@Herst
Copy link
Contributor

Herst commented May 19, 2018

For completeness sake and in case someone comes across this thread here, in bash the example from the original post then should be able to be made into the following one-liner using process substitution:

mypy @f<(find . -name '*.py' --print0 | xargs -0 grep -l '# type:')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants