From 23997537e4e8e1bb0b166cdd71b16bf7894a7e99 Mon Sep 17 00:00:00 2001 From: David Wobrock Date: Sun, 4 Feb 2024 19:58:12 +0100 Subject: [PATCH] Upgrade pre-commit deps. --- .pre-commit-config.yaml | 12 ++++++------ tests/test_project/urls.py | 1 + 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 518d8a2..a6580ed 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.5.0 hooks: - id: check-added-large-files - id: check-ast @@ -14,20 +14,20 @@ repos: - id: forbid-submodules - id: trailing-whitespace - repo: https://github.com/psf/black - rev: 23.3.0 + rev: 24.1.1 hooks: - id: black - repo: https://github.com/PyCQA/flake8 - rev: 6.0.0 + rev: 7.0.0 hooks: - id: flake8 exclude: ^tests/ - repo: https://github.com/pycqa/isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.4.1 + rev: v1.8.0 hooks: - id: mypy additional_dependencies: @@ -36,7 +36,7 @@ repos: - "--ignore-missing-imports" exclude: ^tests/ - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.0.275 + rev: v0.2.0 hooks: - id: ruff args: diff --git a/tests/test_project/urls.py b/tests/test_project/urls.py index 7e3d7c2..0ed9cef 100644 --- a/tests/test_project/urls.py +++ b/tests/test_project/urls.py @@ -13,6 +13,7 @@ Including another URLconf 1. Import the include() function: from django.urls import include, path 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) """ + from __future__ import annotations from django.contrib import admin