From 04de0d6b8285e2812cef19ef312a43979b1fef96 Mon Sep 17 00:00:00 2001 From: Ricardo Branco Date: Sun, 13 Aug 2023 08:41:36 +0200 Subject: [PATCH] Add mypy --- .github/workflows/ci.yml | 3 +++ Makefile | 8 ++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b75ba1b..01ec4fb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,6 +28,9 @@ jobs: - name: pytest run: | make pytest + - name: mypy + run: | + make mypy e2e: runs-on: ubuntu-latest steps: diff --git a/Makefile b/Makefile index 8109e27..7025645 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ FILES=*.py .PHONY: all -all: flake8 pylint pytest +all: flake8 pylint pytest mypy .PHONY: flake8 flake8: @@ -9,12 +9,16 @@ flake8: .PHONY: pylint pylint: - @PYTHONPATH=clean_registry/ pylint --disable=line-too-long $(FILES) + @pylint --disable=line-too-long $(FILES) .PHONY: pytest pytest: @pytest -v +.PHONY: mypy +mypy: + @mypy . + .PHONY: e2e e2e: @bash tests/e2e.sh