Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add type safety and type hinting #317

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
💔 take out mypy for now
ashleyzhang01 committed Nov 7, 2024
commit 0df328170ffa5206b3209d2ae5451c0d5c957a79
24 changes: 0 additions & 24 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -9,27 +9,3 @@ repos:
- id: flake8
args: [--config, backend/setup.cfg]
- 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,
]