From 3c71b54e4cf620d4a92cf6c088245055d8c57e4c Mon Sep 17 00:00:00 2001 From: "pyup.io bot" Date: Thu, 9 Feb 2023 04:35:41 -0500 Subject: [PATCH] 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 --- .github/workflows/ci.yml | 1 + {{cookiecutter.project_slug}}/requirements/local.txt | 2 +- .../{{cookiecutter.project_slug}}/users/tests/test_drf_views.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ec2577e8..c31be1b7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,6 +2,7 @@ name: CI on: push: + branches: [ "master", "main" ] pull_request: concurrency: diff --git a/{{cookiecutter.project_slug}}/requirements/local.txt b/{{cookiecutter.project_slug}}/requirements/local.txt index daafb605..00c15d3c 100644 --- a/{{cookiecutter.project_slug}}/requirements/local.txt +++ b/{{cookiecutter.project_slug}}/requirements/local.txt @@ -13,7 +13,7 @@ watchfiles==0.18.1 # https://github.com/samuelcolvin/watchfiles # 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 pytest==7.2.1 # https://github.com/pytest-dev/pytest pytest-sugar==0.9.6 # https://github.com/Frozenball/pytest-sugar diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/tests/test_drf_views.py b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/tests/test_drf_views.py index 10ad100f..7828e49c 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/tests/test_drf_views.py +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/tests/test_drf_views.py @@ -26,7 +26,7 @@ class TestUserViewSet: view.request = request - response = view.me(request) + response = view.me(request) # type: ignore assert response.data == { "username": user.username,