Selaa lähdekoodia

add autofix (#22785)

tags/1.7.1
Asuka Minato 3 kuukautta sitten
vanhempi
commit
bb33335dd4
No account linked to committer's email address
1 muutettua tiedostoa jossa 27 lisäystä ja 0 poistoa
  1. 27
    0
      .github/workflows/autofix.yml

+ 27
- 0
.github/workflows/autofix.yml Näytä tiedosto

@@ -0,0 +1,27 @@
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
- run: |
cd api
uv sync --dev
# Fix lint errors
uv run ruff check --fix-only .
# Format code
uv run ruff format .

- uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27


Loading…
Peruuta
Tallenna