pylint.yml 716 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@v2
  11. - name: Set up Python ${{ matrix.python-version }}
  12. uses: actions/setup-python@v2
  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. # modify the folders accordingly
  20. - name: Lint
  21. run: |
  22. flake8 .
  23. isort --check-only --diff realesrgan/ scripts/ inference_realesrgan.py setup.py
  24. yapf -r -d realesrgan/ scripts/ inference_realesrgan.py setup.py