diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8f53ea3..d1c0229 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ default_language_version: repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v5.0.0 hooks: - id: end-of-file-fixer - id: trailing-whitespace @@ -12,30 +12,30 @@ repos: - id: check-merge-conflict - repo: https://github.com/asottile/pyupgrade - rev: v3.9.0 + rev: v3.19.1 hooks: - id: pyupgrade args: [--py37-plus] - repo: https://github.com/psf/black - rev: 23.7.0 + rev: 25.1.0 hooks: - id: black - repo: https://github.com/asottile/blacken-docs - rev: 1.15.0 + rev: 1.19.1 hooks: - id: blacken-docs additional_dependencies: - black==22.6.0 - repo: https://github.com/pycqa/isort - rev: 5.12.0 + rev: 6.0.1 hooks: - id: isort - repo: https://github.com/PyCQA/flake8 - rev: 6.0.0 + rev: 7.2.0 hooks: - id: flake8 additional_dependencies: @@ -45,7 +45,7 @@ repos: - flake8-typing-imports - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.4.1 + rev: v1.15.0 hooks: - id: mypy files: ^redis_search_django/ diff --git a/example/example/asgi.py b/example/example/asgi.py index 123a033..aad1fda 100644 --- a/example/example/asgi.py +++ b/example/example/asgi.py @@ -7,7 +7,6 @@ https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ """ - import os from django.core.asgi import get_asgi_application diff --git a/example/example/settings.py b/example/example/settings.py index 90f7873..5005a87 100644 --- a/example/example/settings.py +++ b/example/example/settings.py @@ -10,7 +10,6 @@ https://docs.djangoproject.com/en/3.2/ref/settings/ """ - from pathlib import Path # Build paths inside the project like this: BASE_DIR / 'subdir'. diff --git a/example/example/wsgi.py b/example/example/wsgi.py index 50cc7d0..00adc8a 100644 --- a/example/example/wsgi.py +++ b/example/example/wsgi.py @@ -7,7 +7,6 @@ https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ - import os from django.core.wsgi import get_wsgi_application