Skip to content

Commit

Permalink
🚀 add mypy to pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleyzhang01 committed Nov 5, 2024
1 parent 1d2d912 commit 3f5fd46
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,28 @@ repos:
args: []
- id: flake8
args: [--config, backend/setup.cfg]
- id: detect-private-key
- 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,
]
Empty file added backend/utils/__init__.py
Empty file.

0 comments on commit 3f5fd46

Please sign in to comment.