diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d92392ffc..4ee6ac4f3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,7 +17,7 @@ repos: args: [--fix=lf] - id: check-case-conflict - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.8.6 + rev: v0.9.1 hooks: - id: ruff args: ["--fix", "--exit-non-zero-on-fix"] diff --git a/scripts/tests_extension_hook.py b/scripts/tests_extension_hook.py index 331fc03b3..92ca4a6d5 100644 --- a/scripts/tests_extension_hook.py +++ b/scripts/tests_extension_hook.py @@ -23,7 +23,7 @@ def django_plugin_hook(test_item: YamlTestItem) -> None: if monkeypatch: custom_settings = "import django_stubs_ext\ndjango_stubs_ext.monkeypatch()\n" + custom_settings - django_settings_section = "\n[mypy.plugins.django-stubs]\n" "django_settings_module = mysettings" + django_settings_section = "\n[mypy.plugins.django-stubs]\ndjango_settings_module = mysettings" if not test_item.additional_mypy_config: test_item.additional_mypy_config = django_settings_section else: