linkedin / pygradle

Using Gradle to build Python projects
https://github.com/linkedin/pygradle
Apache License 2.0
586 stars 147 forks source link

Refactor MypyTask and MypyExtension for local customizations #311

Closed warsaw closed 5 years ago

warsaw commented 5 years ago

If and when https://github.com/python/mypy/pull/7219 lands, we will have the ability to tell mypy to traverse into PEP 420 namespace packages. In order to preserve backward compatibility, the MypyExtension now allows clients to set the mypy command line arguments, but if they don't it will use the old command line of just passing the source directory.

warsaw commented 5 years ago

Upstream mypy has accepted and merged my changes. In preparation for the next release, this is branch is ready for review.