Skip to content

Commit

Permalink
add isort to format (airbytehq#2085)
Browse files Browse the repository at this point in the history
* add isort to format

* create airbytePythonFormat step
  • Loading branch information
jrhizor authored Feb 16, 2021
1 parent 020ddc8 commit 6a78cc3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 6 additions & 2 deletions buildSrc/src/main/groovy/airbyte-python.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6a78cc3

Please sign in to comment.