add isort to format (#2085)
* add isort to format * create airbytePythonFormat step
This commit is contained in:
@@ -218,7 +218,7 @@ task('generate') {
|
||||
task('format') {
|
||||
dependsOn generate
|
||||
dependsOn spotlessApply
|
||||
dependsOn subprojects.collect { it.getTasksByName('blackFormat', true) }
|
||||
dependsOn subprojects.collect { it.getTasksByName('airbytePythonFormat', true) }
|
||||
}
|
||||
|
||||
// produce reproducible archives
|
||||
|
||||
@@ -90,13 +90,17 @@ class AirbytePythonPlugin implements Plugin<Project> {
|
||||
project.check.dependsOn mypyCheck
|
||||
}
|
||||
|
||||
project.task('airbytePythonApply', type: DefaultTask) {
|
||||
dependsOn project.installReqs
|
||||
project.task('airbytePythonFormat', type: DefaultTask) {
|
||||
dependsOn project.blackFormat
|
||||
dependsOn project.isortFormat
|
||||
dependsOn project.flakeCheck
|
||||
}
|
||||
|
||||
project.task('airbytePythonApply', type: DefaultTask) {
|
||||
dependsOn project.installReqs
|
||||
dependsOn project.airbytePythonFormat
|
||||
}
|
||||
|
||||
|
||||
project.task('airbytePythonTest', type: DefaultTask) {
|
||||
dependsOn project.airbytePythonApply
|
||||
|
||||
Reference in New Issue
Block a user