From e3b0eb96aaf7e04c5c36c579111e35cd738ea10a Mon Sep 17 00:00:00 2001 From: Asuka Minato Date: Tue, 22 Jul 2025 18:18:50 +0900 Subject: [PATCH] add autofix --- .github/workflows/autofix.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/autofix.yml diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml new file mode 100644 index 0000000000..d864f287bd --- /dev/null +++ b/.github/workflows/autofix.yml @@ -0,0 +1,24 @@ +name: autofix.ci +on: + workflow_call: + pull_request: + push: + branches: [ "main" ] +permissions: + contents: read + +jobs: + autofix: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + # Use uv to ensure we have the same ruff version in CI and locally. + - uses: astral-sh/setup-uv@7edac99f961f18b581bbd960d59d049f04c0002f + # Fix lint errors + - run: uv run ruff check --fix-only . + # Format code + - run: uv run ruff format . + + - uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27 +