Skip to content

Commit

Permalink
django mypy type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
Archmonger committed Sep 19, 2022
1 parent 2ee4b6c commit 96f4ceb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
11 changes: 11 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,14 @@ extend-exclude = 'migrations'
[tool.isort]
profile = 'black'
skip = 'migrations'

[tool.mypy]
exclude = [
'conreq/templates/.*',
'migrations/.*',
]
ignore_missing_imports = true
plugins = ["mypy_django_plugin.main"]

[tool.django-stubs]
django_settings_module = 'conreq.settings'
4 changes: 3 additions & 1 deletion requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ black
flake8
flake8-django
pylint
pylint_django
pylint-django
rope
twine
django-stubs[compatible-mypy]
types-requests
types-tzlocal

0 comments on commit 96f4ceb

Please sign in to comment.