Skip to content

Commit

Permalink
add mypy hook to precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
rajdangol0077 committed Jun 28, 2023
1 parent 2dd8233 commit dcba5b6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ repos:
args: ["--config=setup.cfg"]
additional_dependencies: [flake8-isort]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.4.0
hooks:
- id: mypy
args: ["--strict"]
additional_dependencies: [django-stubs, celery, django-environ, django-extensions, django-crispy-forms, crispy-bootstrap5, django-allauth, django-celery-beat, django-treebeard, djangorestframework, djangorestframework-datatables, django-debug-toolbar, psycopg2-binary, python-slugify, xmltodict,PyGithub, boto3, scrapy, types-requests]


# sets up .pre-commit-ci.yaml to ensure pre-commit dependencies stay up to date
ci:
autoupdate_schedule: weekly
Expand Down

0 comments on commit dcba5b6

Please sign in to comment.