From c9b13bf61cd23d162bcf26de22a574532f2b9cc5 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 13 Feb 2024 09:05:26 +0100 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#204) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/psf/black: 24.1.1 → 24.2.0](https://github.com/psf/black/compare/24.1.1...24.2.0) - [github.com/astral-sh/ruff-pre-commit: v0.2.0 → v0.2.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.2.0...v0.2.1) - [github.com/adamchainz/django-upgrade: 1.15.0 → 1.16.0](https://github.com/adamchainz/django-upgrade/compare/1.15.0...1.16.0) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 6 +++--- tests/example_app/models.py | 2 +- tests/example_app/views.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a89a363..3fbc2ce 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,11 +22,11 @@ repos: hooks: - id: isort - repo: https://github.com/psf/black - rev: 24.1.1 + rev: 24.2.0 hooks: - id: black - repo: https://github.com/astral-sh/ruff-pre-commit - rev: 'v0.2.0' + rev: 'v0.2.1' hooks: - id: ruff - repo: https://github.com/econchick/interrogate @@ -43,7 +43,7 @@ repos: args: - --py3-plus - repo: https://github.com/adamchainz/django-upgrade - rev: "1.15.0" + rev: "1.16.0" hooks: - id: django-upgrade args: [--target-version, "3.2"] diff --git a/tests/example_app/models.py b/tests/example_app/models.py index 5c2363a..47df984 100644 --- a/tests/example_app/models.py +++ b/tests/example_app/models.py @@ -9,7 +9,7 @@ try: from django.urls import reverse except ImportError: - from django.core.urlresolvers import reverse + from django.urls import reverse class Publisher(ModelMeta, models.Model): diff --git a/tests/example_app/views.py b/tests/example_app/views.py index 6121f3f..51021f8 100644 --- a/tests/example_app/views.py +++ b/tests/example_app/views.py @@ -11,7 +11,7 @@ try: from django.urls import reverse except ImportError: - from django.core.urlresolvers import reverse + from django.urls import reverse class PostDetailView(DetailView):