diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b7ee1239..91840a5e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,4 +8,28 @@ repos: args: [] - id: flake8 args: [--config, backend/setup.cfg] - - id: detect-private-key \ No newline at end of file + - id: detect-private-key + + - repo: https://github.com/pre-commit/mirrors-mypy + rev: v1.8.0 # Use the latest version + hooks: + - id: mypy + additional_dependencies: [ + 'types-requests', + 'types-python-dateutil', + 'django-stubs', + 'djangorestframework-stubs', + ] + args: [ + --strict, + --ignore-missing-imports, + --disallow-untyped-defs, + --disallow-incomplete-defs, + --check-untyped-defs, + --disallow-untyped-decorators, + --no-implicit-optional, + --warn-redundant-casts, + --warn-unused-ignores, + --warn-return-any, + --no-implicit-reexport, + ] \ No newline at end of file diff --git a/backend/utils/__init__.py b/backend/utils/__init__.py new file mode 100644 index 00000000..e69de29b