diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ab89c81af..66c3e162b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,7 +13,7 @@ repos: - id: check-merge-conflict - id: end-of-file-fixer - 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 21b1786c4..6ccc6b317 100644 --- a/scripts/tests_extension_hook.py +++ b/scripts/tests_extension_hook.py @@ -18,7 +18,7 @@ def django_plugin_hook(test_item: YamlTestItem) -> None: if "SECRET_KEY" not in custom_settings: custom_settings = 'SECRET_KEY = "1"\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: