linters.yml 902 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. name: Linters
  2. on:
  3. pull_request:
  4. push:
  5. branches:
  6. - main
  7. jobs:
  8. flake8:
  9. name: flake8
  10. runs-on: ubuntu-latest
  11. steps:
  12. - name: Checkout
  13. uses: actions/checkout@v2
  14. - name: Set up Python
  15. uses: actions/setup-python@v2
  16. with:
  17. python-version: 3.9
  18. - run: python -m pip install flake8
  19. - name: flake8
  20. uses: liskin/gh-problem-matcher-wrap@v1
  21. with:
  22. linters: flake8
  23. run: flake8
  24. isort:
  25. runs-on: ubuntu-latest
  26. steps:
  27. - name: Checkout
  28. uses: actions/checkout@v2
  29. - name: Set up Python
  30. uses: actions/setup-python@v2
  31. with:
  32. python-version: 3.9
  33. - run: python -m pip install isort
  34. - name: isort
  35. uses: liskin/gh-problem-matcher-wrap@v1
  36. with:
  37. linters: isort
  38. run: isort --check --diff django tests scripts