gradle: cleanup (#30060)
This commit is contained in:
@@ -1,3 +1,13 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
set -e
|
||||
|
||||
# Ensure script always runs from the project directory.
|
||||
cd "$(dirname "${0}")/.." || exit 1
|
||||
|
||||
# TODO change this to include unit_tests as well once it's in a good state
|
||||
{ git diff --name-only --relative ':(exclude)unit_tests'; git diff --name-only --staged --relative ':(exclude)unit_tests'; git diff --name-only master... --relative ':(exclude)unit_tests'; } | grep -E '\.py$' | sort | uniq | xargs .venv/bin/python -m mypy --config-file mypy.ini --install-types --non-interactive
|
||||
{
|
||||
git diff --name-only --relative ':(exclude)unit_tests'
|
||||
git diff --name-only --staged --relative ':(exclude)unit_tests'
|
||||
git diff --name-only master... --relative ':(exclude)unit_tests'
|
||||
} | grep -E '\.py$' | sort | uniq | xargs .venv/bin/python -m mypy --config-file mypy.ini --install-types --non-interactive
|
||||
|
||||
@@ -7,29 +7,19 @@ airbytePython {
|
||||
moduleDirectory 'airbyte_cdk'
|
||||
}
|
||||
|
||||
task generateComponentManifestClassFiles(type: Exec) {
|
||||
tasks.register('generateComponentManifestClassFiles', Exec) {
|
||||
environment 'ROOT_DIR', rootDir.absolutePath
|
||||
commandLine 'bin/generate-component-manifest-files.sh'
|
||||
dependsOn ':tools:code-generator:airbyteDocker'
|
||||
}.configure {
|
||||
dependsOn project(':tools:code-generator').tasks.named('airbyteDocker')
|
||||
}
|
||||
|
||||
task validateSourceYamlManifest(type: Exec) {
|
||||
tasks.register('validateSourceYamlManifest', Exec) {
|
||||
environment 'ROOT_DIR', rootDir.absolutePath
|
||||
commandLine 'bin/validate-yaml-schema.sh'
|
||||
}
|
||||
|
||||
task runLowCodeConnectorUnitTests(type: Exec) {
|
||||
tasks.register('runLowCodeConnectorUnitTests', Exec) {
|
||||
environment 'ROOT_DIR', rootDir.absolutePath
|
||||
commandLine 'bin/low-code-unit-tests.sh'
|
||||
}
|
||||
|
||||
task runMypyOnModifiedFiles(type: Exec) {
|
||||
environment 'ROOT_DIR', rootDir.absolutePath
|
||||
commandLine 'bin/run-mypy-on-modified-files.sh'
|
||||
}
|
||||
|
||||
blackFormat.dependsOn runMypyOnModifiedFiles
|
||||
isortFormat.dependsOn generateComponentManifestClassFiles
|
||||
flakeCheck.dependsOn generateComponentManifestClassFiles
|
||||
installReqs.dependsOn generateComponentManifestClassFiles
|
||||
runMypyOnModifiedFiles.dependsOn generateComponentManifestClassFiles
|
||||
Reference in New Issue
Block a user