diff --git a/.github/workflows/code-check.yml b/.github/workflows/code-check.yml index 759ebfa992e..e474926b1c2 100644 --- a/.github/workflows/code-check.yml +++ b/.github/workflows/code-check.yml @@ -26,7 +26,3 @@ jobs: uses: pre-commit/action@v2.0.3 with: extra_args: --all-files - - - name: Type check with mypy - run: | - mypy src diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8682406a57b..6c0b401b23a 100755 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -45,3 +45,13 @@ repos: additional_dependencies: - flake8-tidy-imports - flake8-quotes + - repo: local + hooks: + - id: mypy + name: mypy + entry: mypy + language: system + types: [python] + require_serial: true + verbose: true + pass_filenames: false diff --git a/setup.cfg b/setup.cfg index c5c2558a72e..c000a3dd7e5 100755 --- a/setup.cfg +++ b/setup.cfg @@ -57,6 +57,7 @@ firebolt = py.typed plugins = pydantic.mypy disallow_untyped_defs = True show_error_codes = True +files = src/ [pydantic-mypy] warn_required_dynamic_aliases = True