linkedin / pygradle

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

Add an 'isort' & 'black' task. #326

Closed lorencarvalho closed 4 years ago

lorencarvalho commented 4 years ago

This change simply adds a couple additional tasks similar to the MypyTask, but for black and isort.

There's a fair bit of duplicated code (particularly the Extensions), should the shared code be factored into a parent class and just have the three extensions inherit from that? There is probably a java idiom that I'm just not familiar enough with...

lorencarvalho commented 4 years ago

pushed an update that made the extension code reusable per my initial comment

zvezdan commented 4 years ago

Reverting since it conflicts with earlier PRs that are more urgent.