Skip to content

Allow mypy to be run against a directory recursively #838

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

Closed
kylec1 opened this issue Aug 20, 2015 · 5 comments
Closed

Allow mypy to be run against a directory recursively #838

kylec1 opened this issue Aug 20, 2015 · 5 comments
Labels

Comments

@kylec1
Copy link
Contributor

kylec1 commented Aug 20, 2015

It'd be useful to be able to run mypy on a whole project (or a subset of one) by just pointing it at a directory, and that can probably be done more efficiently than checking each module or file individually, as type information from dependencies could be shared.

@JukkaL JukkaL added the feature label Aug 20, 2015
@JukkaL
Copy link
Collaborator

JukkaL commented Aug 20, 2015

Yeah, this would be pretty useful.

@o11c
Copy link
Contributor

o11c commented Aug 24, 2015

On my driver branch you can badly work around this with mypy -c 'import foo, foo.bar, foo.baz' (listing all). It shouldn't be hard to add a new flag that generates a -c.

But (and this is critical) note that this will allow certain import-order-related bugs to go undiagnosed. Mypy had several bugs in this regard, this why my driver PR typechecks each module individually.

@alunduil
Copy link
Contributor

Is this being deprecated in favour of #935 ?

@JukkaL
Copy link
Collaborator

JukkaL commented Oct 30, 2015

#935 covers a superset of this issue, so this is no longer relevant. We may still support running against a whole directory, but we've discussed that in the context of #935.

@JukkaL JukkaL closed this as completed Oct 30, 2015
@gvanrossum
Copy link
Member

(The fix for #935 also adds support for this.)

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

5 participants