ruff.yml 579 B

123456789101112131415161718192021222324252627282930
  1. name: Linter and code style check
  2. on: [ pull_request ]
  3. permissions:
  4. contents: read
  5. jobs:
  6. ruff:
  7. runs-on: ubuntu-latest
  8. steps:
  9. - name: Checkout repository.
  10. uses: actions/checkout@v4
  11. - name: Setup Python.
  12. uses: actions/setup-python@v4
  13. with:
  14. python-version: 3.8
  15. - name: Run linter check.
  16. uses: chartboost/ruff-action@v1
  17. with:
  18. version: 0.1.6
  19. - name: Run code style check.
  20. uses: chartboost/ruff-action@v1
  21. with:
  22. version: 0.1.6
  23. args: format --check