From 9c2f822e1ed94dce96ff6b669a56b65e463105fa Mon Sep 17 00:00:00 2001 From: collerek Date: Wed, 9 Jun 2021 12:13:54 +0200 Subject: [PATCH] add missing types stubs for deps --- .github/workflows/test-package.yml | 2 +- Makefile | 2 +- requirements.txt | 10 +++++++++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-package.yml b/.github/workflows/test-package.yml index df50003..6895214 100644 --- a/.github/workflows/test-package.yml +++ b/.github/workflows/test-package.yml @@ -64,7 +64,7 @@ jobs: env: DATABASE_URL: "sqlite:///testsuite" run: bash scripts/test.sh - - run: mypy --config-file mypy.ini ormar tests + - run: mypy --config-file mypy.ini --install-types ormar tests mypy - name: Upload coverage uses: codecov/codecov-action@v1 - name: Test & publish code coverage diff --git a/Makefile b/Makefile index d560198..6f0ec91 100644 --- a/Makefile +++ b/Makefile @@ -28,4 +28,4 @@ black: black ormar tests mypy: - mypy ormar tests \ No newline at end of file + mypy --config-file mypy.ini --install-types ormar tests \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index d37e631..92b231d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -19,7 +19,6 @@ psycopg2-binary mysqlclient # Testing -mypy pytest pytest-cov codecov @@ -37,6 +36,15 @@ flake8-cognitive-complexity flake8-functions flake8-expression-complexity +# types +mypy +types-ujson +types-PyMySQL +types-ipaddress +types-enum34 +types-cryptography +types-orjson + # Documantation mkdocs mkdocs-material