pylint.yml 684 B

123456789101112131415161718192021222324252627282930
  1. name: PyLint
  2. on: [push, pull_request]
  3. jobs:
  4. build:
  5. runs-on: ubuntu-latest
  6. strategy:
  7. matrix:
  8. python-version: [3.8]
  9. steps:
  10. - uses: actions/checkout@v4
  11. - name: Set up Python ${{ matrix.python-version }}
  12. uses: actions/setup-python@v5
  13. with:
  14. python-version: ${{ matrix.python-version }}
  15. - name: Install dependencies
  16. run: |
  17. python -m pip install --upgrade pip
  18. pip install flake8 yapf isort
  19. - name: Lint
  20. run: |
  21. flake8 .
  22. isort --check-only --diff basicsr/ options/ scripts/ tests/ inference/ setup.py
  23. yapf -r -d basicsr/ options/ scripts/ tests/ inference/ setup.py