You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627
  1. name: autofix.ci
  2. on:
  3. workflow_call:
  4. pull_request:
  5. push:
  6. branches: [ "main" ]
  7. permissions:
  8. contents: read
  9. jobs:
  10. autofix:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - uses: actions/checkout@v4
  14. # Use uv to ensure we have the same ruff version in CI and locally.
  15. - uses: astral-sh/setup-uv@7edac99f961f18b581bbd960d59d049f04c0002f
  16. - run: |
  17. cd api
  18. uv sync --dev
  19. # Fix lint errors
  20. uv run ruff check --fix-only .
  21. # Format code
  22. uv run ruff format .
  23. - uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27