1
0
mirror of synced 2025-12-25 02:09:19 -05:00

gradle: cleanup (#30060)

This commit is contained in:
Marius Posta
2023-09-05 12:05:40 -07:00
committed by GitHub
parent 4e7c70f767
commit be1e1adabd
48 changed files with 571 additions and 785 deletions

View File

@@ -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

View File

@@ -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