From fd69b6c3dcffa1199651bdca5141e41bbce0f49c Mon Sep 17 00:00:00 2001 From: Brent Westbrook Date: Mon, 22 Dec 2025 12:56:17 -0500 Subject: [PATCH] update other snapshots --- ..._lint__requires_python_extend_from_shared_config.snap | 1 + .../snapshots/cli__lint__requires_python_no_tool.snap | 1 + ...i__lint__requires_python_no_tool_preview_enabled.snap | 1 + ..._requires_python_no_tool_target_version_override.snap | 1 + .../cli__lint__requires_python_pyproject_toml_above.snap | 1 + ...__requires_python_pyproject_toml_above_with_tool.snap | 1 + .../cli__lint__requires_python_ruff_toml_above-2.snap | 1 + .../cli__lint__requires_python_ruff_toml_above.snap | 1 + ...nt__requires_python_ruff_toml_no_target_fallback.snap | 1 + .../show_settings__display_default_settings.snap | 1 + ruff.schema.json | 9 +++++++++ 11 files changed, 19 insertions(+) diff --git a/crates/ruff/tests/cli/snapshots/cli__lint__requires_python_extend_from_shared_config.snap b/crates/ruff/tests/cli/snapshots/cli__lint__requires_python_extend_from_shared_config.snap index ce6ae89c1a..9f2e3eec6d 100644 --- a/crates/ruff/tests/cli/snapshots/cli__lint__requires_python_extend_from_shared_config.snap +++ b/crates/ruff/tests/cli/snapshots/cli__lint__requires_python_extend_from_shared_config.snap @@ -261,6 +261,7 @@ linter.pylint.max_locals = 15 linter.pylint.max_nested_blocks = 5 linter.pyupgrade.keep_runtime_typing = false linter.ruff.parenthesize_tuple_in_subscript = false +linter.ruff.strictly_empty_init_modules = false # Formatter Settings formatter.exclude = [] diff --git a/crates/ruff/tests/cli/snapshots/cli__lint__requires_python_no_tool.snap b/crates/ruff/tests/cli/snapshots/cli__lint__requires_python_no_tool.snap index a1236947bd..807570f11b 100644 --- a/crates/ruff/tests/cli/snapshots/cli__lint__requires_python_no_tool.snap +++ b/crates/ruff/tests/cli/snapshots/cli__lint__requires_python_no_tool.snap @@ -263,6 +263,7 @@ linter.pylint.max_locals = 15 linter.pylint.max_nested_blocks = 5 linter.pyupgrade.keep_runtime_typing = false linter.ruff.parenthesize_tuple_in_subscript = false +linter.ruff.strictly_empty_init_modules = false # Formatter Settings formatter.exclude = [] diff --git a/crates/ruff/tests/cli/snapshots/cli__lint__requires_python_no_tool_preview_enabled.snap b/crates/ruff/tests/cli/snapshots/cli__lint__requires_python_no_tool_preview_enabled.snap index 5868ceb04f..bdf1c47612 100644 --- a/crates/ruff/tests/cli/snapshots/cli__lint__requires_python_no_tool_preview_enabled.snap +++ b/crates/ruff/tests/cli/snapshots/cli__lint__requires_python_no_tool_preview_enabled.snap @@ -265,6 +265,7 @@ linter.pylint.max_locals = 15 linter.pylint.max_nested_blocks = 5 linter.pyupgrade.keep_runtime_typing = false linter.ruff.parenthesize_tuple_in_subscript = false +linter.ruff.strictly_empty_init_modules = false # Formatter Settings formatter.exclude = [] diff --git a/crates/ruff/tests/cli/snapshots/cli__lint__requires_python_no_tool_target_version_override.snap b/crates/ruff/tests/cli/snapshots/cli__lint__requires_python_no_tool_target_version_override.snap index 726abc733e..07ac3dec24 100644 --- a/crates/ruff/tests/cli/snapshots/cli__lint__requires_python_no_tool_target_version_override.snap +++ b/crates/ruff/tests/cli/snapshots/cli__lint__requires_python_no_tool_target_version_override.snap @@ -265,6 +265,7 @@ linter.pylint.max_locals = 15 linter.pylint.max_nested_blocks = 5 linter.pyupgrade.keep_runtime_typing = false linter.ruff.parenthesize_tuple_in_subscript = false +linter.ruff.strictly_empty_init_modules = false # Formatter Settings formatter.exclude = [] diff --git a/crates/ruff/tests/cli/snapshots/cli__lint__requires_python_pyproject_toml_above.snap b/crates/ruff/tests/cli/snapshots/cli__lint__requires_python_pyproject_toml_above.snap index db8a289004..ec30b5c4e4 100644 --- a/crates/ruff/tests/cli/snapshots/cli__lint__requires_python_pyproject_toml_above.snap +++ b/crates/ruff/tests/cli/snapshots/cli__lint__requires_python_pyproject_toml_above.snap @@ -262,6 +262,7 @@ linter.pylint.max_locals = 15 linter.pylint.max_nested_blocks = 5 linter.pyupgrade.keep_runtime_typing = false linter.ruff.parenthesize_tuple_in_subscript = false +linter.ruff.strictly_empty_init_modules = false # Formatter Settings formatter.exclude = [] diff --git a/crates/ruff/tests/cli/snapshots/cli__lint__requires_python_pyproject_toml_above_with_tool.snap b/crates/ruff/tests/cli/snapshots/cli__lint__requires_python_pyproject_toml_above_with_tool.snap index 193aac85f3..521bc97d70 100644 --- a/crates/ruff/tests/cli/snapshots/cli__lint__requires_python_pyproject_toml_above_with_tool.snap +++ b/crates/ruff/tests/cli/snapshots/cli__lint__requires_python_pyproject_toml_above_with_tool.snap @@ -262,6 +262,7 @@ linter.pylint.max_locals = 15 linter.pylint.max_nested_blocks = 5 linter.pyupgrade.keep_runtime_typing = false linter.ruff.parenthesize_tuple_in_subscript = false +linter.ruff.strictly_empty_init_modules = false # Formatter Settings formatter.exclude = [] diff --git a/crates/ruff/tests/cli/snapshots/cli__lint__requires_python_ruff_toml_above-2.snap b/crates/ruff/tests/cli/snapshots/cli__lint__requires_python_ruff_toml_above-2.snap index e7914052c3..80dcbb5b01 100644 --- a/crates/ruff/tests/cli/snapshots/cli__lint__requires_python_ruff_toml_above-2.snap +++ b/crates/ruff/tests/cli/snapshots/cli__lint__requires_python_ruff_toml_above-2.snap @@ -261,6 +261,7 @@ linter.pylint.max_locals = 15 linter.pylint.max_nested_blocks = 5 linter.pyupgrade.keep_runtime_typing = false linter.ruff.parenthesize_tuple_in_subscript = false +linter.ruff.strictly_empty_init_modules = false # Formatter Settings formatter.exclude = [] diff --git a/crates/ruff/tests/cli/snapshots/cli__lint__requires_python_ruff_toml_above.snap b/crates/ruff/tests/cli/snapshots/cli__lint__requires_python_ruff_toml_above.snap index 76a57bae28..8858f0d45d 100644 --- a/crates/ruff/tests/cli/snapshots/cli__lint__requires_python_ruff_toml_above.snap +++ b/crates/ruff/tests/cli/snapshots/cli__lint__requires_python_ruff_toml_above.snap @@ -261,6 +261,7 @@ linter.pylint.max_locals = 15 linter.pylint.max_nested_blocks = 5 linter.pyupgrade.keep_runtime_typing = false linter.ruff.parenthesize_tuple_in_subscript = false +linter.ruff.strictly_empty_init_modules = false # Formatter Settings formatter.exclude = [] diff --git a/crates/ruff/tests/cli/snapshots/cli__lint__requires_python_ruff_toml_no_target_fallback.snap b/crates/ruff/tests/cli/snapshots/cli__lint__requires_python_ruff_toml_no_target_fallback.snap index ecdc9bfc62..6eb18b302c 100644 --- a/crates/ruff/tests/cli/snapshots/cli__lint__requires_python_ruff_toml_no_target_fallback.snap +++ b/crates/ruff/tests/cli/snapshots/cli__lint__requires_python_ruff_toml_no_target_fallback.snap @@ -261,6 +261,7 @@ linter.pylint.max_locals = 15 linter.pylint.max_nested_blocks = 5 linter.pyupgrade.keep_runtime_typing = false linter.ruff.parenthesize_tuple_in_subscript = false +linter.ruff.strictly_empty_init_modules = false # Formatter Settings formatter.exclude = [] diff --git a/crates/ruff/tests/snapshots/show_settings__display_default_settings.snap b/crates/ruff/tests/snapshots/show_settings__display_default_settings.snap index 94d6cbc603..77e14ac112 100644 --- a/crates/ruff/tests/snapshots/show_settings__display_default_settings.snap +++ b/crates/ruff/tests/snapshots/show_settings__display_default_settings.snap @@ -374,6 +374,7 @@ linter.pylint.max_locals = 15 linter.pylint.max_nested_blocks = 5 linter.pyupgrade.keep_runtime_typing = false linter.ruff.parenthesize_tuple_in_subscript = false +linter.ruff.strictly_empty_init_modules = false # Formatter Settings formatter.exclude = [] diff --git a/ruff.schema.json b/ruff.schema.json index 5af8837779..cdd1a84e34 100644 --- a/ruff.schema.json +++ b/ruff.schema.json @@ -2926,6 +2926,13 @@ "boolean", "null" ] + }, + "strictly-empty-init-modules": { + "description": "Whether to require `__init__.py` files to contain no code at all, including imports and\ndocstrings (see `RUF070`).", + "type": [ + "boolean", + "null" + ] } }, "additionalProperties": false @@ -4046,6 +4053,8 @@ "RUF064", "RUF065", "RUF066", + "RUF07", + "RUF070", "RUF1", "RUF10", "RUF100",