name: Lint on: [push, pull_request] jobs: lint: runs-on: linux/amd64 container: image: gitea.tourolle.paris/dtourolle/pyphotoalbum-ci:latest steps: - name: Checkout code uses: actions/checkout@v3 - name: Run flake8 run: | # Stop the build if there are Python syntax errors or undefined names flake8 pyPhotoAlbum --count --select=E9,F63,F7,F82 --show-source --statistics # Exit-zero treats all errors as warnings flake8 pyPhotoAlbum --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - name: Check formatting with black run: | black --check pyPhotoAlbum continue-on-error: true - name: Type check with mypy run: | mypy pyPhotoAlbum --ignore-missing-imports continue-on-error: true