From e7c89288dbe78ea0fbd7aacf7d475069aa131346 Mon Sep 17 00:00:00 2001 From: Debasish Pal <48341250+debpal@users.noreply.github.com> Date: Tue, 10 Sep 2024 22:54:45 +0300 Subject: [PATCH] GitHub actions with mypy --- .github/workflows/python-package.yml | 5 ++++- requirements.txt | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index d862504..e78497f 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -29,10 +29,13 @@ jobs: - name: Lint with flake8 run: | - # Run flake8 for code linting flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Type check with mypy + run: | + mypy BharatFinTrack + - name: Test with pytest run: | export PYTHONPATH=$(pwd) diff --git a/requirements.txt b/requirements.txt index a5f3bab..c532f42 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,7 @@ pytest pytest-cov flake8 +mypy