linting.yml 515 B

1234567891011121314151617181920212223
  1. name: Linting
  2. on: [push, pull_request]
  3. jobs:
  4. lint:
  5. runs-on: ubuntu-latest
  6. steps:
  7. - uses: actions/checkout@v3
  8. - name: Setup Python
  9. uses: actions/setup-python@v4
  10. with:
  11. python-version: '3.10'
  12. - name: Install dependencies
  13. run: |
  14. python -m pip install --upgrade pip
  15. pip install -r requirements-dev.txt
  16. - name: isort
  17. run: isort --recursive --diff .
  18. - name: Black
  19. run: black --check .