Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ruff): apply formatting and integrate into CI #5138

Merged
merged 25 commits into from
Feb 26, 2025
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
8e80fc4
all ruff formatting changes
johubertj Feb 20, 2025
57ed2c4
changed linting from pepeight to ruff
johubertj Feb 20, 2025
ddefc14
edited yml file to use uv
johubertj Feb 20, 2025
228af19
removed installing ruff and just use uv command
johubertj Feb 21, 2025
a2a36ce
merged main back into this branch
johubertj Feb 21, 2025
ace4eb6
Merge branch 'main' into test/integv2-formatting-ruff
johubertj Feb 21, 2025
eb1295f
added ruff dependencies
johubertj Feb 21, 2025
938a762
run ruff in a specific directory
johubertj Feb 21, 2025
5aa745d
test w/ pip
johubertj Feb 22, 2025
eb6e8d7
testing
johubertj Feb 22, 2025
80401ee
testing remove pip
johubertj Feb 22, 2025
1ef30f0
added back installing dependecies
johubertj Feb 22, 2025
42f51f0
neater run and name
johubertj Feb 22, 2025
c26a2c9
removed pip install and added working directory
johubertj Feb 22, 2025
e242187
moved working directory to first command
johubertj Feb 22, 2025
d22204f
install dependencies w/o pip
johubertj Feb 24, 2025
f18741d
Using uv add to install packages
johubertj Feb 24, 2025
557ed72
using add + pyproject.toml
johubertj Feb 24, 2025
8b8c6f0
using uvx to run as tool
johubertj Feb 24, 2025
8ffb20e
remove ruff as a dependency
johubertj Feb 24, 2025
e08c0f7
using uv add and then uv run
johubertj Feb 24, 2025
b968dbe
changes from main
johubertj Feb 24, 2025
09059d6
installing ruff through ci_linting.yml
johubertj Feb 25, 2025
f67fb25
removed .pep8 file
johubertj Feb 25, 2025
552513b
Merge branch 'main' into test/integv2-formatting-ruff
jmayclin Feb 26, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions .github/workflows/ci_linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,20 +74,23 @@ jobs:
run: |
./codebuild/bin/run_kwstyle.sh
./codebuild/bin/cpp_style_comment_linter.sh
pepeight:
ruff:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: Run autopep8
id: autopep8
uses: peter-evans/autopep8@v2
with:
args: --diff --exit-code .
- name: Set up uv
uses: astral-sh/setup-uv@v5
- name: Install Ruff
run: uv pip install ruff
- name: Run Ruff formatting check
id: ruff_format
run: ruff format --check .
continue-on-error: true
- name: Check exit code
if: steps.autopep8.outputs.exit-code != 0
if: steps.ruff_format.outcome == 'failure'
run: |
echo "Run 'autopep8 --in-place .' to fix"
echo "Run 'ruff format .' to fix formatting issues"
exit 1
clang-format:
runs-on: ubuntu-latest
Expand Down
539 changes: 369 additions & 170 deletions tests/integrationv2/common.py

Large diffs are not rendered by default.

Loading