Skip to content

Commit

Permalink
fix gradle commands
Browse files Browse the repository at this point in the history
  • Loading branch information
anshbansal committed Jan 18, 2025
1 parent 71a77a4 commit 7628ec8
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
3 changes: 2 additions & 1 deletion metadata-ingestion-modules/airflow-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ task lint(type: Exec, dependsOn: installDev) {
task lintFix(type: Exec, dependsOn: installDev) {
commandLine 'bash', '-c',
"source ${venv_name}/bin/activate && set -x && " +
"ruff check --fix src/ tests/"
"ruff check --fix src/ tests/ && " +
"ruff format src/ tests/ && " +
"mypy src/ tests/ "
}

Expand Down
1 change: 1 addition & 0 deletions metadata-ingestion-modules/dagster-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ task lintFix(type: Exec, dependsOn: installDev) {
commandLine 'bash', '-x', '-c',
"source ${venv_name}/bin/activate && " +
"ruff check --fix src/ tests/ examples/ && " +
"ruff format src/ tests/ examples/ && " +
"mypy src/ tests/ examples/"
}

Expand Down
3 changes: 2 additions & 1 deletion metadata-ingestion-modules/gx-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ task lint(type: Exec, dependsOn: installDev) {
task lintFix(type: Exec, dependsOn: installDev) {
commandLine 'bash', '-x', '-c',
"source ${venv_name}/bin/activate && " +
"ruff check --fix src/ tests/"
"ruff check --fix src/ tests/ && " +
"ruff format src/ tests/ examples/ && " +
"mypy src/ tests/"
}

Expand Down
5 changes: 3 additions & 2 deletions metadata-ingestion-modules/prefect-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ task lint(type: Exec, dependsOn: installDev) {
task lintFix(type: Exec, dependsOn: installDev) {
commandLine 'bash', '-x', '-c',
"source ${venv_name}/bin/activate && " +
"ruff check --fix src/ tests/"
"mypy src/ tests/ "
"ruff check --fix src/ tests/ && " +
"ruff format src/ tests/ examples/ && " +
"mypy src/ tests/ examples/ "
}

task installDevTest(type: Exec, dependsOn: [installDev]) {
Expand Down
3 changes: 2 additions & 1 deletion metadata-ingestion/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ task lint(type: Exec, dependsOn: installDev) {
task lintFix(type: Exec, dependsOn: installDev) {
commandLine 'bash', '-c',
"source ${venv_name}/bin/activate && set -x && " +
"ruff check --fix src/ tests/ examples/"
"ruff check --fix src/ tests/ examples/ && " +
"ruff format src/ tests/ examples/ "
}

def pytest_default_env = "PYTHONDEVMODE=1"
Expand Down
3 changes: 2 additions & 1 deletion smoke-test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ task pythonLintFix(type: Exec, dependsOn: installDev) {
"source ${venv_name}/bin/activate && set -x && " +
"black tests/ && " +
"ruff check --fix tests/ && " +
"mypy tests/"
"ruff format src/ tests/ && " +
"mypy src/ tests/"
}

/**
Expand Down

0 comments on commit 7628ec8

Please sign in to comment.