mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-02-26 16:30:39 +03:00
Update mypy to 0.991 (#4106)
* Update mypy from 0.982 to 0.991 * Ignore type error in test * Don't build on non-master branch pushes by default * Ignore type error in DRF view test --------- Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
This commit is contained in:
parent
4998a0cab7
commit
3c71b54e4c
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
|
@ -2,6 +2,7 @@ name: CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
branches: [ "master", "main" ]
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
|
|
|
@ -13,7 +13,7 @@ watchfiles==0.18.1 # https://github.com/samuelcolvin/watchfiles
|
||||||
|
|
||||||
# Testing
|
# Testing
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
mypy==0.982 # https://github.com/python/mypy
|
mypy==0.991 # https://github.com/python/mypy
|
||||||
django-stubs==1.14.0 # https://github.com/typeddjango/django-stubs
|
django-stubs==1.14.0 # https://github.com/typeddjango/django-stubs
|
||||||
pytest==7.2.1 # https://github.com/pytest-dev/pytest
|
pytest==7.2.1 # https://github.com/pytest-dev/pytest
|
||||||
pytest-sugar==0.9.6 # https://github.com/Frozenball/pytest-sugar
|
pytest-sugar==0.9.6 # https://github.com/Frozenball/pytest-sugar
|
||||||
|
|
|
@ -26,7 +26,7 @@ class TestUserViewSet:
|
||||||
|
|
||||||
view.request = request
|
view.request = request
|
||||||
|
|
||||||
response = view.me(request)
|
response = view.me(request) # type: ignore
|
||||||
|
|
||||||
assert response.data == {
|
assert response.data == {
|
||||||
"username": user.username,
|
"username": user.username,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user