Skip to content

Commit ac1d098

Browse files
johubertjjmayclin
andauthored
Ruff Formatting and add to CI (#5138)
Co-authored-by: James Mayclin <[email protected]>
1 parent a694bee commit ac1d098

35 files changed

+2633
-1398
lines changed

.github/workflows/ci_linting.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,20 +74,25 @@ jobs:
7474
run: |
7575
./codebuild/bin/run_kwstyle.sh
7676
./codebuild/bin/cpp_style_comment_linter.sh
77-
pepeight:
77+
ruff:
7878
runs-on: ubuntu-latest
7979
steps:
8080
- name: checkout
8181
uses: actions/checkout@v4
82-
- name: Run autopep8
83-
id: autopep8
84-
uses: peter-evans/autopep8@v2
85-
with:
86-
args: --diff --exit-code .
82+
83+
- name: Set up uv
84+
uses: astral-sh/setup-uv@v5
85+
86+
- name: Run Ruff formatting check
87+
working-directory: tests/integrationv2
88+
id: ruff_format
89+
run: uv run ruff format --check .
90+
continue-on-error: true
91+
8792
- name: Check exit code
88-
if: steps.autopep8.outputs.exit-code != 0
93+
if: steps.ruff_format.outcome == 'failure'
8994
run: |
90-
echo "Run 'autopep8 --in-place .' to fix"
95+
echo "Run 'ruff format .' to fix formatting issues"
9196
exit 1
9297
clang-format:
9398
runs-on: ubuntu-latest

.pep8

Lines changed: 0 additions & 3 deletions
This file was deleted.

tests/integrationv2/common.py

Lines changed: 369 additions & 170 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)