diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b3950100..cae9888f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -27,20 +27,6 @@ repos: args: ['-i'] additional_dependencies: ['toml'] -- repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.991 - hooks: - - id: mypy - args: [--config-file=pyproject.toml] - additional_dependencies: [ - 'toml', - 'types-pyyaml', - ] - files: > - (?x)^( - src/plumpy/.*py| - )$ - - repo: https://github.com/PyCQA/pylint rev: v2.15.8 hooks: @@ -51,3 +37,18 @@ repos: docs/source/conf.py| test/.*| )$ + +- repo: local + hooks: + - id: mypy + name: mypy + entry: mypy + args: [--config-file=pyproject.toml] + language: python + types: [python] + require_serial: true + pass_filenames: true + files: >- + (?x)^( + src/.*py| + )$ diff --git a/pyproject.toml b/pyproject.toml index b3ba0c88..f8c79b15 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,7 +51,7 @@ docs = [ 'importlib-metadata~=4.12.0', ] pre-commit = [ - 'mypy==0.991', + 'mypy==1.3.0', 'pre-commit~=2.2', 'pylint==2.15.8', 'types-pyyaml' @@ -91,6 +91,11 @@ show_error_codes = true strict = true # reduce stricness, eventually these should be removed disallow_any_generics = false +disallow_untyped_defs = true +disallow_incomplete_defs = true +check_untyped_defs = true +warn_unused_ignores = true +warn_redundant_casts = true warn_return_any = false [[tool.mypy.overrides]] @@ -101,6 +106,7 @@ check_untyped_defs = false module = [ 'aio_pika.*', 'aiocontextvars.*', + 'frozendict.*', 'kiwipy.*', 'nest_asyncio.*', 'tblib.*',