Skip to content

Commit

Permalink
Add django and rest framewort type stubs
Browse files Browse the repository at this point in the history
as test requirements for easier development
  • Loading branch information
gregorjerse committed Apr 15, 2024
1 parent 29eb73a commit d599238
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,10 @@ build-backend = "setuptools.build_meta"

[tool.black]
target-version = ["py36", "py37", "py38", "py39", "py310", "py311"]

[tool.mypy]
plugins = ["mypy_django_plugin.main", "mypy_drf_plugin.main"]
check_untyped_defs = true

[tool.django-stubs]
django_settings_module = "tests.settings"
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@
"package": ["twine", "wheel"],
"test": [
"black==24.1.0",
"django-stubs>=4.2.4",
"django-filter-stubs>=0.1.3",
"djangorestframework-stubs[compatible-mypy]>=3.14.0",
"daphne",
"flake8>=6.0.0",
"isort>=5.12.0",
Expand Down

0 comments on commit d599238

Please sign in to comment.