Duncan Tourolle 15d8ca8c05
All checks were successful
Lint / lint (push) Successful in 35s
Tests / test (push) Successful in 52s
Fix ci more
2026-06-20 14:54:22 +02:00

31 lines
830 B
YAML

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