diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 37161d4d..9b4bf1dc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,18 +1,18 @@ repos: - repo: https://github.com/PyCQA/autoflake - rev: v2.1.1 + rev: v2.3.1 hooks: - id: autoflake args: ['--in-place', '--remove-all-unused-imports', '--remove-unused-variable'] - repo: https://github.com/pycqa/isort - rev: 5.12.0 + rev: 6.0.1 hooks: - id: isort args: ["--profile", "black", "--filter-files"] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v5.0.0 hooks: - id: trailing-whitespace exclude: ^docs/.*|.*.md @@ -20,18 +20,18 @@ repos: exclude: ^docs/.*|.*.md - repo: https://github.com/psf/black - rev: 23.3.0 + rev: 25.1.0 hooks: - id: black language_version: python3 - repo: https://github.com/adrienverge/yamllint.git - rev: v1.32.0 + rev: v1.37.1 hooks: - id: yamllint args: ["-d", "relaxed"] - repo: https://github.com/pycqa/flake8 - rev: 6.0.0 + rev: 7.2.0 hooks: - id: flake8 diff --git a/django_model_subscription/urls.py b/django_model_subscription/urls.py index 8cfbc16d..46696ca9 100644 --- a/django_model_subscription/urls.py +++ b/django_model_subscription/urls.py @@ -14,6 +14,7 @@ 1. Import the include() function: from django.urls import include, path 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) """ + from django.contrib import admin from django.urls import path