Skip to content

Commit

Permalink
Don't run ruff inline
Browse files Browse the repository at this point in the history
  • Loading branch information
pietern committed Jan 16, 2025
1 parent 782733c commit f45b156
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 45 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,6 @@ jobs:
- name: Install uv
uses: astral-sh/setup-uv@887a942a15af3a7626099df99e897a18d9e5ab3a # v5.1.0

- name: Install ruff
uses: astral-sh/ruff-action@31a518504640beb4897d0b9f9e50a2a9196e75ba # v3.0.1
with:
version: "0.9.1"
# Run it against an ~empty directory. We need ruff in $PATH, not run it.
src: ".github"

- name: Set go env
run: |
echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV
Expand Down
9 changes: 0 additions & 9 deletions acceptance/bundle/templates/dbt-sql/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,3 @@ Workspace:
Path: /Workspace/Users/$USERNAME/.bundle/my_dbt_sql/prod

Validation OK!

>>> ruff format --diff
warning: No Python files found under the given path(s)

Exit code: 0

>>> ruff clean

Exit code: 0
3 changes: 0 additions & 3 deletions acceptance/bundle/templates/dbt-sql/script
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,3 @@ trace $CLI bundle init dbt-sql --config-file ./input.json --output-dir output
cd output/my_dbt_sql
trace $CLI bundle validate -t dev
trace $CLI bundle validate -t prod

errcode trace ruff format --diff
errcode trace ruff clean
10 changes: 0 additions & 10 deletions acceptance/bundle/templates/default-python/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,3 @@ Workspace:
Path: /Workspace/Users/$USERNAME/.bundle/my_default_python/prod

Validation OK!

>>> ruff format --diff
7 files already formatted

Exit code: 0

>>> ruff clean
Removing cache at: .ruff_cache

Exit code: 0
3 changes: 0 additions & 3 deletions acceptance/bundle/templates/default-python/script
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,3 @@ trace $CLI bundle init default-python --config-file ./input.json --output-dir ou
cd output/my_default_python
trace $CLI bundle validate -t dev
trace $CLI bundle validate -t prod

errcode trace ruff format --diff
errcode trace ruff clean
10 changes: 0 additions & 10 deletions acceptance/bundle/templates/default-sql/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,3 @@ Workspace:
Path: /Workspace/Users/$USERNAME/.bundle/my_default_sql/prod

Validation OK!

>>> ruff format --diff
error: Failed to parse scratch/exploration.ipynb:1:2:15: Simple statements must be separated by newlines or semicolons

Exit code: 2

>>> ruff clean
Removing cache at: .ruff_cache

Exit code: 0
3 changes: 0 additions & 3 deletions acceptance/bundle/templates/default-sql/script
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,3 @@ trace $CLI bundle init default-sql --config-file ./input.json --output-dir outpu
cd output/my_default_sql
trace $CLI bundle validate -t dev
trace $CLI bundle validate -t prod

errcode trace ruff format --diff
errcode trace ruff clean

0 comments on commit f45b156

Please sign in to comment.