Skip to content

Commit

Permalink
requirements: Add django-stubs and configure plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
PIG208 committed Jun 11, 2021
1 parent eeebebb commit f8b960d
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 1 deletion.
6 changes: 6 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,9 @@ ignore_missing_imports = True

# Warn of unreachable or redundant code.
warn_unreachable = True

plugins =
mypy_django_plugin.main

[mypy.plugins.django-stubs]
django_settings_module = "zproject.settings"
12 changes: 12 additions & 0 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,14 @@ django-statsd-mozilla==0.4.0 \
--hash=sha256:0d87cb63de8107279cbb748caad9aa74c6a44e7e96ccc5dbf07b89f77285a4b8 \
--hash=sha256:81084f3d426f5184f0a0f1dbfe035cc26b66f041d2184559d916a228d856f0d3
# via -r requirements/common.in
django-stubs-ext==0.2.0 \
--hash=sha256:bd4a1e36ef2ba0ef15801933c85c68e59b383302c873795c6ecfc25950c7ecdb \
--hash=sha256:c14f297835a42c1122421ec7e2d06579996b29d33b8016002762afa5d78863af
# via django-stubs
django-stubs==1.8.0 \
--hash=sha256:717967d7fee0a6af0746724a0be80d72831a982a40fa8f245a6a46f4cafd157b \
--hash=sha256:bde9e44e3c4574c2454e74a3e607cc3bc23b0441bb7d1312cd677d5e30984b74
# via -r requirements/mypy.in
django-two-factor-auth[call,phonenumberslite,sms]==1.13.1 \
--hash=sha256:a20e03d256fd9fd668988545f052cedcc47e5a981888562e5e27d0bb83deae89 \
--hash=sha256:d270d4288731233621a9462a89a8dfed2dcb86fa354125c816a89772d55f9e29
Expand All @@ -414,6 +422,8 @@ django[argon2]==3.2.4 \
# django-otp
# django-phonenumber-field
# django-sendfile2
# django-stubs
# django-stubs-ext
# django-two-factor-auth
docutils==0.16 \
--hash=sha256:0c5b78adfbf7762415433f5515cd5c9e762339e23369dbe8000d84a4bf4ab3af \
Expand Down Expand Up @@ -767,6 +777,7 @@ mypy==0.812 \
--hash=sha256:d7da2e1d5f558c37d6e8c1246f1aec1e7349e4913d8fb3cb289a35de573fe2eb
# via
# -r requirements/mypy.in
# django-stubs
# sqlalchemy-stubs
oauthlib==3.1.1 \
--hash=sha256:42bf6354c2ed8c6acb54d971fce6f88193d97297e18602a3a886603f9d7730cc \
Expand Down Expand Up @@ -1553,6 +1564,7 @@ typing-extensions==3.10.0.0 \
# arrow
# asgiref
# black
# django-stubs
# importlib-metadata
# libcst
# mypy
Expand Down
1 change: 1 addition & 0 deletions requirements/mypy.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
# See requirements/README.md for more detail.
mypy
sqlalchemy-stubs
django-stubs
28 changes: 28 additions & 0 deletions requirements/mypy.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,24 @@
#
# For details, see requirements/README.md .
#
asgiref==3.3.4 \
--hash=sha256:92906c611ce6c967347bbfea733f13d6313901d54dcca88195eaeb52b2a8e8ee \
--hash=sha256:d1216dfbdfb63826470995d31caed36225dcaf34f182e0fa257a4dd9e86f1b78
# via django
django-stubs-ext==0.2.0 \
--hash=sha256:bd4a1e36ef2ba0ef15801933c85c68e59b383302c873795c6ecfc25950c7ecdb \
--hash=sha256:c14f297835a42c1122421ec7e2d06579996b29d33b8016002762afa5d78863af
# via django-stubs
django-stubs==1.8.0 \
--hash=sha256:717967d7fee0a6af0746724a0be80d72831a982a40fa8f245a6a46f4cafd157b \
--hash=sha256:bde9e44e3c4574c2454e74a3e607cc3bc23b0441bb7d1312cd677d5e30984b74
# via -r requirements/mypy.in
django==3.2.4 \
--hash=sha256:66c9d8db8cc6fe938a28b7887c1596e42d522e27618562517cc8929eb7e7f296 \
--hash=sha256:ea735cbbbb3b2fba6d4da4784a0043d84c67c92f1fdf15ad6db69900e792c10f
# via
# django-stubs
# django-stubs-ext
mypy-extensions==0.4.3 \
--hash=sha256:090fedd75945a69ae91ce1303b5824f428daf5a028d2f6ab8a299250a846f15d \
--hash=sha256:2d82818f5bb3e369420cb3c4060a7970edba416647068eb4c5343488a6c604a8
Expand Down Expand Up @@ -36,11 +54,20 @@ mypy==0.812 \
--hash=sha256:d7da2e1d5f558c37d6e8c1246f1aec1e7349e4913d8fb3cb289a35de573fe2eb
# via
# -r requirements/mypy.in
# django-stubs
# sqlalchemy-stubs
pytz==2021.1 \
--hash=sha256:83a4a90894bf38e243cf052c8b58f381bfe9a7a483f6a9cab140bc7f702ac4da \
--hash=sha256:eb10ce3e7736052ed3623d49975ce333bcd712c7bb19a58b9e2089d4057d0798
# via django
sqlalchemy-stubs==0.4 \
--hash=sha256:5eec7aa110adf9b957b631799a72fef396b23ff99fe296df726645d01e312aa5 \
--hash=sha256:c665d6dd4482ef642f01027fa06c3d5e91befabb219dc71fc2a09e7d7695f7ae
# via -r requirements/mypy.in
sqlparse==0.4.1 \
--hash=sha256:017cde379adbd6a1f15a61873f43e8274179378e95ef3fede90b5aa64d304ed0 \
--hash=sha256:0f91fd2e829c44362cbcfab3e9ae12e22badaa8a29ad5ff599f9ec109f0454e8
# via django
typed-ast==1.4.3 \
--hash=sha256:01ae5f73431d21eead5015997ab41afa53aa1fbe252f9da060be5dad2c730ace \
--hash=sha256:067a74454df670dcaa4e59349a2e5c81e567d8d65458d480a5b3dfecec08c5ff \
Expand Down Expand Up @@ -78,5 +105,6 @@ typing-extensions==3.10.0.0 \
--hash=sha256:50b6f157849174217d0656f99dc82fe932884fb250826c18350e159ec6cdf342 \
--hash=sha256:779383f6086d90c99ae41cf0ff39aac8a7937a9283ce0a414e5dd782f4c94a84
# via
# django-stubs
# mypy
# sqlalchemy-stubs
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@
# historical commits sharing the same major version, in which case a
# minor version bump suffices.

PROVISION_VERSION = "150.4"
PROVISION_VERSION = "151.4"

0 comments on commit f8b960d

Please sign in to comment.