From 4712503c6d66ebe84bc86e4a26aa620104cd37d7 Mon Sep 17 00:00:00 2001 From: Jack O'Connor Date: Mon, 5 Jan 2026 07:55:47 -0800 Subject: [PATCH] [ty] `cargo insta test --force-update-snapshots` (#22313) Snapshot tests recently started reporting this warning: > Snapshot test passes but the existing value is in a legacy format. > Please run cargo insta test --force-update-snapshots to update to a > newer format. This PR is the result of that forced update. One file (crates/ruff_db/src/diagnostic/render/full.rs) seems to get corrupted, because it contains strings with unprintable characters that trigger some bug in cargo-insta. I've manually reverted that file, and also manually reverted the `input_file:` lines, which we like. --- crates/ruff/src/commands/format.rs | 2 +- ...__commands__check__test__E902_E902.py.snap | 1 - ...f__version__tests__version_formatting.snap | 1 - ...__version_formatting_with_commit_info.snap | 1 - ...ormatting_with_commits_since_last_tag.snap | 1 - ..._version__tests__version_serializable.snap | 1 - crates/ruff/tests/analyze_graph.rs | 94 +++--- crates/ruff/tests/cli/analyze_graph.rs | 16 +- crates/ruff/tests/cli/format.rs | 74 ++--- crates/ruff/tests/cli/lint.rs | 301 +++++++++--------- ...port_convention_unused_aliased_import.snap | 3 +- ...ion_unused_aliased_import_no_conflict.snap | 2 +- .../cli__lint__output_format_azure.snap | 2 +- .../cli__lint__output_format_concise.snap | 2 +- .../cli__lint__output_format_full.snap | 2 +- .../cli__lint__output_format_github.snap | 2 +- .../cli__lint__output_format_gitlab.snap | 2 +- .../cli__lint__output_format_grouped.snap | 2 +- .../cli__lint__output_format_json-lines.snap | 2 +- .../cli__lint__output_format_json.snap | 2 +- .../cli__lint__output_format_junit.snap | 2 +- .../cli__lint__output_format_pylint.snap | 2 +- .../cli__lint__output_format_rdjson.snap | 2 +- .../cli__lint__output_format_sarif.snap | 1 - ...int__output_format_show_fixes_concise.snap | 2 +- ...__lint__output_format_show_fixes_full.snap | 2 +- ...int__output_format_show_fixes_grouped.snap | 2 +- ...warn_invalid_noqa_with_no_diagnostics.snap | 2 +- crates/ruff/tests/direxist_guard.rs | 16 +- crates/ruff/tests/integration_test.rs | 194 +++++------ crates/ruff/tests/resolve_files.rs | 8 +- .../integration_test__stdin_json.snap | 8 +- crates/ruff/tests/version.rs | 8 +- crates/ruff_db/src/diagnostic/render.rs | 92 +++--- .../ruff_db/src/diagnostic/render/concise.rs | 12 +- crates/ruff_db/src/vendored.rs | 8 +- ...__shebang__tests__shebang_end_of_line.snap | 1 - ...shebang__tests__shebang_leading_space.snap | 1 - ...mments__shebang__tests__shebang_match.snap | 1 - ...tests__shebang_match_trailing_comment.snap | 1 - ...ts__shebang__tests__shebang_non_match.snap | 1 - ...ter__message__grouped__tests__default.snap | 1 - crates/ruff_linter/src/noqa.rs | 70 ++-- ...tations__tests__allow_nested_overload.snap | 1 - ...notations__tests__suppress_dummy_args.snap | 1 - ...s__flake8_async__tests__ASYNC109_1.py.snap | 1 - ...__flake8_bandit__tests__S401_S401.pyi.snap | 1 - ...__flake8_bandit__tests__S402_S402.pyi.snap | 1 - ...__flake8_bandit__tests__S403_S403.pyi.snap | 1 - ...__flake8_bandit__tests__S404_S404.pyi.snap | 1 - ...__flake8_bandit__tests__S405_S405.pyi.snap | 1 - ...__flake8_bandit__tests__S406_S406.pyi.snap | 1 - ...__flake8_bandit__tests__S407_S407.pyi.snap | 1 - ...__flake8_bandit__tests__S408_S408.pyi.snap | 1 - ...__flake8_bandit__tests__S409_S409.pyi.snap | 1 - ...__flake8_bandit__tests__S410_S410.pyi.snap | 1 - ...__flake8_bandit__tests__S411_S411.pyi.snap | 1 - ...__flake8_bandit__tests__S412_S412.pyi.snap | 1 - ...__flake8_bandit__tests__S413_S413.pyi.snap | 1 - ...__flake8_bandit__tests__S415_S415.pyi.snap | 1 - ...lake8_bugbear__tests__B006_B006_1.pyi.snap | 1 - ..._flake8_bugbear__tests__B027_B027.pyi.snap | 1 - ...A005_A005__modules___abc____init__.py.snap | 1 - ...___init__.py_builtins_allowed_modules.snap | 1 - ...___init__.py_builtins_allowed_modules.snap | 1 - ...05__modules__non_builtin____init__.py.snap | 1 - ...___init__.py_builtins_allowed_modules.snap | 1 - ...kage__xml.py_builtins_allowed_modules.snap | 1 - ...comprehensions__tests__C419_C419_2.py.snap | 1 - ...ules__flake8_copyright__tests__notice.snap | 1 - ...lake8_copyright__tests__notice_with_c.snap | 1 - ...e8_copyright__tests__notice_with_caps.snap | 1 - ...8_copyright__tests__notice_with_comma.snap | 1 - ...8_copyright__tests__notice_with_range.snap | 1 - ...pyright__tests__notice_with_unicode_c.snap | 1 - ...__flake8_copyright__tests__small_file.snap | 1 - ...flake8_copyright__tests__valid_author.snap | 1 - ...__valid_author_with_comma_valid_space.snap | 1 - ...yright__tests__valid_author_with_dash.snap | 1 - ...otations__tests__fa102_ok_no_types.py.snap | 1 - ...tions__tests__fa102_ok_quoted_type.py.snap | 1 - ...tions__tests__fa102_ok_uses_future.py.snap | 1 - ...s__no_future_import_uses_lowercase.py.snap | 1 - ...tests__no_future_import_uses_union.py.snap | 1 - ..._no_future_import_uses_union_inner.py.snap | 1 - ...re_annotations__tests__ok_no_types.py.snap | 1 - ...__tests__ok_non_simplifiable_types.py.snap | 1 - ...annotations__tests__ok_uses_future.py.snap | 1 - ...notations__tests__ok_variable_name.py.snap | 1 - ...oncat__tests__multiline_ISC003_ISC.py.snap | 1 - ...ormat__tests__G004_implicit_concat.py.snap | 1 - ..._tests__G_argparse_parser_error_ok.py.snap | 1 - ..._logging_format__tests__G_extra_ok.py.snap | 1 - ...rmat__tests__G_extra_str_format_ok.py.snap | 1 - ...logging_format__tests__G_simple_ok.py.snap | 1 - ...gging_format__tests__G_warnings_ok.py.snap | 1 - ...preview__G004_G004_implicit_concat.py.snap | 1 - ...flake8_no_pep420__tests__test_ignored.snap | 1 - ...ake8_no_pep420__tests__test_pass_init.snap | 1 - ...0__tests__test_pass_namespace_package.snap | 1 - ...e8_no_pep420__tests__test_pass_pep723.snap | 1 - ...lake8_no_pep420__tests__test_pass_pyi.snap | 1 - ...e8_no_pep420__tests__test_pass_script.snap | 1 - ...8_no_pep420__tests__test_pass_shebang.snap | 1 - ..._flake8_pie__tests__PIE796_PIE796.pyi.snap | 1 - ...__flake8_pyi__tests__PYI001_PYI001.py.snap | 1 - ...__flake8_pyi__tests__PYI002_PYI002.py.snap | 1 - ...__flake8_pyi__tests__PYI003_PYI003.py.snap | 1 - ...__flake8_pyi__tests__PYI004_PYI004.py.snap | 1 - ...__flake8_pyi__tests__PYI005_PYI005.py.snap | 1 - ...__flake8_pyi__tests__PYI007_PYI007.py.snap | 1 - ...__flake8_pyi__tests__PYI008_PYI008.py.snap | 1 - ...__flake8_pyi__tests__PYI009_PYI009.py.snap | 1 - ...__flake8_pyi__tests__PYI010_PYI010.py.snap | 1 - ...__flake8_pyi__tests__PYI011_PYI011.py.snap | 1 - ...__flake8_pyi__tests__PYI012_PYI012.py.snap | 1 - ...__flake8_pyi__tests__PYI014_PYI014.py.snap | 1 - ...__flake8_pyi__tests__PYI015_PYI015.py.snap | 1 - ...__flake8_pyi__tests__PYI017_PYI017.py.snap | 1 - ...__flake8_pyi__tests__PYI020_PYI020.py.snap | 1 - ...__flake8_pyi__tests__PYI021_PYI021.py.snap | 1 - ...__flake8_pyi__tests__PYI026_PYI026.py.snap | 1 - ...__flake8_pyi__tests__PYI029_PYI029.py.snap | 1 - ...__flake8_pyi__tests__PYI033_PYI033.py.snap | 1 - ...__flake8_pyi__tests__PYI035_PYI035.py.snap | 1 - ...__flake8_pyi__tests__PYI044_PYI044.py.snap | 1 - ...__flake8_pyi__tests__PYI048_PYI048.py.snap | 1 - ...__flake8_pyi__tests__PYI052_PYI052.py.snap | 1 - ...__flake8_pyi__tests__PYI053_PYI053.py.snap | 1 - ...__flake8_pyi__tests__PYI054_PYI054.py.snap | 1 - ...__flake8_pyi__tests__PYI066_PYI066.py.snap | 1 - ...ke8_pyi__tests__py38_PYI026_PYI026.py.snap | 1 - ..._require_doubles_over_singles_noqa.py.snap | 1 - ...quire_doubles_over_singles_wrapped.py.snap | 1 - ..._require_singles_over_doubles_noqa.py.snap | 1 - ...quire_singles_over_doubles_wrapped.py.snap | 1 - ...port-in-type-checking-block_quote2.py.snap | 1 - ...port-in-type-checking-block_quote3.py.snap | 1 - ...rt-in-type-checking-block_TC004_10.py.snap | 1 - ...rt-in-type-checking-block_TC004_13.py.snap | 1 - ...t-in-type-checking-block_TC004_14.pyi.snap | 1 - ...rt-in-type-checking-block_TC004_15.py.snap | 1 - ...rt-in-type-checking-block_TC004_16.py.snap | 1 - ...ort-in-type-checking-block_TC004_3.py.snap | 1 - ...ort-in-type-checking-block_TC004_6.py.snap | 1 - ...ort-in-type-checking-block_TC004_7.py.snap | 1 - ...ort-in-type-checking-block_TC004_8.py.snap | 1 - ...ly-standard-library-import_kw_only.py.snap | 1 - ...dard-library-import_module__direct.py.snap | 1 - ...dard-library-import_module__import.py.snap | 1 - ...t_runtime_evaluated_base_classes_4.py.snap | 1 - ...y-standard-library-import_snapshot.py.snap | 1 - ...t_runtime_evaluated_base_classes_5.py.snap | 1 - ...e8_use_pathlib__tests__use_pathlib.py.snap | 1 - ...r__rules__isort__tests__bom_sorted.py.snap | 1 - ...ction_default_section_user_defined.py.snap | 1 - ...sort_within_sections_lines_between.py.snap | 1 - ...sort__tests__from_first_from_first.py.snap | 1 - ...les__isort__tests__isort_skip_file.py.snap | 1 - ...__tests__no_reorder_within_section.py.snap | 1 - ...rt__tests__no_sections_no_sections.py.snap | 1 - ...rules__isort__tests__preserve_tabs.py.snap | 1 - ...les__isort__tests__preserve_tabs_2.py.snap | 1 - ...ort__tests__relative_imports_order.py.snap | 1 - ..._tests__required_import_docstring.pyi.snap | 1 - ...ts__required_import_docstring_only.py.snap | 1 - ...sort__tests__required_import_empty.py.snap | 1 - ...uired_import_with_alias_docstring.pyi.snap | 1 - ...d_import_with_alias_docstring_only.py.snap | 1 - ...__required_import_with_alias_empty.py.snap | 1 - ...tests__required_imports_docstring.pyi.snap | 1 - ...s__required_imports_docstring_only.py.snap | 1 - ...ort__tests__required_imports_empty.py.snap | 1 - ...ules__isort__tests__ruff_skip_file.py.snap | 1 - ...ght_required_import_docstring_only.py.snap | 1 - ...ts__straight_required_import_empty.py.snap | 1 - ...rules__isort__tests__type_comments.py.snap | 1 - ...les__mccabe__tests__max_complexity_10.snap | 1 - ..._rules__pandas_vet__tests__PD002_pass.snap | 1 - ..._vet__tests__PD003_allows_other_calls.snap | 1 - ..._rules__pandas_vet__tests__PD003_pass.snap | 1 - ..._rules__pandas_vet__tests__PD004_pass.snap | 1 - ...s__pandas_vet__tests__PD007_pass_iloc.snap | 1 - ...es__pandas_vet__tests__PD007_pass_loc.snap | 1 - ..._rules__pandas_vet__tests__PD008_pass.snap | 1 - ...pandas_vet__tests__PD008_pass_on_attr.snap | 1 - ..._rules__pandas_vet__tests__PD009_pass.snap | 1 - ..._rules__pandas_vet__tests__PD010_pass.snap | 1 - ...__pandas_vet__tests__PD011_pass_array.snap | 1 - ...ndas_vet__tests__PD011_pass_node_name.snap | 1 - ...andas_vet__tests__PD011_pass_to_array.snap | 1 - ...as_vet__tests__PD011_pass_values_call.snap | 1 - ...as_vet__tests__PD011_pass_values_dict.snap | 1 - ..._vet__tests__PD011_pass_values_import.snap | 1 - ...et__tests__PD011_pass_values_instance.snap | 1 - ...s_vet__tests__PD011_pass_values_store.snap | 1 - ...vet__tests__PD011_pass_values_unbound.snap | 1 - ..._rules__pandas_vet__tests__PD013_pass.snap | 1 - ...__pandas_vet__tests__PD013_pass_numpy.snap | 1 - ...pandas_vet__tests__PD013_pass_unbound.snap | 1 - ..._tests__PD015_pass_merge_on_dataframe.snap | 1 - ...merge_on_dataframe_with_multiple_args.snap | 1 - ...__tests__PD015_pass_other_pd_function.snap | 1 - ...andas_vet__tests__PD901_pass_df_param.snap | 1 - ..._pandas_vet__tests__PD901_pass_non_df.snap | 1 - ...pandas_vet__tests__PD901_pass_part_df.snap | 1 - ...s__N999_N999__module__MODULE__file.py.snap | 1 - ...999_N999__module__flake9____init__.py.snap | 1 - ...999__module__mod with spaces__file.py.snap | 1 - ...999_N999__module__no_module__test.txt.snap | 1 - ...N999__module__valid_name____init__.py.snap | 1 - ...N999__module__valid_name____main__.py.snap | 1 - ...999__module__valid_name____setup__.py.snap | 1 - ..._module__valid_name__file-with-dashes.snap | 1 - ...es_N999_N999__badAllowed____init__.py.snap | 1 - ...s__pycodestyle__tests__E402_E402_2.py.snap | 1 - ...s__pycodestyle__tests__E402_E402_3.py.snap | 1 - ...s__pycodestyle__tests__E402_E402_4.py.snap | 1 + ...s__pycodestyle__tests__E402_E402_5.py.snap | 3 +- ...s__pycodestyle__tests__W292_W292_1.py.snap | 1 - ...s__pycodestyle__tests__W292_W292_2.py.snap | 1 - ...s__pycodestyle__tests__W292_W292_3.py.snap | 1 - ...__tests__blank_lines_E301_typing_stub.snap | 1 - ...__tests__blank_lines_E302_typing_stub.snap | 1 - ...__tests__blank_lines_E305_typing_stub.snap | 1 - ...__tests__blank_lines_E306_typing_stub.snap | 1 - ...style__tests__preview__W391_W391_1.py.snap | 1 - ...style__tests__preview__W391_W391_3.py.snap | 1 - ...style__tests__preview__W391_W391_4.py.snap | 1 - ...s__pycodestyle__tests__task_tags_true.snap | 1 - ...docstring-missing-exception_DOC501.py.snap | 1 - ...s__pydocstyle__tests__D100_D100.ipynb.snap | 1 - ...sts__D100__unrelated___no_pkg_priv.py.snap | 1 - ...nrelated__pkg___priv__no_D100_priv.py.snap | 1 - ...__rules__pydocstyle__tests__D104_D.py.snap | 1 - ...__rules__pydocstyle__tests__D106_D.py.snap | 1 - ...__rules__pydocstyle__tests__D206_D.py.snap | 1 - ...__rules__pydocstyle__tests__D403_D.py.snap | 1 - ...__rules__pydocstyle__tests__D416_D.py.snap | 1 - ...ts__D417_canonical_google_examples.py.snap | 1 - ...sts__D417_canonical_numpy_examples.py.snap | 1 - ..._rules__pydocstyle__tests__d417_numpy.snap | 1 - ...ules__pyflakes__tests__F401_F401_1.py.snap | 1 - ...les__pyflakes__tests__F401_F401_12.py.snap | 1 - ...les__pyflakes__tests__F401_F401_13.py.snap | 1 - ...les__pyflakes__tests__F401_F401_14.py.snap | 1 - ...les__pyflakes__tests__F401_F401_16.py.snap | 1 - ...les__pyflakes__tests__F401_F401_19.py.snap | 1 - ...ules__pyflakes__tests__F401_F401_2.py.snap | 1 - ...les__pyflakes__tests__F401_F401_20.py.snap | 1 - ...les__pyflakes__tests__F401_F401_21.py.snap | 1 - ...les__pyflakes__tests__F401_F401_22.py.snap | 1 - ...ules__pyflakes__tests__F401_F401_3.py.snap | 1 - ...les__pyflakes__tests__F401_F401_32.py.snap | 1 - ...ules__pyflakes__tests__F401_F401_4.py.snap | 1 - ...ules__pyflakes__tests__F401_F401_8.py.snap | 1 - ..._rules__pyflakes__tests__F505_F504.py.snap | 1 - ...les__pyflakes__tests__F811_F811_10.py.snap | 1 - ...les__pyflakes__tests__F811_F811_11.py.snap | 1 - ...les__pyflakes__tests__F811_F811_13.py.snap | 1 - ...les__pyflakes__tests__F811_F811_14.py.snap | 1 - ...les__pyflakes__tests__F811_F811_18.py.snap | 1 - ...les__pyflakes__tests__F811_F811_19.py.snap | 1 - ...les__pyflakes__tests__F811_F811_20.py.snap | 1 - ...les__pyflakes__tests__F811_F811_22.py.snap | 1 - ...les__pyflakes__tests__F811_F811_24.py.snap | 1 - ...les__pyflakes__tests__F811_F811_25.py.snap | 1 - ...les__pyflakes__tests__F811_F811_27.py.snap | 1 - ...ules__pyflakes__tests__F811_F811_7.py.snap | 1 - ...ules__pyflakes__tests__F811_F811_9.py.snap | 1 - ...les__pyflakes__tests__F821_F821_10.py.snap | 1 - ...les__pyflakes__tests__F821_F821_14.py.snap | 1 - ...les__pyflakes__tests__F821_F821_15.py.snap | 1 - ...les__pyflakes__tests__F821_F821_16.py.snap | 1 - ...__pyflakes__tests__F821_F821_22.ipynb.snap | 1 - ...les__pyflakes__tests__F821_F821_23.py.snap | 1 - ...les__pyflakes__tests__F821_F821_24.py.snap | 1 - ...les__pyflakes__tests__F821_F821_25.py.snap | 1 - ...es__pyflakes__tests__F821_F821_26.pyi.snap | 1 - ...les__pyflakes__tests__F821_F821_29.py.snap | 1 - ...ules__pyflakes__tests__F821_F821_6.py.snap | 1 - ...les__pyflakes__tests__F821_F821_8.pyi.snap | 1 - ...ules__pyflakes__tests__F822_F822_2.py.snap | 1 - ...ules__pyflakes__tests__F841_F841_2.py.snap | 1 - ...flakes__tests__extend_immutable_calls.snap | 1 - ...ules__pyflakes__tests__extra_builtins.snap | 1 - ...int_in_if_else_after_shadowing_except.snap | 1 - ...nt_in_try_else_after_shadowing_except.snap | 1 - ...grep_hooks__tests__PGH004_PGH004_3.py.snap | 1 - ...tests__PLE0116_continue_in_finally.py.snap | 1 - crates/ruff_linter/src/rules/pyupgrade/mod.rs | 2 +- ..._rules__pyupgrade__tests__UP009_10.py.snap | 1 - ...__rules__pyupgrade__tests__UP009_2.py.snap | 1 - ...__rules__pyupgrade__tests__UP009_3.py.snap | 1 - ...__rules__pyupgrade__tests__UP009_4.py.snap | 1 - ...__rules__pyupgrade__tests__UP009_5.py.snap | 1 - ...__rules__pyupgrade__tests__UP009_8.py.snap | 1 - ...__rules__pyupgrade__tests__UP009_9.py.snap | 1 - ...grade__tests__UP009_code_utf8_utf8.py.snap | 1 - ...__tests__UP009_hashbang_utf8_other.py.snap | 1 - ...ade__tests__UP009_many_empty_lines.py.snap | 1 - ...yupgrade__tests__UP009_other_other.py.snap | 1 - ...pyupgrade__tests__UP009_other_utf8.py.snap | 1 - ...pyupgrade__tests__UP009_utf8_other.py.snap | 1 - ...__rules__pyupgrade__tests__UP024_3.py.snap | 1 - ...__rules__pyupgrade__tests__UP030_1.py.snap | 1 - ...__rules__pyupgrade__tests__UP031_1.py.snap | 1 - ...__rules__pyupgrade__tests__UP032_3.py.snap | 1 - ...e_annotations_keep_runtime_typing_p37.snap | 1 - ...n_pep695_type_alias_not_applied_py311.snap | 1 - ...__RUF009_RUF009_attrs_auto_attribs.py.snap | 1 - ...ules__ruff__tests__RUF013_RUF013_2.py.snap | 1 - ...ules__ruff__tests__RUF027_RUF027_1.py.snap | 1 - ...ules__ruff__tests__RUF027_RUF027_2.py.snap | 1 - ...r__rules__ruff__tests__RUF200_maturin.snap | 1 - ...nter__rules__ruff__tests__flake8_noqa.snap | 1 - ...linter__rules__ruff__tests__redirects.snap | 1 - ..._linter__rules__ruff__tests__ruf100_4.snap | 1 - ...er__rules__ruff__tests__ruff_noqa_all.snap | 1 - ...s__ruff__tests__ruff_per_file_ignores.snap | 1 - ...f__tests__ruff_per_file_ignores_empty.snap | 1 - crates/ruff_linter/src/suppression.rs | 16 +- .../source_order__bytes_literals.snap | 1 - .../snapshots/source_order__compare.snap | 1 - .../source_order__dict_comprehension.snap | 1 - .../source_order__list_comprehension.snap | 1 - .../source_order__set_comprehension.snap | 1 - .../source_order__string_literals.snap | 1 - .../snapshots/visitor__bytes_literals.snap | 1 - .../visitor__class_type_parameters.snap | 1 - .../tests/snapshots/visitor__compare.snap | 1 - .../tests/snapshots/visitor__decorators.snap | 1 - .../visitor__dict_comprehension.snap | 1 - .../visitor__function_arguments.snap | 1 - ...function_positional_only_with_default.snap | 1 - .../visitor__function_type_parameters.snap | 1 - .../visitor__list_comprehension.snap | 1 - .../visitor__match_class_pattern.snap | 1 - .../snapshots/visitor__set_comprehension.snap | 1 - .../snapshots/visitor__string_literals.snap | 1 - .../snapshots/visitor__type_aliases.snap | 1 - ...matter__comments__debug__tests__debug.snap | 1 - ...formatter__comments__tests__base_test.snap | 1 - ...inary_expression_left_operand_comment.snap | 1 - ..._operand_trailing_end_of_line_comment.snap | 1 - ...er__comments__tests__dangling_comment.snap | 1 - ...ormatter__comments__tests__empty_file.snap | 1 - ...omments__tests__if_elif_else_comments.snap | 1 - ...ents__tests__if_elif_if_else_comments.snap | 1 - ...__comments__tests__leading_most_outer.snap | 1 - ...rmatter__comments__tests__match_cases.snap | 1 - ...ents__tests__nested_binary_expression.snap | 1 - ...sitional_arguments_slash_on_same_line.snap | 1 - ...on_positional_arguments_with_defaults.snap | 1 - ...atter__comments__tests__only_comments.snap | 1 - ...ents__tests__parenthesized_expression.snap | 1 - ...tests__parenthesized_trailing_comment.snap | 1 - ...sts__positional_argument_only_comment.snap | 1 - ...t_only_comment_without_following_node.snap | 1 - ...l_argument_only_leading_comma_comment.snap | 1 - ...comments__tests__trailing_after_comma.snap | 1 - ...g_comment_after_single_statement_body.snap | 1 - ...nts__tests__trailing_function_comment.snap | 1 - ..._comments__tests__trailing_most_outer.snap | 1 - ...ts__tests__trailing_most_outer_nested.snap | 1 - ...ormatter__comments__tests__try_except.snap | 1 - ...ments__tests__try_except_finally_else.snap | 1 - ...ile_trailing_else_end_of_line_comment.snap | 1 - ...s__while_trailing_end_of_line_comment.snap | 1 - ...n_formatter__tests__string_processing.snap | 1 - ...lity@cases__allow_empty_first_line.py.snap | 1 - ...ity@cases__backslash_before_indent.py.snap | 1 - ...ity@cases__class_blank_parentheses.py.snap | 1 - ...ses__comment_after_escaped_newline.py.snap | 1 - ...ack_compatibility@cases__comments2.py.snap | 1 - ...ack_compatibility@cases__comments6.py.snap | 1 - ...ack_compatibility@cases__comments9.py.snap | 1 - ...tibility@cases__comments_in_blocks.py.snap | 1 - ...y@cases__comments_in_double_parens.py.snap | 1 - ...k_compatibility@cases__composition.py.snap | 1 - ...ses__composition_no_trailing_comma.py.snap | 1 - ...lity@cases__conditional_expression.py.snap | 1 - ..._docstring_no_string_normalization.py.snap | 1 - ...ility@cases__dummy_implementations.py.snap | 1 - ...k_compatibility@cases__empty_lines.py.snap | 1 - ...ck_compatibility@cases__expression.py.snap | 1 - ...lack_compatibility@cases__fmtonoff.py.snap | 1 - ...ack_compatibility@cases__fmtonoff4.py.snap | 1 - ...ack_compatibility@cases__fmtonoff5.py.snap | 1 - ...mpatibility@cases__fmtpass_imports.py.snap | 1 - ...lack_compatibility@cases__fmtskip5.py.snap | 1 - ...lack_compatibility@cases__fmtskip9.py.snap | 1 - ...ck_compatibility@cases__form_feeds.py.snap | 1 - ...funcdef_return_type_trailing_comma.py.snap | 1 - ...lack_compatibility@cases__function.py.snap | 1 - ...ack_compatibility@cases__function2.py.snap | 1 - ...ity@cases__function_trailing_comma.py.snap | 1 - ...k_compatibility@cases__ignore_pyi.pyi.snap | 1 - ...ty@cases__keep_newline_after_match.py.snap | 1 - ...@cases__line_ranges_diff_edge_case.py.snap | 1 - ...ses__line_ranges_fmt_off_decorator.py.snap | 1 - ...@cases__long_strings_flag_disabled.py.snap | 1 - ...onsecutive_open_parentheses_ignore.py.snap | 1 - ..._compatibility@cases__nested_stub.pyi.snap | 1 - ...lity@cases__pattern_matching_style.py.snap | 1 - ...ses__pattern_matching_with_if_stmt.py.snap | 1 - ...patibility@cases__prefer_rhs_split.py.snap | 1 - ...mpatibility@cases__preview_cantfit.py.snap | 1 - ...lity@cases__preview_cantfit_string.py.snap | 1 - ...ns_with_braces_and_square_brackets.py.snap | 1 - ..._braces_and_square_brackets_no_ll1.py.snap | 1 - ...iew_long_strings__east_asian_width.py.snap | 1 - ...s__preview_long_strings__edge_case.py.snap | 1 - ...iew_long_strings__type_annotations.py.snap | 1 - ..._return_annotation_brackets_string.py.snap | 1 - ...compatibility@cases__raw_docstring.py.snap | 1 - ..._docstring_no_string_normalization.py.snap | 1 - ...ibility@cases__remove_await_parens.py.snap | 1 - ...bility@cases__remove_except_parens.py.snap | 1 - ...ibility@cases__remove_for_brackets.py.snap | 1 - ...move_newline_after_code_block_open.py.snap | 1 - ...ove_redundant_parens_in_case_guard.py.snap | 1 - ...@cases__return_annotation_brackets.py.snap | 1 - ...format_skip_with_multiple_comments.py.snap | 1 - .../black_compatibility@cases__stub.pyi.snap | 1 - ...black_compatibility@cases__torture.py.snap | 1 - ...__trailing_commas_in_leading_parts.py.snap | 1 - ...k_compatibility@cases__tupleassign.py.snap | 1 - ...ibility@miscellaneous__blackd_diff.py.snap | 1 - ...ility@miscellaneous__debug_visitor.py.snap | 1 - ...ility@miscellaneous__string_quotes.py.snap | 1 - .../format@carriage_return__string.py.snap | 1 - .../format@docstring_newlines.py.snap | 1 - ...t@docstring_non_visible_characters.py.snap | 1 - ...t@empty_multiple_trailing_newlines.py.snap | 1 - .../format@empty_now_newline.py.snap | 1 - .../format@empty_trailing_newline.py.snap | 1 - .../snapshots/format@empty_whitespace.py.snap | 1 - ...ormat@expression__annotated_assign.py.snap | 1 - ...expression__binary_implicit_string.py.snap | 1 - ...mat@expression__binary_pow_spacing.py.snap | 1 - ...rmat@expression__boolean_operation.py.snap | 1 - .../format@expression__compare.py.snap | 1 - .../snapshots/format@expression__dict.py.snap | 1 - .../format@expression__dict_comp.py.snap | 1 - .../format@expression__generator_exp.py.snap | 1 - .../snapshots/format@expression__hug.py.snap | 1 - .../snapshots/format@expression__if.py.snap | 1 - .../snapshots/format@expression__list.py.snap | 1 - .../format@expression__list_comp.py.snap | 1 - .../format@expression__named_expr.py.snap | 1 - .../format@expression__number.py.snap | 1 - ...ion__optional_parentheses_comments.py.snap | 1 - .../format@expression__set_comp.py.snap | 1 - .../format@expression__slice.py.snap | 1 - .../format@expression__starred.py.snap | 1 - .../format@expression__subscript.py.snap | 1 - .../format@expression__tuple.py.snap | 1 - .../format@expression__unsplittable.py.snap | 1 - .../format@expression__yield.py.snap | 1 - .../format@expression__yield_from.py.snap | 1 - .../format@fmt_on_off__comments.py.snap | 1 - .../format@fmt_on_off__empty_file.py.snap | 1 - ...losed_deep_nested_trailing_comment.py.snap | 1 - ..._fmt_off_unclosed_trailing_comment.py.snap | 1 - .../format@fmt_on_off__form_feed.py.snap | 1 - .../format@fmt_on_off__last_statement.py.snap | 1 - .../format@fmt_on_off__newlines.py.snap | 1 - .../format@fmt_on_off__no_fmt_on.py.snap | 1 - .../format@fmt_on_off__off_on_off_on.py.snap | 1 - .../format@fmt_on_off__simple.py.snap | 1 - ...rmat@fmt_on_off__trailing_comments.py.snap | 1 - ...mat@fmt_on_off__trailing_semicolon.py.snap | 1 - .../snapshots/format@fmt_on_off__yapf.py.snap | 1 - .../format@fmt_skip__decorators.py.snap | 1 - .../snapshots/format@fmt_skip__match.py.snap | 1 - .../format@fmt_skip__or_else.py.snap | 1 - .../format@fmt_skip__parentheses.py.snap | 1 - .../snapshots/format@fmt_skip__reason.py.snap | 1 - .../format@fmt_skip__trailing_semi.py.snap | 1 - .../format@fmt_skip__type_params.py.snap | 1 - .../format@module_dangling_comment1.py.snap | 1 - .../format@module_dangling_comment2.py.snap | 1 - .../tests/snapshots/format@newlines.pyi.snap | 1 - .../format@parentheses__nested.py.snap | 1 - ..._opening_parentheses_comment_empty.py.snap | 1 - ..._opening_parentheses_comment_value.py.snap | 1 - ...format@range_formatting__ancestory.py.snap | 1 - ...nge_formatting__comment_only_range.py.snap | 1 - ...ormat@range_formatting__decorators.py.snap | 1 - ...ormat@range_formatting__empty_file.py.snap | 1 - ...rmat@range_formatting__empty_range.py.snap | 1 - ...rmat@range_formatting__end_of_file.py.snap | 1 - ...ormat@range_formatting__fmt_on_off.py.snap | 1 - ...range_formatting__leading_comments.py.snap | 1 - ...matting__leading_trailing_comments.py.snap | 1 - .../format@range_formatting__module.py.snap | 1 - ...rmat@range_formatting__parentheses.py.snap | 1 - ...@range_formatting__range_narrowing.py.snap | 1 - ...rmat@range_formatting__regressions.py.snap | 1 - ...t@range_formatting__same_line_body.py.snap | 1 - ...ange_formatting__trailing_comments.py.snap | 1 - ..._formatting__whitespace_only_range.py.snap | 1 - .../format@statement__ann_assign.py.snap | 1 - .../format@statement__assert.py.snap | 1 - .../format@statement__assign.py.snap | 1 - .../format@statement__aug_assign.py.snap | 1 - .../snapshots/format@statement__break.py.snap | 1 - ...format@statement__class_definition.py.snap | 1 - .../format@statement__delete.py.snap | 1 - .../format@statement__ellipsis.pyi.snap | 1 - .../snapshots/format@statement__for.py.snap | 1 - .../format@statement__function.py.snap | 1 - .../format@statement__global.py.snap | 1 - .../format@statement__import.py.snap | 1 - .../format@statement__import_from.py.snap | 1 - ...t@statement__long_type_annotations.py.snap | 1 - .../format@statement__module_comment.py.snap | 1 - .../format@statement__nonlocal.py.snap | 1 - .../snapshots/format@statement__raise.py.snap | 1 - .../format@statement__return.py.snap | 1 - ...ormat@statement__return_annotation.py.snap | 1 - ...atement__return_type_no_parameters.py.snap | 1 - ...@statement__return_type_parameters.py.snap | 1 - ...__stub_functions_trailing_comments.py.snap | 1 - .../format@statement__top_level.py.snap | 1 - .../format@statement__top_level.pyi.snap | 1 - .../format@statement__type_alias.py.snap | 1 - .../format@stub_files__comments.pyi.snap | 1 - .../format@stub_files__nesting.pyi.snap | 1 - .../format@stub_files__suite.pyi.snap | 1 - .../tests/snapshots/format@trivia.py.snap | 1 - crates/ruff_python_importer/src/insertion.rs | 66 +++- ...ser__tests__expr_mode_invalid_syntax1.snap | 1 - ...ser__tests__expr_mode_invalid_syntax2.snap | 1 - ...ser__tests__expr_mode_invalid_syntax3.snap | 1 - ...thon_parser__lexer__tests__assignment.snap | 1 - ...ruff_python_parser__lexer__tests__bom.snap | 1 - ...parser__lexer__tests__bom_with_offset.snap | 1 - ...r__lexer__tests__bom_with_offset_edge.snap | 1 - ...__lexer__tests__comment_until_mac_eol.snap | 1 - ..._lexer__tests__comment_until_unix_eol.snap | 1 - ...xer__tests__comment_until_windows_eol.snap | 1 - ...lexer__tests__dedent_after_whitespace.snap | 1 - ...er__tests__double_dedent_with_mac_eol.snap | 1 - ...ests__double_dedent_with_tabs_mac_eol.snap | 1 - ...sts__double_dedent_with_tabs_unix_eol.snap | 1 - ...__double_dedent_with_tabs_windows_eol.snap | 1 - ...r__tests__double_dedent_with_unix_eol.snap | 1 - ...tests__double_dedent_with_windows_eol.snap | 1 - ...arser__lexer__tests__emoji_identifier.snap | 1 - ..._parser__lexer__tests__empty_fstrings.snap | 1 - ...__tests__empty_ipython_escape_command.snap | 1 - ...er__lexer__tests__escape_unicode_name.snap | 1 - ..._parser__lexer__tests__fstring_prefix.snap | 1 - ...tests__fstring_with_lambda_expression.snap | 1 - ...exer__tests__indentation_with_mac_eol.snap | 1 - ...xer__tests__indentation_with_unix_eol.snap | 1 - ...__tests__indentation_with_windows_eol.snap | 1 - ...exer__tests__invalid_leading_zero_big.snap | 1 - ...er__tests__invalid_leading_zero_small.snap | 1 - ..._lexer__tests__ipython_escape_command.snap | 1 - ...ts__ipython_escape_command_assignment.snap | 1 - ...s__ipython_escape_command_indentation.snap | 1 - ...ape_command_line_continuation_mac_eol.snap | 1 - ...pe_command_line_continuation_unix_eol.snap | 1 - ...command_line_continuation_windows_eol.snap | 1 - ...ine_continuation_with_mac_eol_and_eof.snap | 1 - ...ne_continuation_with_unix_eol_and_eof.snap | 1 - ...continuation_with_windows_eol_and_eof.snap | 1 - ...ests__ipython_help_end_escape_command.snap | 1 - ...ser__lexer__tests__line_comment_empty.snap | 1 - ...rser__lexer__tests__line_comment_long.snap | 1 - ...tests__line_comment_single_whitespace.snap | 1 - ...lexer__tests__line_comment_whitespace.snap | 1 - ...__tests__logical_newline_line_comment.snap | 1 - ..._tests__match_softkeyword_in_notebook.snap | 1 - ...r__tests__newline_in_brackets_mac_eol.snap | 1 - ...__tests__newline_in_brackets_unix_eol.snap | 1 - ...ests__newline_in_brackets_windows_eol.snap | 1 - ...ogical_newline_in_string_continuation.snap | 1 - ..._python_parser__lexer__tests__numbers.snap | 1 - ...ython_parser__lexer__tests__operators.snap | 1 - ...f_python_parser__lexer__tests__string.snap | 1 - ...sts__string_continuation_with_mac_eol.snap | 1 - ...ts__string_continuation_with_unix_eol.snap | 1 - ..._string_continuation_with_windows_eol.snap | 1 - ...ser__lexer__tests__tet_too_low_dedent.snap | 1 - ...__lexer__tests__triple_quoted_mac_eol.snap | 1 - ..._lexer__tests__triple_quoted_unix_eol.snap | 1 - ...xer__tests__triple_quoted_windows_eol.snap | 1 - ...ng__tests__invalid_byte_literal_error.snap | 1 - ...tring__tests__invalid_unicode_literal.snap | 1 - ...ng__tests__invalid_unicode_name_error.snap | 1 - ...__tests__missing_unicode_lbrace_error.snap | 1 - ...__tests__missing_unicode_rbrace_error.snap | 1 - .../snapshots/simple_tokenizer__Reverse.snap | 1 - ...mment_containing_single_quoted_string.snap | 1 - ...mment_containing_triple_quoted_string.snap | 1 - ...imple_tokenizer__empty_string_literal.snap | 1 - ...__identifier_ending_in_non_start_char.snap | 1 - ..._identifier_starting_with_string_kind.snap | 1 - ...re_word_with_only_id_continuing_chars.snap | 1 - ...d_multiline_string_containing_comment.snap | 1 - ...ltiline_string_implicit_concatenation.snap | 1 - ..._string_followed_by_multiple_comments.snap | 1 - ...mple_tokenizer__string_with_byte_kind.snap | 1 - ..._string_with_double_escaped_backslash.snap | 1 - ..._tokenizer__string_with_escaped_quote.snap | 1 - ...e_tokenizer__string_with_invalid_kind.snap | 1 - .../simple_tokenizer__string_with_kind.snap | 1 - .../simple_tokenizer__tokenize_bogus.snap | 1 - .../simple_tokenizer__tokenize_comma.snap | 1 - ...mple_tokenizer__tokenize_continuation.snap | 1 - .../simple_tokenizer__tokenize_eq.snap | 1 - ...tokenizer__tokenize_invalid_operators.snap | 1 - .../simple_tokenizer__tokenize_multichar.snap | 1 - .../simple_tokenizer__tokenize_not_eq.snap | 1 - .../simple_tokenizer__tokenize_operators.snap | 1 - ...imple_tokenizer__tokenize_parentheses.snap | 1 - .../simple_tokenizer__tokenize_slash.snap | 1 - .../simple_tokenizer__tokenize_substring.snap | 1 - .../simple_tokenizer__tokenize_trivia.snap | 1 - .../simple_tokenizer__tricky_unicode.snap | 1 - ...d_multiline_string_containing_comment.snap | 1 - .../document__delete_lines_pandas_html.snap | 1 - .../snapshots/notebook__changed_notebook.snap | 1 - .../snapshots/notebook__initial_notebook.snap | 1 - crates/ty/tests/cli/analysis_options.rs | 4 +- crates/ty/tests/cli/config_option.rs | 30 +- crates/ty/tests/cli/exit_code.rs | 26 +- crates/ty/tests/cli/file_selection.rs | 104 +++--- crates/ty/tests/cli/main.rs | 74 ++--- crates/ty/tests/cli/python_environment.rs | 238 +++++++------- crates/ty/tests/cli/rule_selection.rs | 62 ++-- crates/ty/tests/file_watching.rs | 6 +- crates/ty_ide/src/all_symbols.rs | 2 +- crates/ty_ide/src/code_action.rs | 28 +- crates/ty_ide/src/completion.rs | 200 +++++------- crates/ty_ide/src/doc_highlights.rs | 6 +- crates/ty_ide/src/docstring.rs | 56 ++-- crates/ty_ide/src/document_symbols.rs | 6 +- crates/ty_ide/src/find_references.rs | 52 +-- crates/ty_ide/src/goto_declaration.rs | 76 ++--- crates/ty_ide/src/goto_definition.rs | 42 +-- crates/ty_ide/src/goto_type_definition.rs | 50 +-- crates/ty_ide/src/hover.rs | 128 ++++---- crates/ty_ide/src/importer.rs | 139 ++++---- crates/ty_ide/src/inlay_hints.rs | 172 +++++++--- crates/ty_ide/src/rename.rs | 80 ++--- crates/ty_ide/src/selection_range.rs | 8 +- crates/ty_ide/src/semantic_tokens.rs | 16 +- crates/ty_ide/src/signature_help.rs | 18 +- crates/ty_ide/src/symbols.rs | 58 ++-- crates/ty_ide/src/workspace_symbols.rs | 12 +- crates/ty_module_resolver/src/list.rs | 4 +- crates/ty_module_resolver/src/typeshed.rs | 2 +- crates/ty_project/src/glob/portable.rs | 6 +- ...-…_-_Earlier_versions_(f2859c9800f37c7).snap | 1 + ...lity_-_Diagnostics_(be8f5d8b0718ee54).snap | 1 + ...sert_type`_-_Basic_(c507788da2659ec9).snap | 1 + ...ey_type_-_For_a_`dict`_(4aa9d1d82d07fcf1).snap | 1 + ...key_type_-_For_a_`list`_(752cfa73fb34c1c).snap | 1 + ..._Invalid_key_type_for…_(815dae276e2fd2b7).snap | 1 + ...ue_type_-_For_a_`dict`_(177872afa1956fef).snap | 1 + ...ue_type_-_For_a_`list`_(e7ebbd4af387837c).snap | 1 + ..._Invalid_value_type_f…_(155d53762388f9ad).snap | 1 + ..._Misspelled_key_for_`…_(7cf0fa634e2a2d59).snap | 1 + ..._No_`__setitem__`_met…_(468f62a3bdd1d60c).snap | 1 + ..._Possibly_missing_`__…_(efd3f0c02e9b89e9).snap | 1 + ..._Unknown_key_for_all_…_(8a0f0e8ceccc51b2).snap | 1 + ..._Unknown_key_for_one_…_(b515711c0a451a86).snap | 1 + ..._Wrong_value_type_for…_(57372b65e30392a8).snap | 1 + ..._Wrong_value_type_for…_(ffe39a3bae68cfe4).snap | 1 + ...ccidental_use_of_as…_(5b8c1b4d846bc544).snap | 1 + ...`__aiter__`_metho…_(4fbd80e21774cc23).snap | 1 + ...`__anext__`_metho…_(a0b186714127abee).snap | 1 + ...sibly_missing_`__…_(33924dbae5117216).snap | 1 + ...sibly_missing_`__…_(e2600ca4708d9e54).snap | 1 + ...chronously_iterab…_(80fa705b1c61d982).snap | 1 + ...ng_signature_for_…_(b614724363eec343).snap | 1 + ...ong_signature_for_…_(e1f3e9275d0a367).snap | 1 + ...nvalid_`__set__`_me…_(116c27bd98838df7).snap | 1 + ...nvalid_argument_typ…_(a903c11fedbc5020).snap | 1 + ...nstance_attributes_…_(ebfb3de6d1b96b23).snap | 1 + ...ossibly-missing_att…_(e603e3da35f55c73).snap | 1 + ...ure_instance_attrib…_(d13d57d3cc36face).snap | 1 + ...etting_attributes_o…_(467e26496f4c0c13).snap | 1 + ...-_Unknown_attributes_(368ba83a71ef2120).snap | 1 + ...gnment_-_`ClassVar`s_(8d7cca27987b099d).snap | 1 + ...ributes_of_standa…_(49ba2c9016d64653).snap | 1 + ...gnostic_for_funct…_(340818ba77052e65).snap | 1 + ...alid_access_to_at…_(5457445ffed43a87).snap | 1 + ...nimported_submodule…_(2b6da09ed380b2).snap | 1 + ..._Unsupported_types_(a041d9e40c83a8ac).snap | 1 + ...alid_exception_ha…_(d394c561bdd35078).snap | 1 + ...cial-cased_diagno…_(a97274530a7f61c1).snap | 1 + ...empting_to_import…_(2fcfcf567587a056).snap | 1 + ...empting_to_import…_(c14954eefd15211f).snap | 1 + ...empting_to_import…_(dba22bd97137ee38).snap | 1 + ...tiple_objects_imp…_(cbfbf5ff94e6e104).snap | 1 + ...esolvable_module_…_(846453deaca1071c).snap | 1 + ...esolvable_submodu…_(4fad4be9778578b7).snap | 1 + ..._builtin_`NotImpl…_(ac366391ebdec9c0).snap | 1 + ...agnostic_snapshots_(91dd3d45b6d7f2c8).snap | 1 + ...iagnostics_for_bad_…_(2ceba7b720e21b8b).snap | 1 + ...iagnostics_for_bad_…_(cf706b07cf0ec31f).snap | 1 + ..._operat…_-_Classes_(93f2f1c488e06f53).snap | 1 + ...lasses_from_differe…_(2890e4875c9b9c1e).snap | 1 + ...rozen__non-frozen_in…_(9af2ab07b8e829e).snap | 1 + ...taclasses.KW_ONLY…_(dd1b8f2f71487f16).snap | 1 + ...TypedDict_deletion_(1168a65357694229).snap | 1 + ...pr…_-_Introduction_(cff2724f4c9d28c4).snap | 1 + ...e_`@depr…_-_Syntax_(142fa2948c3c6cf1).snap | 1 + ...roperties_with_no_s…_(176795bc1727dda7).snap | 1 + ..._possibly-undefined…_(fc7b496fd1986deb).snap | 2 +- ...annot_override_a_me…_(338615109711a91b).snap | 2 +- ...iagnostic_edge_case…_(2389d52c5ecfa2bd).snap | 1 + ...nly_the_first_`@fin…_(9863b583f4c651c5).snap | 1 + ...verloaded_methods_d…_(861757f48340ed92).snap | 2 +- ...verloads_in_statica…_(29a698d9deaf7318).snap | 1 + ...-_Full_diagnostics_(174fdd8134fb325b).snap | 1 + ..._`__getitem__`_me…_(3ffe352bb3a76715).snap | 1 + ...-_Invalid_iterable_(3153247bb9a9b72a).snap | 1 + ..._over_old_style_i…_(a90ba167a7c191eb).snap | 1 + ...`__iter__`_method…_(36425dbcbd793d2b).snap | 1 + ...sibly-not-callabl…_(49a21e4b7fe6e97b).snap | 1 + ...sibly_invalid_`__…_(6388761c90a0555c).snap | 1 + ...sibly_invalid_`__…_(6805a6032e504b63).snap | 1 + ...sibly_invalid_`__…_(c626bde8651b643a).snap | 1 + ...sibly_missing_`__…_(77269542b8e81774).snap | 1 + ...sibly_missing_`__…_(9f781babda99d74b).snap | 1 + ...sibly_missing_`__…_(d8a02a0fcbb390a3).snap | 1 + ...on_type_as_iterab…_(6177bb6d13a22241).snap | 1 + ...on_type_as_iterab…_(ba36fbef63a14969).snap | 1 + ...h_non-callable_it…_(a1cdf01ad69ac37c).snap | 1 + ...iter__`_does_not_…_(92e3fdd69edad63d).snap | 1 + ...iter__`_method_wi…_(1136c0e783d61ba4).snap | 1 + ...iter__`_returns_a…_(707bd02a22c4acc8).snap | 1 + ...gnostics_for_unio…_(5396a8f9e7f88f71).snap | 1 + ...nferring_a_bound_ty…_(d50204b9d91b7bd1).snap | 1 + ...nferring_a_constrai…_(48ab83f977c109b4).snap | 1 + ...nferring_a_bound_ty…_(5935d14c26afe407).snap | 1 + ...nferring_a_constrai…_(d2c475fccc70a8e2).snap | 1 + ...getitem__`_unboun…_(b1b0f9ed2b7302b2).snap | 1 + ..._Built-ins_with_impli…_(f5857d64ce69ca1d).snap | 1 + ...`__slots__`___incompa…_(98b54233987eb654).snap | 1 + ...perations_involving…_(492b1163b8163c05).snap | 1 + ...nsupported_operator…_(27f95f68d1c826ec).snap | 1 + ..._List-literal_used_wh…_(f80dbf5dd571c940).snap | 1 + ..._Module-literal_used_…_(652fec4fd4a6c63a).snap | 1 + ..._Special-cased_diagno…_(a4b698196d337a3f).snap | 1 + ..._Tuple-literal_used_w…_(f61204fc81905069).snap | 1 + ...argument_typ…_-_Basic_(16be9d90a741761).snap | 1 + ...p…_-_Calls_to_methods_(4b3b8695d519a02).snap | 1 + ...p…_-_Different_files_(d02c38e2dd054b4c).snap | 1 + ..._Different_source_ord…_(9b0bf549733d3f0a).snap | 1 + ...p…_-_Many_parameters_(ee38fd34ceba3293).snap | 1 + ..._Many_parameters_acro…_(1d5d112808c49e9d).snap | 1 + ..._Many_parameters_with…_(4bc5c16cd568b8ec).snap | 1 + ...-_Test_calling_a_funct…_(3b18271a821a59b).snap | 1 + ...¦_-_Keyword_only_argumen…_(8d9f18c78137411).snap | 1 + ...y_…_-_Mix_of_arguments_(cfc64b1136058112).snap | 1 + ...¦_-_One_keyword_argument_(cc34b2f7d19d427e).snap | 1 + ...ty_…_-_Only_positional_(3dc93b1709eb3be9).snap | 1 + ...€¦_-_Synthetic_arguments_(4c09844bbbf47741).snap | 1 + ...…_-_Variadic_arguments_(e26a3e7b2773a63b).snap | 1 + ..._-_Variadic_keyword_arg…_(4c855e39ea6baeaf).snap | 1 + ..._TypeVars_with_bounds…_(25b61918ea9f5644).snap | 1 + ..._Types_with_the_same_…_(34531e82322f6f21).snap | 1 + ...-_Annotated_assignment_(4b799ca1eeb857b9).snap | 1 + ..._Multiline_expression…_(f316976ffe72c6c7).snap | 1 + ...…_-_Multiple_targets_(e20ddfd7a91affb0).snap | 1 + ...…_-_Named_expression_(35c120b3bd9929f8).snap | 1 + ...-_Unannotated_assignme…_(67e4b9239d5681a).snap | 1 + ...it_diagno…_-_Basic_(f15db7dc447d0795).snap | 1 + ...ustom_type_with_mis…_(9ce1ee3cd1c9c8d1).snap | 1 + ...Custom_type_with_pos…_(a028edbafe180ca).snap | 1 + ...nvalid_union_return…_(fedf62ffaca0f2d7).snap | 1 + ...on-callable_`__awai…_(d78580fb6720e4ea).snap | 1 + ...__await__`_definiti…_(15b05c126b6ae968).snap | 1 + ...__await__`_definiti…_(ccb69f512135dd61).snap | 1 + ...nvalid_Order_of_Leg…_(eaa359e8d6b3031d).snap | 1 + ...classinfo`_is_an_in…_(eeef56c0ef87a30b).snap | 1 + ...classinfo`_is_an_in…_(7bb66a0f412caac1).snap | 1 + ...oolean_parameters_m…_(3edf97b20f58fa11).snap | 1 + ...annot_be_both_covar…_(b7b0976739681470).snap | 1 + ...annot_have_both_bou…_(4ca5f13621915554).snap | 1 + ...annot_have_only_one…_(8b0258f5188209c6).snap | 1 + ...nvalid_feature_for_…_(72827c64b5c73d05).snap | 1 + ...nvalid_keyword_argu…_(39164266ada3dc2f).snap | 1 + ...ust_be_directly_ass…_(c2e3e46852bb268f).snap | 1 + ...¦_-_Must_have_a_name_(79a4ce09338e666b).snap | 1 + ...ame_can't_be_given_…_(8f6aed0dba79e995).snap | 1 + ...o_variadic_argument…_(9d57505425233fd8).snap | 1 + ...TypeVar`_parameter_…_(8424f2b8bc4351f9).snap | 1 + ...ad_override_of_`__e…_(4b336040d5332220).snap | 1 + ...ge_case___function_…_(c8756a54d1cb8499).snap | 1 + ...ully_qualified_name…_(8f6f7c5aace58329).snap | 1 + ..._-_Method_parameters_(d98059266bcc1e13).snap | 1 + ..._Method_return_types_(3e0c19bed14cfacd).snap | 1 + ...taticmethods_and_cl…_(49e28aae6fdd1291).snap | 1 + ..._Synthesized_methods_(9e6e6c7368530460).snap | 1 + ...he_entire_class_hie…_(5e8fca10d966c36e).snap | 1 + ...es_-_Parameterized_(ec84ce49ea235791).snap | 1 + ...eturn_type_that_doe…_(feccf6b9da1e7cd3).snap | 1 + ...sing_argument_dia…_(f0811e84fcea1085).snap | 1 + ...nresolvable_MROs_in…_(e2b355c09a967862).snap | 1 + ...__bases__`_includes…_(d2532518c44112c8).snap | 1 + ...__bases__`_lists_th…_(6f8d0bf648c4b305).snap | 1 + ...__bases__`_lists_wi…_(ea7ebc83ec359b54).snap | 1 + ..._case___multiple_…_(f30babd05c89dce9).snap | 1 + ...edTuples_cannot_h…_(e2ed186fe2b2fc35).snap | 1 + ...uple`_-_Definition_(bbf79630502e65e9).snap | 1 + ...ltiple_Inheritance_(82ed33d1b3b433d8).snap | 1 + ..._base_of_a_`NewTy…_(9847ea9eddc316b4).snap | 1 + ...Trying_to_subclass_a…_(fd3c73e2a9f04).snap | 1 + ...-_A_class_constructor_…_(dd9f8a8f736a329).snap | 1 + ..._A_method_call_with_u…_(31cb5f881221158e).snap | 1 + ..._Call_to_function_wit…_(dd80c593d9136f35).snap | 1 + ..._Call_to_function_wit…_(f66e3a8a3977c472).snap | 1 + ..._Calls_to_overloaded_…_(3553d085684e16a0).snap | 1 + ..._Calls_to_overloaded_…_(36814b28492c01d2).snap | 1 + ...ect_that_implemen…_(ab3f546bf004e24d).snap | 1 + ...timization___Limit_…_(cd61048adbc17331).snap | 1 + ..._least_two_overloa…_(84dadf8abd8f2f2).snap | 1 + ...…_-_`@classmethod`_(aaa04d4cfa3adaba).snap | 1 + ...ecorat…_-_`@final`_(f8e529ec23a61665).snap | 1 + ...rat…_-_`@override`_(2df210735ca532f9).snap | 1 + ...€¦_-_Regular_modules_(5c8e81664d1c7470).snap | 1 + ...verload`-decorate…_(d17a1580f99a6402).snap | 1 + ...override`_-_Basics_(b7c220f8171f11f0).snap | 2 +- ...ls_to_protocol_cl…_(288988036f34ddcf).snap | 1 + ...gnostics_for_prot…_(585a3e9545d41b64).snap | 1 + ...alid_calls_to_`ge…_(3d0c4ee818c4d8d5).snap | 1 + ...rrowing_of_protoco…_(98257e7c2300373).snap | 1 + ...tocol_members_in_…_(21be5d9bdab1c844).snap | 1 + ...gnostics_for_`inv…_(35563a74094b14d5).snap | 1 + ...ons_-_Asynchronous_(408134055c24a538).snap | 1 + ...ions_-_Synchronous_(6a32ec69d15117b8).snap | 1 + ...alid_conditional_…_(94c036c5d3803ab2).snap | 1 + ...alid_implicit_ret…_(393cb38bf7119649).snap | 1 + ...alid_implicit_ret…_(3d2d19aa49b28f1c).snap | 1 + ...nvalid_return_type_(a91e0c67519cd77f).snap | 1 + ...alid_return_type_…_(c3a523878447af6b).snap | 1 + ...hained_comparisons_…_(c391c13e2abc18a0).snap | 1 + ..._Generic_class_within…_(3259718bf20b45a2).snap | 1 + ..._Generic_class_within…_(711fb86287c4d87b).snap | 1 + ...ehensio…_-_Python_3.10_(96aa8ec77d46553d).snap | 1 + ...-_`break`_and_`continu…_(3143ba0a999d644).snap | 1 + ..._name_is_parameter_an…_(99bae53daf67ae6e).snap | 1 + ...licit_class_shado…_(c8ff9e3a079e8bd5).snap | 1 + ...licit_function_sh…_(a1515328b775ebc1).snap | 1 + ..._Call_to_function_wit…_(8fdf5a06afc7d4fe).snap | 1 + ..._Limited_number_of_ov…_(93e9a157fdca3ab2).snap | 1 + ...iagnostics_for_inva…_(249d635e74a41c9e).snap | 1 + ...licit_Super_Objec…_(b753048091f275c0).snap | 1 + ...licit_Super_Objec…_(f9e5e48e3a4a4c12).snap | 1 + ...gnostic_when_the_…_(93e8ab913ead83b2).snap | 1 + ...idental_use_of_no…_(b07503f9b773ea61).snap | 1 + ...oo-many-positional-…_(eafa522239b42502).snap | 1 + ...ined_comparisons_…_(f45f1da2f8ca693d).snap | 1 + ...ality_with_elemen…_(39b614d4707c0661).snap | 1 + ...parison_Unsupport…_(966dd82bd3668d0e).snap | 1 + ...agnostic_snapshots_(662547cd88c67f9f).snap | 1 + ...Multiple_unused_comm…_(7cbe4a1d9893a05).snap | 1 + ...€¦_-_Nested_comments_(6e4dc67270e388d2).snap | 1 + ...ict`_-_Diagnostics_(e5289abf5c570c29).snap | 1 + ...ping.TypedDict`_i…_(9df67eb93e3df341).snap | 1 + ...undant_cast_warni…_(75ac240a2d1f7108).snap | 1 + ..._smaller_scale_exam…_(c24ecd8582e5eb2f).snap | 1 + ...ultiple_variants_bu…_(d840ac443ca8ec7f).snap | 1 + ..._Cover_keyword_argume…_(ad1d489710ee2a34).snap | 1 + ..._Cover_non-keyword_re…_(707b284610419a54).snap | 1 + ..._Truncation_for_long_…_(ec94b5e857284ef3).snap | 2 +- ...upported_operatio…_(e15acf820f65e3e4).snap | 1 + ...nown_argument_dia…_(f419c2a8e2ce2412).snap | 1 + ...ctly_too_few_valu…_(f920ea85eefe9cfe).snap | 1 + ...actly_too_many_val…_(a53a2aec02bc999).snap | 1 + ...ht_hand_side_not_…_(fae6e2d526396252).snap | 1 + ..._few_values_to_un…_(cef19e6b2b58e6a3).snap | 1 + ...ver`-inferred_var…_(6ce5aa6d2a0ce029).snap | 1 + ...n_unresolvable_impo…_(72d090df51ea97b8).snap | 1 + ...sing_`from`_with_a_…_(12d4a70b7fc67cc6).snap | 1 + ...sing_`from`_with_an…_(6cff507dc64a1bff).snap | 1 + ...sing_`from`_with_an…_(9da56616d6332a83).snap | 1 + ...sing_`from`_with_an…_(9fa713dfa17cc404).snap | 1 + ...sing_`from`_with_to…_(4b8ba6ee48180cdd).snap | 1 + ..._New_builtin_used_on_…_(51edda0b1aebc2bf).snap | 1 + ...arison___Unsuppor…_(c13dd5902282489a).snap | 1 + ..._Has_a_`__bool__`_att…_(2721d40bf12fe8b7).snap | 1 + ..._Has_a_`__bool__`_met…_(15636dc4074e5335).snap | 1 + ..._Has_a_`__bool__`_met…_(ce8b8da49eaf4cda).snap | 1 + ...-_Part_of_a_union_wher…_(7cca8063ea43c1a).snap | 1 + ...tatement_-_Before_3.10_(2545eaa83b635b8b).snap | 1 + .../ty_python_semantic/src/types/display.rs | 12 +- crates/ty_server/tests/e2e/notebook.rs | 12 +- 897 files changed, 1663 insertions(+), 1926 deletions(-) diff --git a/crates/ruff/src/commands/format.rs b/crates/ruff/src/commands/format.rs index 0e245efa8c..eb768bee58 100644 --- a/crates/ruff/src/commands/format.rs +++ b/crates/ruff/src/commands/format.rs @@ -1305,7 +1305,7 @@ mod tests { settings.add_filter(r"(Panicked at) [^:]+:\d+:\d+", "$1 "); let _s = settings.bind_to_scope(); - assert_snapshot!(str::from_utf8(&buf)?, @r" + assert_snapshot!(str::from_utf8(&buf)?, @" io: test.py: Permission denied --> test.py:1:1 diff --git a/crates/ruff/src/commands/snapshots/ruff__commands__check__test__E902_E902.py.snap b/crates/ruff/src/commands/snapshots/ruff__commands__check__test__E902_E902.py.snap index 0f9000a8e1..dc08e63e9e 100644 --- a/crates/ruff/src/commands/snapshots/ruff__commands__check__test__E902_E902.py.snap +++ b/crates/ruff/src/commands/snapshots/ruff__commands__check__test__E902_E902.py.snap @@ -4,4 +4,3 @@ source: crates/ruff/src/commands/check.rs /home/ferris/project/code.py:1:1: E902 Permission denied (os error 13) /home/ferris/project/notebook.ipynb:1:1: E902 Permission denied (os error 13) /home/ferris/project/pyproject.toml:1:1: E902 Permission denied (os error 13) - diff --git a/crates/ruff/src/snapshots/ruff__version__tests__version_formatting.snap b/crates/ruff/src/snapshots/ruff__version__tests__version_formatting.snap index 0009f4a09c..501be194f8 100644 --- a/crates/ruff/src/snapshots/ruff__version__tests__version_formatting.snap +++ b/crates/ruff/src/snapshots/ruff__version__tests__version_formatting.snap @@ -1,6 +1,5 @@ --- source: crates/ruff/src/version.rs expression: version -snapshot_kind: text --- 0.0.0 diff --git a/crates/ruff/src/snapshots/ruff__version__tests__version_formatting_with_commit_info.snap b/crates/ruff/src/snapshots/ruff__version__tests__version_formatting_with_commit_info.snap index 59aa8927d5..b661aab1a7 100644 --- a/crates/ruff/src/snapshots/ruff__version__tests__version_formatting_with_commit_info.snap +++ b/crates/ruff/src/snapshots/ruff__version__tests__version_formatting_with_commit_info.snap @@ -1,6 +1,5 @@ --- source: crates/ruff/src/version.rs expression: version -snapshot_kind: text --- 0.0.0 (53b0f5d92 2023-10-19) diff --git a/crates/ruff/src/snapshots/ruff__version__tests__version_formatting_with_commits_since_last_tag.snap b/crates/ruff/src/snapshots/ruff__version__tests__version_formatting_with_commits_since_last_tag.snap index e7055e7459..8b856e8cf2 100644 --- a/crates/ruff/src/snapshots/ruff__version__tests__version_formatting_with_commits_since_last_tag.snap +++ b/crates/ruff/src/snapshots/ruff__version__tests__version_formatting_with_commits_since_last_tag.snap @@ -1,6 +1,5 @@ --- source: crates/ruff/src/version.rs expression: version -snapshot_kind: text --- 0.0.0+24 (53b0f5d92 2023-10-19) diff --git a/crates/ruff/src/snapshots/ruff__version__tests__version_serializable.snap b/crates/ruff/src/snapshots/ruff__version__tests__version_serializable.snap index 352b2da34b..afb49fad96 100644 --- a/crates/ruff/src/snapshots/ruff__version__tests__version_serializable.snap +++ b/crates/ruff/src/snapshots/ruff__version__tests__version_serializable.snap @@ -1,7 +1,6 @@ --- source: crates/ruff/src/version.rs expression: version -snapshot_kind: text --- { "version": "0.0.0", diff --git a/crates/ruff/tests/analyze_graph.rs b/crates/ruff/tests/analyze_graph.rs index 993ebf3b59..483e745d73 100644 --- a/crates/ruff/tests/analyze_graph.rs +++ b/crates/ruff/tests/analyze_graph.rs @@ -132,29 +132,29 @@ fn dependents() -> Result<()> { insta::with_settings!({ filters => INSTA_FILTERS.to_vec(), }, { - assert_cmd_snapshot!(command().arg("--direction").arg("dependents").current_dir(&root), @r###" - success: true - exit_code: 0 - ----- stdout ----- - { - "ruff/__init__.py": [], - "ruff/a.py": [], - "ruff/b.py": [ - "ruff/a.py" - ], - "ruff/c.py": [ - "ruff/b.py" - ], - "ruff/d.py": [ - "ruff/c.py" - ], - "ruff/e.py": [ - "ruff/d.py" - ] - } + assert_cmd_snapshot!(command().arg("--direction").arg("dependents").current_dir(&root), @r#" + success: true + exit_code: 0 + ----- stdout ----- + { + "ruff/__init__.py": [], + "ruff/a.py": [], + "ruff/b.py": [ + "ruff/a.py" + ], + "ruff/c.py": [ + "ruff/b.py" + ], + "ruff/d.py": [ + "ruff/c.py" + ], + "ruff/e.py": [ + "ruff/d.py" + ] + } - ----- stderr ----- - "###); + ----- stderr ----- + "#); }); Ok(()) @@ -184,21 +184,21 @@ fn string_detection() -> Result<()> { insta::with_settings!({ filters => INSTA_FILTERS.to_vec(), }, { - assert_cmd_snapshot!(command().current_dir(&root), @r###" - success: true - exit_code: 0 - ----- stdout ----- - { - "ruff/__init__.py": [], - "ruff/a.py": [ - "ruff/b.py" - ], - "ruff/b.py": [], - "ruff/c.py": [] - } + assert_cmd_snapshot!(command().current_dir(&root), @r#" + success: true + exit_code: 0 + ----- stdout ----- + { + "ruff/__init__.py": [], + "ruff/a.py": [ + "ruff/b.py" + ], + "ruff/b.py": [], + "ruff/c.py": [] + } - ----- stderr ----- - "###); + ----- stderr ----- + "#); }); insta::with_settings!({ @@ -319,7 +319,7 @@ fn globs() -> Result<()> { insta::with_settings!({ filters => INSTA_FILTERS.to_vec(), }, { - assert_cmd_snapshot!(command().current_dir(&root), @r###" + assert_cmd_snapshot!(command().current_dir(&root), @r#" success: true exit_code: 0 ----- stdout ----- @@ -340,7 +340,7 @@ fn globs() -> Result<()> { } ----- stderr ----- - "###); + "#); }); Ok(()) @@ -368,7 +368,7 @@ fn exclude() -> Result<()> { insta::with_settings!({ filters => INSTA_FILTERS.to_vec(), }, { - assert_cmd_snapshot!(command().current_dir(&root), @r###" + assert_cmd_snapshot!(command().current_dir(&root), @r#" success: true exit_code: 0 ----- stdout ----- @@ -381,7 +381,7 @@ fn exclude() -> Result<()> { } ----- stderr ----- - "###); + "#); }); Ok(()) @@ -421,7 +421,7 @@ fn wildcard() -> Result<()> { insta::with_settings!({ filters => INSTA_FILTERS.to_vec(), }, { - assert_cmd_snapshot!(command().current_dir(&root), @r###" + assert_cmd_snapshot!(command().current_dir(&root), @r#" success: true exit_code: 0 ----- stdout ----- @@ -443,7 +443,7 @@ fn wildcard() -> Result<()> { } ----- stderr ----- - "###); + "#); }); Ok(()) @@ -639,7 +639,7 @@ fn venv() -> Result<()> { }, { assert_cmd_snapshot!( command().args(["--python", "none"]).arg("packages/albatross").current_dir(&root), - @r" + @" success: false exit_code: 2 ----- stdout ----- @@ -695,7 +695,7 @@ fn notebook_basic() -> Result<()> { insta::with_settings!({ filters => INSTA_FILTERS.to_vec(), }, { - assert_cmd_snapshot!(command().current_dir(&root), @r###" + assert_cmd_snapshot!(command().current_dir(&root), @r#" success: true exit_code: 0 ----- stdout ----- @@ -708,7 +708,7 @@ fn notebook_basic() -> Result<()> { } ----- stderr ----- - "###); + "#); }); Ok(()) @@ -765,7 +765,7 @@ fn notebook_with_magic() -> Result<()> { insta::with_settings!({ filters => INSTA_FILTERS.to_vec(), }, { - assert_cmd_snapshot!(command().current_dir(&root), @r###" + assert_cmd_snapshot!(command().current_dir(&root), @r#" success: true exit_code: 0 ----- stdout ----- @@ -778,7 +778,7 @@ fn notebook_with_magic() -> Result<()> { } ----- stderr ----- - "###); + "#); }); Ok(()) diff --git a/crates/ruff/tests/cli/analyze_graph.rs b/crates/ruff/tests/cli/analyze_graph.rs index 85d9059c9d..a0024c9bdc 100644 --- a/crates/ruff/tests/cli/analyze_graph.rs +++ b/crates/ruff/tests/cli/analyze_graph.rs @@ -29,7 +29,7 @@ fn type_checking_imports() -> anyhow::Result<()> { ("ruff/c.py", ""), ])?; - assert_cmd_snapshot!(test.command(), @r###" + assert_cmd_snapshot!(test.command(), @r#" success: true exit_code: 0 ----- stdout ----- @@ -46,12 +46,12 @@ fn type_checking_imports() -> anyhow::Result<()> { } ----- stderr ----- - "###); + "#); assert_cmd_snapshot!( test.command() .arg("--no-type-checking-imports"), - @r###" + @r#" success: true exit_code: 0 ----- stdout ----- @@ -65,7 +65,7 @@ fn type_checking_imports() -> anyhow::Result<()> { } ----- stderr ----- - "### + "# ); Ok(()) @@ -103,7 +103,7 @@ fn type_checking_imports_from_config() -> anyhow::Result<()> { ), ])?; - assert_cmd_snapshot!(test.command(), @r###" + assert_cmd_snapshot!(test.command(), @r#" success: true exit_code: 0 ----- stdout ----- @@ -117,7 +117,7 @@ fn type_checking_imports_from_config() -> anyhow::Result<()> { } ----- stderr ----- - "###); + "#); test.write_file( "ruff.toml", @@ -127,7 +127,7 @@ fn type_checking_imports_from_config() -> anyhow::Result<()> { "#, )?; - assert_cmd_snapshot!(test.command(), @r###" + assert_cmd_snapshot!(test.command(), @r#" success: true exit_code: 0 ----- stdout ----- @@ -144,7 +144,7 @@ fn type_checking_imports_from_config() -> anyhow::Result<()> { } ----- stderr ----- - "### + "# ); Ok(()) diff --git a/crates/ruff/tests/cli/format.rs b/crates/ruff/tests/cli/format.rs index 7ab9e59f26..355f885008 100644 --- a/crates/ruff/tests/cli/format.rs +++ b/crates/ruff/tests/cli/format.rs @@ -51,7 +51,7 @@ fn default_files() -> Result<()> { assert_cmd_snapshot!(test.format_command() .arg("--isolated") - .arg("--check"), @r" + .arg("--check"), @" success: false exit_code: 1 ----- stdout ----- @@ -71,7 +71,7 @@ fn format_warn_stdin_filename_with_files() -> Result<()> { assert_cmd_snapshot!(test.format_command() .args(["--isolated", "--stdin-filename", "foo.py"]) .arg("foo.py") - .pass_stdin("foo = 1"), @r" + .pass_stdin("foo = 1"), @" success: true exit_code: 0 ----- stdout ----- @@ -87,7 +87,7 @@ fn format_warn_stdin_filename_with_files() -> Result<()> { fn nonexistent_config_file() -> Result<()> { let test = CliTest::new()?; assert_cmd_snapshot!(test.format_command() - .args(["--config", "foo.toml", "."]), @r" + .args(["--config", "foo.toml", "."]), @" success: false exit_code: 2 ----- stdout ----- @@ -111,7 +111,7 @@ fn nonexistent_config_file() -> Result<()> { fn config_override_rejected_if_invalid_toml() -> Result<()> { let test = CliTest::new()?; assert_cmd_snapshot!(test.format_command() - .args(["--config", "foo = bar", "."]), @r" + .args(["--config", "foo = bar", "."]), @" success: false exit_code: 2 ----- stdout ----- @@ -145,7 +145,7 @@ fn too_many_config_files() -> Result<()> { .arg("ruff.toml") .arg("--config") .arg("ruff2.toml") - .arg("."), @r" + .arg("."), @" success: false exit_code: 2 ----- stdout ----- @@ -168,7 +168,7 @@ fn config_file_and_isolated() -> Result<()> { .arg("--isolated") .arg("--config") .arg("ruff.toml") - .arg("."), @r" + .arg("."), @" success: false exit_code: 2 ----- stdout ----- @@ -390,7 +390,7 @@ fn mixed_line_endings() -> Result<()> { assert_cmd_snapshot!(test.format_command() .arg("--diff") .arg("--isolated") - .arg("."), @r" + .arg("."), @" success: true exit_code: 0 ----- stdout ----- @@ -446,7 +446,7 @@ OTHER = "OTHER" // Explicitly pass test.py, should be formatted regardless of it being excluded by format.exclude .arg("test.py") // Format all other files in the directory, should respect the `exclude` and `format.exclude` options - .arg("."), @r" + .arg("."), @" success: false exit_code: 1 ----- stdout ----- @@ -469,7 +469,7 @@ fn deduplicate_directory_and_explicit_file() -> Result<()> { .arg("--check") .arg(".") .arg("main.py"), - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -495,7 +495,7 @@ from module import = assert_cmd_snapshot!(test.format_command() .arg("--check") .arg("--isolated") - .arg("main.py"), @r" + .arg("main.py"), @" success: false exit_code: 2 ----- stdout ----- @@ -522,7 +522,7 @@ if __name__ == "__main__": assert_cmd_snapshot!(test.format_command() .arg("--isolated") .arg("--check") - .arg("main.py"), @r" + .arg("main.py"), @" success: false exit_code: 1 ----- stdout ----- @@ -534,7 +534,7 @@ if __name__ == "__main__": assert_cmd_snapshot!(test.format_command() .arg("--isolated") - .arg("main.py"), @r" + .arg("main.py"), @" success: true exit_code: 0 ----- stdout ----- @@ -545,7 +545,7 @@ if __name__ == "__main__": assert_cmd_snapshot!(test.format_command() .arg("--isolated") - .arg("main.py"), @r" + .arg("main.py"), @" success: true exit_code: 0 ----- stdout ----- @@ -614,7 +614,7 @@ fn output_format_notebook() -> Result<()> { assert_cmd_snapshot!( test.format_command().args(["--isolated", "--preview", "--check"]).arg(path), - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -672,7 +672,7 @@ if __name__ == "__main__": assert_cmd_snapshot!(test.format_command() .arg("--isolated") .arg("--exit-non-zero-on-format") - .arg("main.py"), @r" + .arg("main.py"), @" success: false exit_code: 1 ----- stdout ----- @@ -685,7 +685,7 @@ if __name__ == "__main__": assert_cmd_snapshot!(test.format_command() .arg("--isolated") .arg("--exit-non-zero-on-format") - .arg("main.py"), @r" + .arg("main.py"), @" success: true exit_code: 0 ----- stdout ----- @@ -701,7 +701,7 @@ if __name__ == "__main__": assert_cmd_snapshot!(test.format_command() .arg("--isolated") .arg("--exit-non-zero-on-fix") - .arg("main.py"), @r" + .arg("main.py"), @" success: false exit_code: 1 ----- stdout ----- @@ -714,7 +714,7 @@ if __name__ == "__main__": assert_cmd_snapshot!(test.format_command() .arg("--isolated") .arg("--exit-non-zero-on-fix") - .arg("main.py"), @r" + .arg("main.py"), @" success: true exit_code: 0 ----- stdout ----- @@ -771,7 +771,7 @@ OTHER = "OTHER" // Explicitly pass test.py, should not be formatted because of --force-exclude .arg("test.py") // Format all other files in the directory, should respect the `exclude` and `format.exclude` options - .arg("."), @r" + .arg("."), @" success: false exit_code: 1 ----- stdout ----- @@ -931,7 +931,7 @@ tab-size = 2 .pass_stdin(r" if True: pass - "), @r" + "), @" success: false exit_code: 2 ----- stdout ----- @@ -1144,7 +1144,7 @@ def say_hy(name: str): assert_cmd_snapshot!(test.format_command() .arg("--config") .arg("ruff.toml") - .arg("test.py"), @r" + .arg("test.py"), @" success: true exit_code: 0 ----- stdout ----- @@ -1184,7 +1184,7 @@ def say_hy(name: str): assert_cmd_snapshot!(test.format_command() .arg("--config") .arg("ruff.toml") - .arg("test.py"), @r" + .arg("test.py"), @" success: true exit_code: 0 ----- stdout ----- @@ -1216,7 +1216,7 @@ def say_hy(name: str): assert_cmd_snapshot!(test.format_command() .arg("--config") .arg("ruff.toml") - .arg("test.py"), @r" + .arg("test.py"), @" success: true exit_code: 0 ----- stdout ----- @@ -1246,7 +1246,7 @@ fn test_diff() -> Result<()> { assert_cmd_snapshot!( test.format_command().args(["--isolated", "--diff"]).args(paths), - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -1311,7 +1311,7 @@ fn test_diff_no_change() -> Result<()> { let paths = [fixtures.join("unformatted.py")]; assert_cmd_snapshot!( test.format_command().args(["--isolated", "--diff"]).args(paths), - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -1341,7 +1341,7 @@ fn test_diff_stdin_unformatted() -> Result<()> { test.format_command() .args(["--isolated", "--diff", "-", "--stdin-filename", "unformatted.py"]) .pass_stdin(unformatted), - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -1366,7 +1366,7 @@ fn test_diff_stdin_formatted() -> Result<()> { let unformatted = fs::read(fixtures.join("formatted.py")).unwrap(); assert_cmd_snapshot!( test.format_command().args(["--isolated", "--diff", "-"]).pass_stdin(unformatted), - @r" + @" success: true exit_code: 0 ----- stdout ----- @@ -1873,7 +1873,7 @@ include = ["*.ipy"] assert_cmd_snapshot!(test.format_command() .args(["--config", "ruff.toml"]) .args(["--extension", "ipy:ipynb"]) - .arg("."), @r" + .arg("."), @" success: false exit_code: 2 ----- stdout ----- @@ -1938,7 +1938,7 @@ include = ["*.ipy"] assert_cmd_snapshot!(test.format_command() .args(["--config", "ruff.toml"]) .args(["--extension", "ipy:ipynb"]) - .arg("."), @r" + .arg("."), @" success: true exit_code: 0 ----- stdout ----- @@ -2021,7 +2021,7 @@ def file2(arg1, arg2,): assert_cmd_snapshot!(test.format_command() .args(["--isolated", "--range=1:8-1:15"]) .arg("file1.py") - .arg("file2.py"), @r" + .arg("file2.py"), @" success: false exit_code: 2 ----- stdout ----- @@ -2068,7 +2068,7 @@ fn range_start_larger_than_end() -> Result<()> { def foo(arg1, arg2,): print("Shouldn't format this" ) -"#), @r" +"#), @" success: false exit_code: 2 ----- stdout ----- @@ -2168,7 +2168,7 @@ fn range_missing_line() -> Result<()> { def foo(arg1, arg2,): print("Should format this" ) -"#), @r" +"#), @" success: false exit_code: 2 ----- stdout ----- @@ -2192,7 +2192,7 @@ fn zero_line_number() -> Result<()> { def foo(arg1, arg2,): print("Should format this" ) -"#), @r" +"#), @" success: false exit_code: 2 ----- stdout ----- @@ -2217,7 +2217,7 @@ fn column_and_line_zero() -> Result<()> { def foo(arg1, arg2,): print("Should format this" ) -"#), @r" +"#), @" success: false exit_code: 2 ----- stdout ----- @@ -2274,7 +2274,7 @@ fn range_formatting_notebook() -> Result<()> { "nbformat": 4, "nbformat_minor": 5 } -"#), @r" +"#), @" success: false exit_code: 2 ----- stdout ----- @@ -2355,7 +2355,7 @@ fn cookiecutter_globbing() -> Result<()> { ])?; assert_cmd_snapshot!(test.format_command() - .args(["--isolated", "--diff", "."]), @r" + .args(["--isolated", "--diff", "."]), @" success: true exit_code: 0 ----- stdout ----- @@ -2374,7 +2374,7 @@ fn stable_output_format_warning() -> Result<()> { test.format_command() .args(["--output-format=full", "-"]) .pass_stdin(""), - @r" + @" success: true exit_code: 0 ----- stdout ----- diff --git a/crates/ruff/tests/cli/lint.rs b/crates/ruff/tests/cli/lint.rs index a86d8e81be..04cabca512 100644 --- a/crates/ruff/tests/cli/lint.rs +++ b/crates/ruff/tests/cli/lint.rs @@ -39,7 +39,7 @@ inline-quotes = "single" .arg("ruff.toml") .args(["--stdin-filename", "test.py"]) .arg("-") - .pass_stdin(r#"a = "abcba".strip("aba")"#), @r" + .pass_stdin(r#"a = "abcba".strip("aba")"#), @" success: false exit_code: 1 ----- stdout ----- @@ -76,18 +76,18 @@ inline-quotes = "single" .arg("--config") .arg("ruff.toml") .arg("-") - .pass_stdin(r#"a = "abcba".strip("aba")"#), @r" - success: false - exit_code: 1 - ----- stdout ----- - -:1:5: Q000 [*] Double quotes found but single quotes preferred - -:1:5: B005 Using `.strip()` with multi-character strings is misleading - -:1:19: Q000 [*] Double quotes found but single quotes preferred - Found 3 errors. - [*] 2 fixable with the `--fix` option. + .pass_stdin(r#"a = "abcba".strip("aba")"#), @" + success: false + exit_code: 1 + ----- stdout ----- + -:1:5: Q000 [*] Double quotes found but single quotes preferred + -:1:5: B005 Using `.strip()` with multi-character strings is misleading + -:1:19: Q000 [*] Double quotes found but single quotes preferred + Found 3 errors. + [*] 2 fixable with the `--fix` option. - ----- stderr ----- - "); + ----- stderr ----- + "); Ok(()) } @@ -110,7 +110,7 @@ inline-quotes = "single" .arg("--config") .arg("ruff.toml") .arg("-") - .pass_stdin(r#"a = "abcba".strip("aba")"#), @r" + .pass_stdin(r#"a = "abcba".strip("aba")"#), @" success: false exit_code: 1 ----- stdout ----- @@ -150,7 +150,7 @@ inline-quotes = "single" .arg("--config") .arg("ruff.toml") .arg("-") - .pass_stdin(r#"a = "abcba".strip("aba")"#), @r" + .pass_stdin(r#"a = "abcba".strip("aba")"#), @" success: false exit_code: 1 ----- stdout ----- @@ -220,7 +220,7 @@ OTHER = "OTHER" // Explicitly pass test.py, should be linted regardless of it being excluded by lint.exclude .arg("test.py") // Lint all other files in the directory, should respect the `exclude` and `lint.exclude` options - .arg("."), @r" + .arg("."), @" success: false exit_code: 1 ----- stdout ----- @@ -259,16 +259,16 @@ exclude = ["main.py"] .arg(".") // Explicitly pass main.py, should be linted regardless of it being excluded by lint.exclude .arg("main.py"), - @r" - success: false - exit_code: 1 - ----- stdout ----- - main.py:1:8: F401 [*] `os` imported but unused - Found 1 error. - [*] 1 fixable with the `--fix` option. + @" + success: false + exit_code: 1 + ----- stdout ----- + main.py:1:8: F401 [*] `os` imported but unused + Found 1 error. + [*] 1 fixable with the `--fix` option. - ----- stderr ----- - " + ----- stderr ----- + " ); Ok(()) @@ -299,7 +299,7 @@ from test import say_hy if __name__ == "__main__": say_hy("dear Ruff contributor") -"#), @r" +"#), @" success: false exit_code: 1 ----- stdout ----- @@ -340,7 +340,7 @@ max-line-length = 100 _ = "---------------------------------------------------------------------------亜亜亜亜亜亜" # longer than 100 _ = "---------------------------------------------------------------------------亜亜亜亜亜亜亜亜亜亜亜亜亜亜" -"#), @r" +"#), @" success: false exit_code: 1 ----- stdout ----- @@ -381,7 +381,7 @@ from test import say_hy if __name__ == "__main__": say_hy("dear Ruff contributor") -"#), @r" +"#), @" success: false exit_code: 1 ----- stdout ----- @@ -422,7 +422,7 @@ from test import say_hy if __name__ == "__main__": say_hy("dear Ruff contributor") -"#), @r" +"#), @" success: false exit_code: 1 ----- stdout ----- @@ -461,7 +461,7 @@ ignore = ["D203", "D212"] assert_cmd_snapshot!(fixture .check_command() .current_dir(fixture.root().join("subdirectory")) - , @r" + , @" success: true exit_code: 0 ----- stdout ----- @@ -478,7 +478,7 @@ ignore = ["D203", "D212"] fn nonexistent_config_file() { assert_cmd_snapshot!(Command::new(get_cargo_bin(BIN_NAME)) .args(STDIN_BASE_OPTIONS) - .args(["--config", "foo.toml", "."]), @r" + .args(["--config", "foo.toml", "."]), @" success: false exit_code: 2 ----- stdout ----- @@ -501,7 +501,7 @@ fn nonexistent_config_file() { fn config_override_rejected_if_invalid_toml() { assert_cmd_snapshot!(Command::new(get_cargo_bin(BIN_NAME)) .args(STDIN_BASE_OPTIONS) - .args(["--config", "foo = bar", "."]), @r" + .args(["--config", "foo = bar", "."]), @" success: false exit_code: 2 ----- stdout ----- @@ -537,7 +537,7 @@ fn too_many_config_files() -> Result<()> { .arg("ruff.toml") .arg("--config") .arg("ruff2.toml") - .arg("."), @r" + .arg("."), @" success: false exit_code: 2 ----- stdout ----- @@ -556,7 +556,7 @@ fn too_many_config_files() -> Result<()> { fn extend_passed_via_config_argument() { assert_cmd_snapshot!(Command::new(get_cargo_bin(BIN_NAME)) .args(STDIN_BASE_OPTIONS) - .args(["--config", "extend = 'foo.toml'", "."]), @r" + .args(["--config", "extend = 'foo.toml'", "."]), @" success: false exit_code: 2 ----- stdout ----- @@ -588,17 +588,17 @@ extend = "ruff3.toml" )?; assert_cmd_snapshot!(fixture - .check_command(), @r" - success: false - exit_code: 2 - ----- stdout ----- + .check_command(), @" + success: false + exit_code: 2 + ----- stdout ----- - ----- stderr ----- - ruff failed - Cause: Failed to load extended configuration `[TMP]/ruff3.toml` (`[TMP]/ruff.toml` extends `[TMP]/ruff2.toml` extends `[TMP]/ruff3.toml`) - Cause: Failed to read [TMP]/ruff3.toml - Cause: No such file or directory (os error 2) - "); + ----- stderr ----- + ruff failed + Cause: Failed to load extended configuration `[TMP]/ruff3.toml` (`[TMP]/ruff.toml` extends `[TMP]/ruff2.toml` extends `[TMP]/ruff3.toml`) + Cause: Failed to read [TMP]/ruff3.toml + Cause: No such file or directory (os error 2) + "); Ok(()) } @@ -627,7 +627,7 @@ extend = "ruff.toml" assert_cmd_snapshot!(fixture .check_command(), - @r" + @" success: false exit_code: 2 ----- stdout ----- @@ -659,7 +659,7 @@ select = [E501] assert_cmd_snapshot!( fixture.check_command(), - @r" + @" success: false exit_code: 2 ----- stdout ----- @@ -688,7 +688,7 @@ fn config_file_and_isolated() -> Result<()> { .arg("--config") .arg("ruff.toml") .arg("--isolated") - .arg("."), @r" + .arg("."), @" success: false exit_code: 2 ----- stdout ----- @@ -742,7 +742,7 @@ x = "longer_than_90_charactersssssssssssssssssssssssssssssssssssssssssssssssssss .args(["--config", "lint.extend-select=['E501', 'F841']"]) .args(["--config", "lint.isort.combine-as-imports = false"]) .arg("-") - .pass_stdin(test_code), @r" + .pass_stdin(test_code), @" success: false exit_code: 1 ----- stdout ----- @@ -761,7 +761,7 @@ fn valid_toml_but_nonexistent_option_provided_via_config_argument() { assert_cmd_snapshot!(Command::new(get_cargo_bin(BIN_NAME)) .args(STDIN_BASE_OPTIONS) .args([".", "--config", "extend-select=['F481']"]), // No such code as F481! - @r" + @" success: false exit_code: 2 ----- stdout ----- @@ -788,7 +788,7 @@ fn each_toml_option_requires_a_new_flag_1() { // commas can't be used to delimit different config overrides; // you need a new --config flag for each override .args([".", "--config", "extend-select=['F841'], line-length=90"]), - @r" + @" success: false exit_code: 2 ----- stdout ----- @@ -819,7 +819,7 @@ fn each_toml_option_requires_a_new_flag_2() { // spaces *also* can't be used to delimit different config overrides; // you need a new --config flag for each override .args([".", "--config", "extend-select=['F841'] line-length=90"]), - @r" + @" success: false exit_code: 2 ----- stdout ----- @@ -886,7 +886,7 @@ fn value_given_to_table_key_is_not_inline_table_2() { assert_cmd_snapshot!(Command::new(get_cargo_bin(BIN_NAME)) .args(STDIN_BASE_OPTIONS) .args([".", "--config", r#"lint=123"#]), - @r" + @" success: false exit_code: 2 ----- stdout ----- @@ -953,7 +953,7 @@ select=["E501"] .arg("ruff.toml") .args(["--config", "line-length=110"]) .arg("-") - .pass_stdin(test_code), @r" + .pass_stdin(test_code), @" success: false exit_code: 1 ----- stdout ----- @@ -976,7 +976,7 @@ fn complex_config_setting_overridden_via_cli() -> Result<()> { .args(["--config", "lint.per-file-ignores = {'generated.py' = ['N801']}"]) .args(["--stdin-filename", "generated.py"]) .arg("-") - .pass_stdin(test_code), @r" + .pass_stdin(test_code), @" success: true exit_code: 0 ----- stdout ----- @@ -993,7 +993,7 @@ fn deprecated_config_option_overridden_via_cli() { .args(STDIN_BASE_OPTIONS) .args(["--config", "select=['N801']", "-"]) .pass_stdin("class lowercase: ..."), - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -1061,7 +1061,7 @@ include = ["*.ipy"] .check_command() .args(["--config", "ruff.toml"]) .args(["--extension", "ipy:ipynb"]) - .arg("."), @r" + .arg("."), @" success: false exit_code: 1 ----- stdout ----- @@ -1111,7 +1111,7 @@ external = ["AAA"] .pass_stdin(r#" # flake8: noqa: AAA101, BBB102 import os -"#), @r" +"#), @" success: false exit_code: 1 ----- stdout ----- @@ -1147,7 +1147,7 @@ required-version = "0.1.0" .arg("-") .pass_stdin(r#" import os -"#), @r" +"#), @" success: false exit_code: 2 ----- stdout ----- @@ -1184,7 +1184,7 @@ required-version = "{version}" .arg("-") .pass_stdin(r#" import os -"#), @r" +"#), @" success: false exit_code: 1 ----- stdout ----- @@ -1222,7 +1222,7 @@ required-version = ">{version}" .arg("-") .pass_stdin(r#" import os -"#), @r" +"#), @" success: false exit_code: 2 ----- stdout ----- @@ -1252,7 +1252,7 @@ required-version = ">=0.1.0" .arg("-") .pass_stdin(r#" import os -"#), @r" +"#), @" success: false exit_code: 1 ----- stdout ----- @@ -1289,7 +1289,7 @@ import os def func(): x = 1 -"#), @r" +"#), @" success: false exit_code: 1 ----- stdout ----- @@ -1323,7 +1323,7 @@ fn negated_per_file_ignores() -> Result<()> { .arg("ruff.toml") .arg("--select") .arg("RUF901") - , @r" + , @" success: false exit_code: 1 ----- stdout ----- @@ -1355,7 +1355,7 @@ fn negated_per_file_ignores_absolute() -> Result<()> { .arg("ruff.toml") .arg("--select") .arg("RUF901") - , @r" + , @" success: false exit_code: 1 ----- stdout ----- @@ -1389,7 +1389,7 @@ fn negated_per_file_ignores_overlap() -> Result<()> { .arg("ruff.toml") .arg("--select") .arg("RUF901") - , @r" + , @" success: true exit_code: 0 ----- stdout ----- @@ -1423,7 +1423,7 @@ import os # F401 def function(): import os # F811 print(os.name) -"#), @r" +"#), @" success: true exit_code: 0 ----- stdout ----- @@ -1466,7 +1466,7 @@ import sys .check_command() .args(["--config", "ruff.toml"]) .arg("noqa.py"), - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -1482,7 +1482,7 @@ import sys .args(["--config", "ruff.toml"]) .arg("noqa.py") .args(["--preview"]), - @r" + @" success: true exit_code: 0 ----- stdout ----- @@ -1497,7 +1497,7 @@ import sys .args(["--config", "ruff.toml"]) .arg("noqa.py") .args(["--ignore-noqa", "--preview"]), - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -1539,7 +1539,7 @@ def first_square(): .arg("-") .pass_stdin(r#" -"#), @r" +"#), @" success: true exit_code: 0 ----- stdout ----- @@ -1551,7 +1551,8 @@ def first_square(): let test_code = fs::read_to_string(fixture.root().join("noqa.py")).expect("should read test file"); - insta::assert_snapshot!(test_code, @r" + insta::assert_snapshot!(test_code, @" + def first_square(): return [x * x for x in range(20)][0] # noqa: RUF015 "); @@ -1587,7 +1588,7 @@ def unused(x): .arg("-") .pass_stdin(r#" -"#), @r" +"#), @" success: true exit_code: 0 ----- stdout ----- @@ -1599,7 +1600,8 @@ def unused(x): let test_code = fs::read_to_string(fixture.root().join("noqa.py")).expect("should read test file"); - insta::assert_snapshot!(test_code, @r" + insta::assert_snapshot!(test_code, @" + def unused(x): # noqa: ANN001, ANN201, D103 pass "); @@ -1635,7 +1637,7 @@ import a .arg("-") .pass_stdin(r#" -"#), @r" +"#), @" success: true exit_code: 0 ----- stdout ----- @@ -1647,7 +1649,8 @@ import a let test_code = fs::read_to_string(fixture.root().join("noqa.py")).expect("should read test file"); - insta::assert_snapshot!(test_code, @r" + insta::assert_snapshot!(test_code, @" + import z # noqa: I001 import c import a @@ -1684,7 +1687,7 @@ def unused(x): # noqa: ANN001, ARG001, D103 .arg("-") .pass_stdin(r#" -"#), @r" +"#), @" success: true exit_code: 0 ----- stdout ----- @@ -1696,7 +1699,8 @@ def unused(x): # noqa: ANN001, ARG001, D103 let test_code = fs::read_to_string(fixture.root().join("noqa.py")).expect("should read test file"); - insta::assert_snapshot!(test_code, @r" + insta::assert_snapshot!(test_code, @" + def unused(x): # noqa: ANN001, ANN201, ARG001, D103 pass "); @@ -1732,7 +1736,7 @@ import os .arg("-") .pass_stdin(r#" -"#), @r" +"#), @" success: true exit_code: 0 ----- stdout ----- @@ -1743,7 +1747,8 @@ import os let test_code = fs::read_to_string(fixture.root().join("noqa.py")).expect("should read test file"); - insta::assert_snapshot!(test_code, @r" + insta::assert_snapshot!(test_code, @" + # ruff: noqa F401 import os "); @@ -1779,7 +1784,7 @@ import os .arg("-") .pass_stdin(r#" -"#), @r" +"#), @" success: true exit_code: 0 ----- stdout ----- @@ -1790,7 +1795,8 @@ import os let test_code = fs::read_to_string(fixture.root().join("noqa.py")).expect("should read test file"); - insta::assert_snapshot!(test_code, @r" + insta::assert_snapshot!(test_code, @" + # ruff: disable[F401] import os "); @@ -1831,7 +1837,7 @@ print( .arg("-") .pass_stdin(r#" -"#), @r" +"#), @" success: true exit_code: 0 ----- stdout ----- @@ -1844,6 +1850,7 @@ print( fs::read_to_string(fixture.root().join("noqa.py")).expect("should read test file"); insta::assert_snapshot!(test_code, @r#" + print( """First line second line @@ -1886,7 +1893,7 @@ def first_square(): assert_cmd_snapshot!(fixture .check_command() - .args(["--add-noqa"]), @r" + .args(["--add-noqa"]), @" success: true exit_code: 0 ----- stdout ----- @@ -1915,7 +1922,7 @@ from foo import ( # noqa: F401 .check_command() .arg("--add-noqa") .arg("--select=F401") - .arg("noqa.py"), @r" + .arg("noqa.py"), @" success: true exit_code: 0 ----- stdout ----- @@ -1942,7 +1949,7 @@ def foo(): .check_command() .arg("--add-noqa=TODO: fix") .arg("--select=F401,F841") - .arg("test.py"), @r" + .arg("test.py"), @" success: true exit_code: 0 ----- stdout ----- @@ -1952,12 +1959,12 @@ def foo(): "); let content = fs::read_to_string(fixture.root().join("test.py"))?; - insta::assert_snapshot!(content, @r" -import os # noqa: F401 TODO: fix + insta::assert_snapshot!(content, @" + import os # noqa: F401 TODO: fix -def foo(): - x = 1 # noqa: F841 TODO: fix -"); + def foo(): + x = 1 # noqa: F841 TODO: fix + "); Ok(()) } @@ -1971,7 +1978,7 @@ fn add_noqa_with_newline_in_reason() -> Result<()> { .check_command() .arg("--add-noqa=line1\nline2") .arg("--select=F401") - .arg("test.py"), @r###" + .arg("test.py"), @" success: false exit_code: 2 ----- stdout ----- @@ -1979,7 +1986,7 @@ fn add_noqa_with_newline_in_reason() -> Result<()> { ----- stderr ----- ruff failed Cause: --add-noqa cannot contain newline characters - "###); + "); Ok(()) } @@ -2003,7 +2010,7 @@ select = ["UP006"] .arg("pyproject.toml") .args(["--stdin-filename", "test.py"]) .arg("-") - .pass_stdin(r#"from typing import List; foo: List[int]"#), @r" + .pass_stdin(r#"from typing import List; foo: List[int]"#), @" success: false exit_code: 1 ----- stdout ----- @@ -2030,7 +2037,7 @@ select = ["UP006"] .arg("pyproject.toml") .args(["--stdin-filename", "test.py"]) .arg("-") - .pass_stdin(r#"from typing import List; foo: List[int]"#), @r" + .pass_stdin(r#"from typing import List; foo: List[int]"#), @" success: true exit_code: 0 ----- stdout ----- @@ -2061,7 +2068,7 @@ select = ["UP006"] .arg("pyproject.toml") .args(["--stdin-filename", "test.py"]) .arg("-") - .pass_stdin(r#"from typing import List; foo: List[int]"#), @r" + .pass_stdin(r#"from typing import List; foo: List[int]"#), @" success: false exit_code: 1 ----- stdout ----- @@ -2094,7 +2101,7 @@ select = ["UP006"] .arg("pyproject.toml") .args(["--stdin-filename", "test.py"]) .arg("-") - .pass_stdin(r#"from typing import List; foo: List[int]"#), @r" + .pass_stdin(r#"from typing import List; foo: List[int]"#), @" success: false exit_code: 1 ----- stdout ----- @@ -2127,7 +2134,7 @@ select = ["UP006"] .arg("pyproject.toml") .args(["--stdin-filename", "test.py"]) .arg("-") - .pass_stdin(r#"from typing import List; foo: List[int]"#), @r" + .pass_stdin(r#"from typing import List; foo: List[int]"#), @" success: false exit_code: 1 ----- stdout ----- @@ -2263,7 +2270,7 @@ requires-python = ">= 3.11" .check_command() .args(["--select","UP007"]) .arg(".") - , @r###" + , @" success: false exit_code: 1 ----- stdout ----- @@ -2272,7 +2279,7 @@ requires-python = ">= 3.11" [*] 1 fixable with the `--fix` option. ----- stderr ----- - "###); + "); Ok(()) } @@ -2348,7 +2355,7 @@ from typing import Union;foo: Union[int, str] = 1"#, assert_cmd_snapshot!(fixture .check_command() .arg("test.py") - , @r" + , @" success: false exit_code: 1 ----- stdout ----- @@ -2591,7 +2598,7 @@ fn checks_notebooks_in_stable() -> anyhow::Result<()> { .check_command() .arg("--select") .arg("F401") - , @r" + , @" success: false exit_code: 1 ----- stdout ----- @@ -2619,7 +2626,7 @@ fn nested_implicit_namespace_package() -> Result<()> { .check_command() .arg("--select") .arg("INP") - , @r" + , @" success: true exit_code: 0 ----- stdout ----- @@ -2633,7 +2640,7 @@ fn nested_implicit_namespace_package() -> Result<()> { .arg("--select") .arg("INP") .arg("--preview") - , @r" + , @" success: false exit_code: 1 ----- stdout ----- @@ -2764,7 +2771,7 @@ fn flake8_import_convention_nfkc_normalization() -> Result<()> { .arg("ruff.toml") .arg("-") .pass_stdin("") - , @r###" + , @" success: false exit_code: 2 ----- stdout ----- @@ -2772,7 +2779,7 @@ fn flake8_import_convention_nfkc_normalization() -> Result<()> { ----- stderr ----- ruff failed Cause: Invalid alias for module 'test.module': alias normalizes to '__debug__', which is not allowed. - "###); + "); Ok(()) } @@ -2822,7 +2829,7 @@ fn pyupgrade_up026_respects_isort_required_import_fix() { .arg("--fix") .arg("--no-cache") .pass_stdin("1\n"), - @r" + @" success: true exit_code: 0 ----- stdout ----- @@ -2849,7 +2856,7 @@ fn pyupgrade_up026_respects_isort_required_import_from_fix() { .arg("--fix") .arg("--no-cache") .pass_stdin("from mock import mock\n"), - @r" + @" success: true exit_code: 0 ----- stdout ----- @@ -2883,7 +2890,7 @@ d: Literal[None,] | Literal[None] .arg("--preview") .arg("--diff") .arg("-") - .pass_stdin(snippet), @r" + .pass_stdin(snippet), @" success: false exit_code: 1 ----- stdout ----- @@ -2937,7 +2944,7 @@ def func(t: _T) -> _T: return x "# ), - @r" + @" success: true exit_code: 0 ----- stdout ----- @@ -2976,7 +2983,7 @@ class Foo[_T, __T]: pass "# ), - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -3041,7 +3048,7 @@ fn a005_module_shadowing_strict() -> Result<()> { .arg("--config") .arg(r#"lint.flake8-builtins.strict-checking = true"#) .args(["--select", "A005"]), - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -3069,7 +3076,7 @@ fn a005_module_shadowing_non_strict() -> Result<()> { .arg("--config") .arg(r#"lint.flake8-builtins.strict-checking = false"#) .args(["--select", "A005"]), - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -3094,7 +3101,7 @@ fn a005_module_shadowing_strict_default() -> Result<()> { assert_cmd_snapshot!(fixture.check_command() .args(["--select", "A005"]), - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -3127,7 +3134,7 @@ T = TypeVar("T") class A(Generic[T]): var: T "#), - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -3157,7 +3164,7 @@ T = TypeVar("T") class A(Generic[T]): var: T "#), - @r" + @" success: true exit_code: 0 ----- stdout ----- @@ -3177,7 +3184,7 @@ fn walrus_before_py38() { .arg("--target-version=py38") .arg("-") .pass_stdin(r#"(x := 1)"#), - @r" + @" success: true exit_code: 0 ----- stdout ----- @@ -3195,7 +3202,7 @@ fn walrus_before_py38() { .arg("--preview") .arg("-") .pass_stdin(r#"(x := 1)"#), - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -3222,7 +3229,7 @@ match 2: print("it's one") "# ), - @r" + @" success: true exit_code: 0 ----- stdout ----- @@ -3245,7 +3252,7 @@ match 2: print("it's one") "# ), - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -3270,7 +3277,7 @@ match 2: print("it's one") "# ), - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -3296,7 +3303,7 @@ fn cache_syntax_errors() -> Result<()> { assert_cmd_snapshot!( cmd, - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -3309,7 +3316,7 @@ fn cache_syntax_errors() -> Result<()> { // this should *not* be cached, like normal parse errors assert_cmd_snapshot!( cmd, - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -3345,14 +3352,14 @@ fn cookiecutter_globbing() -> Result<()> { assert_cmd_snapshot!(fixture .check_command() - .arg("--select=F811"), @r" - success: true - exit_code: 0 - ----- stdout ----- - All checks passed! + .arg("--select=F811"), @" + success: true + exit_code: 0 + ----- stdout ----- + All checks passed! - ----- stderr ----- - "); + ----- stderr ----- + "); // after removing the config file with the ignore, F811 applies, so the glob worked above fs::remove_file( @@ -3363,7 +3370,7 @@ fn cookiecutter_globbing() -> Result<()> { assert_cmd_snapshot!(fixture .check_command() - .arg("--select=F811"), @r" + .arg("--select=F811"), @" success: false exit_code: 1 ----- stdout ----- @@ -3388,15 +3395,15 @@ fn cookiecutter_globbing_no_project_root() -> Result<()> { assert_cmd_snapshot!(fixture .check_command() .current_dir(fixture.root().join("{{cookiecutter.repo_name}}")) - .args(["--extend-per-file-ignores", "generated.py:Q"]), @r" - success: true - exit_code: 0 - ----- stdout ----- - All checks passed! + .args(["--extend-per-file-ignores", "generated.py:Q"]), @" + success: true + exit_code: 0 + ----- stdout ----- + All checks passed! - ----- stderr ----- - warning: No Python files found under the given path(s) - "); + ----- stderr ----- + warning: No Python files found under the given path(s) + "); Ok(()) } @@ -3417,7 +3424,7 @@ fn semantic_syntax_errors() -> Result<()> { assert_cmd_snapshot!( cmd, - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -3431,7 +3438,7 @@ fn semantic_syntax_errors() -> Result<()> { // this should *not* be cached, like normal parse errors assert_cmd_snapshot!( cmd, - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -3449,7 +3456,7 @@ fn semantic_syntax_errors() -> Result<()> { .arg("--preview") .arg("-") .pass_stdin(contents), - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -3483,7 +3490,7 @@ class Foo: .arg("--target-version=py39") .arg("-") .pass_stdin(contents), - @r" + @" success: true exit_code: 0 ----- stdout ----- @@ -3581,7 +3588,7 @@ nested_optional: Optional[Optional[Optional[str]]] = None .args(["--select", "UP045", "--diff", "--target-version", "py312"]) .arg("-") .pass_stdin(contents), - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -3606,7 +3613,7 @@ fn show_fixes_in_full_output_with_preview_enabled() { .arg("--preview") .arg("-") .pass_stdin("import math"), - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -3637,7 +3644,7 @@ fn rule_panic_mixed_results_concise() -> Result<()> { fixture.check_command() .args(["--select", "RUF9", "--preview"]) .args(["normal.py", "panic.py"]), - @r" + @" success: false exit_code: 2 ----- stdout ----- @@ -3672,7 +3679,7 @@ fn rule_panic_mixed_results_full() -> Result<()> { fixture.command() .args(["check", "--select", "RUF9", "--preview", "--output-format=full", "--no-cache"]) .args(["normal.py", "panic.py"]), - @r" + @" success: false exit_code: 2 ----- stdout ----- @@ -3781,7 +3788,7 @@ fn supported_file_extensions() -> Result<()> { fixture.check_command() .args(["--select", "F401"]) .arg("src"), - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -3861,7 +3868,7 @@ fn supported_file_extensions_preview_enabled() -> Result<()> { fixture.check_command() .args(["--select", "F401", "--preview"]) .arg("src"), - @r" + @" success: false exit_code: 1 ----- stdout ----- diff --git a/crates/ruff/tests/cli/snapshots/cli__lint__flake8_import_convention_unused_aliased_import.snap b/crates/ruff/tests/cli/snapshots/cli__lint__flake8_import_convention_unused_aliased_import.snap index 95379dfd9b..9fc80ec849 100644 --- a/crates/ruff/tests/cli/snapshots/cli__lint__flake8_import_convention_unused_aliased_import.snap +++ b/crates/ruff/tests/cli/snapshots/cli__lint__flake8_import_convention_unused_aliased_import.snap @@ -1,5 +1,5 @@ --- -source: crates/ruff/tests/lint.rs +source: crates/ruff/tests/cli/lint.rs info: program: ruff args: @@ -17,7 +17,6 @@ info: - "--fix" - "-" stdin: "1" -snapshot_kind: text --- success: false exit_code: 2 diff --git a/crates/ruff/tests/cli/snapshots/cli__lint__flake8_import_convention_unused_aliased_import_no_conflict.snap b/crates/ruff/tests/cli/snapshots/cli__lint__flake8_import_convention_unused_aliased_import_no_conflict.snap index b074787f9c..5283dc8d5e 100644 --- a/crates/ruff/tests/cli/snapshots/cli__lint__flake8_import_convention_unused_aliased_import_no_conflict.snap +++ b/crates/ruff/tests/cli/snapshots/cli__lint__flake8_import_convention_unused_aliased_import_no_conflict.snap @@ -1,5 +1,5 @@ --- -source: crates/ruff/tests/lint.rs +source: crates/ruff/tests/cli/lint.rs info: program: ruff args: diff --git a/crates/ruff/tests/cli/snapshots/cli__lint__output_format_azure.snap b/crates/ruff/tests/cli/snapshots/cli__lint__output_format_azure.snap index 933cc043b9..b3e46d0d5f 100644 --- a/crates/ruff/tests/cli/snapshots/cli__lint__output_format_azure.snap +++ b/crates/ruff/tests/cli/snapshots/cli__lint__output_format_azure.snap @@ -1,5 +1,5 @@ --- -source: crates/ruff/tests/lint.rs +source: crates/ruff/tests/cli/lint.rs info: program: ruff args: diff --git a/crates/ruff/tests/cli/snapshots/cli__lint__output_format_concise.snap b/crates/ruff/tests/cli/snapshots/cli__lint__output_format_concise.snap index 56bb215b25..c6c6cbb587 100644 --- a/crates/ruff/tests/cli/snapshots/cli__lint__output_format_concise.snap +++ b/crates/ruff/tests/cli/snapshots/cli__lint__output_format_concise.snap @@ -1,5 +1,5 @@ --- -source: crates/ruff/tests/lint.rs +source: crates/ruff/tests/cli/lint.rs info: program: ruff args: diff --git a/crates/ruff/tests/cli/snapshots/cli__lint__output_format_full.snap b/crates/ruff/tests/cli/snapshots/cli__lint__output_format_full.snap index d47237df55..ce1e673e64 100644 --- a/crates/ruff/tests/cli/snapshots/cli__lint__output_format_full.snap +++ b/crates/ruff/tests/cli/snapshots/cli__lint__output_format_full.snap @@ -1,5 +1,5 @@ --- -source: crates/ruff/tests/lint.rs +source: crates/ruff/tests/cli/lint.rs info: program: ruff args: diff --git a/crates/ruff/tests/cli/snapshots/cli__lint__output_format_github.snap b/crates/ruff/tests/cli/snapshots/cli__lint__output_format_github.snap index 0e7ff40baa..3184dea98f 100644 --- a/crates/ruff/tests/cli/snapshots/cli__lint__output_format_github.snap +++ b/crates/ruff/tests/cli/snapshots/cli__lint__output_format_github.snap @@ -1,5 +1,5 @@ --- -source: crates/ruff/tests/lint.rs +source: crates/ruff/tests/cli/lint.rs info: program: ruff args: diff --git a/crates/ruff/tests/cli/snapshots/cli__lint__output_format_gitlab.snap b/crates/ruff/tests/cli/snapshots/cli__lint__output_format_gitlab.snap index f16851bb3a..49a18b4f05 100644 --- a/crates/ruff/tests/cli/snapshots/cli__lint__output_format_gitlab.snap +++ b/crates/ruff/tests/cli/snapshots/cli__lint__output_format_gitlab.snap @@ -1,5 +1,5 @@ --- -source: crates/ruff/tests/lint.rs +source: crates/ruff/tests/cli/lint.rs info: program: ruff args: diff --git a/crates/ruff/tests/cli/snapshots/cli__lint__output_format_grouped.snap b/crates/ruff/tests/cli/snapshots/cli__lint__output_format_grouped.snap index acf3decff8..cbf0620a8d 100644 --- a/crates/ruff/tests/cli/snapshots/cli__lint__output_format_grouped.snap +++ b/crates/ruff/tests/cli/snapshots/cli__lint__output_format_grouped.snap @@ -1,5 +1,5 @@ --- -source: crates/ruff/tests/lint.rs +source: crates/ruff/tests/cli/lint.rs info: program: ruff args: diff --git a/crates/ruff/tests/cli/snapshots/cli__lint__output_format_json-lines.snap b/crates/ruff/tests/cli/snapshots/cli__lint__output_format_json-lines.snap index 868c92c728..a163a41776 100644 --- a/crates/ruff/tests/cli/snapshots/cli__lint__output_format_json-lines.snap +++ b/crates/ruff/tests/cli/snapshots/cli__lint__output_format_json-lines.snap @@ -1,5 +1,5 @@ --- -source: crates/ruff/tests/lint.rs +source: crates/ruff/tests/cli/lint.rs info: program: ruff args: diff --git a/crates/ruff/tests/cli/snapshots/cli__lint__output_format_json.snap b/crates/ruff/tests/cli/snapshots/cli__lint__output_format_json.snap index 4b9695a8f4..908ff2c268 100644 --- a/crates/ruff/tests/cli/snapshots/cli__lint__output_format_json.snap +++ b/crates/ruff/tests/cli/snapshots/cli__lint__output_format_json.snap @@ -1,5 +1,5 @@ --- -source: crates/ruff/tests/lint.rs +source: crates/ruff/tests/cli/lint.rs info: program: ruff args: diff --git a/crates/ruff/tests/cli/snapshots/cli__lint__output_format_junit.snap b/crates/ruff/tests/cli/snapshots/cli__lint__output_format_junit.snap index 384671431f..a1cc4f0122 100644 --- a/crates/ruff/tests/cli/snapshots/cli__lint__output_format_junit.snap +++ b/crates/ruff/tests/cli/snapshots/cli__lint__output_format_junit.snap @@ -1,5 +1,5 @@ --- -source: crates/ruff/tests/lint.rs +source: crates/ruff/tests/cli/lint.rs info: program: ruff args: diff --git a/crates/ruff/tests/cli/snapshots/cli__lint__output_format_pylint.snap b/crates/ruff/tests/cli/snapshots/cli__lint__output_format_pylint.snap index bcedcda242..e6911967ea 100644 --- a/crates/ruff/tests/cli/snapshots/cli__lint__output_format_pylint.snap +++ b/crates/ruff/tests/cli/snapshots/cli__lint__output_format_pylint.snap @@ -1,5 +1,5 @@ --- -source: crates/ruff/tests/lint.rs +source: crates/ruff/tests/cli/lint.rs info: program: ruff args: diff --git a/crates/ruff/tests/cli/snapshots/cli__lint__output_format_rdjson.snap b/crates/ruff/tests/cli/snapshots/cli__lint__output_format_rdjson.snap index 6ee239e2b4..e467b7df5a 100644 --- a/crates/ruff/tests/cli/snapshots/cli__lint__output_format_rdjson.snap +++ b/crates/ruff/tests/cli/snapshots/cli__lint__output_format_rdjson.snap @@ -1,5 +1,5 @@ --- -source: crates/ruff/tests/lint.rs +source: crates/ruff/tests/cli/lint.rs info: program: ruff args: diff --git a/crates/ruff/tests/cli/snapshots/cli__lint__output_format_sarif.snap b/crates/ruff/tests/cli/snapshots/cli__lint__output_format_sarif.snap index 2d60b432fb..93489e453c 100644 --- a/crates/ruff/tests/cli/snapshots/cli__lint__output_format_sarif.snap +++ b/crates/ruff/tests/cli/snapshots/cli__lint__output_format_sarif.snap @@ -12,7 +12,6 @@ info: - "--target-version" - py39 - input.py -snapshot_kind: text --- success: false exit_code: 1 diff --git a/crates/ruff/tests/cli/snapshots/cli__lint__output_format_show_fixes_concise.snap b/crates/ruff/tests/cli/snapshots/cli__lint__output_format_show_fixes_concise.snap index e72b277305..2c3bf40e54 100644 --- a/crates/ruff/tests/cli/snapshots/cli__lint__output_format_show_fixes_concise.snap +++ b/crates/ruff/tests/cli/snapshots/cli__lint__output_format_show_fixes_concise.snap @@ -1,5 +1,5 @@ --- -source: crates/ruff/tests/lint.rs +source: crates/ruff/tests/cli/lint.rs info: program: ruff args: diff --git a/crates/ruff/tests/cli/snapshots/cli__lint__output_format_show_fixes_full.snap b/crates/ruff/tests/cli/snapshots/cli__lint__output_format_show_fixes_full.snap index 96bbccb76e..037cbb9dd1 100644 --- a/crates/ruff/tests/cli/snapshots/cli__lint__output_format_show_fixes_full.snap +++ b/crates/ruff/tests/cli/snapshots/cli__lint__output_format_show_fixes_full.snap @@ -1,5 +1,5 @@ --- -source: crates/ruff/tests/lint.rs +source: crates/ruff/tests/cli/lint.rs info: program: ruff args: diff --git a/crates/ruff/tests/cli/snapshots/cli__lint__output_format_show_fixes_grouped.snap b/crates/ruff/tests/cli/snapshots/cli__lint__output_format_show_fixes_grouped.snap index ce0e16ff12..fb7e934ef3 100644 --- a/crates/ruff/tests/cli/snapshots/cli__lint__output_format_show_fixes_grouped.snap +++ b/crates/ruff/tests/cli/snapshots/cli__lint__output_format_show_fixes_grouped.snap @@ -1,5 +1,5 @@ --- -source: crates/ruff/tests/lint.rs +source: crates/ruff/tests/cli/lint.rs info: program: ruff args: diff --git a/crates/ruff/tests/cli/snapshots/cli__lint__warn_invalid_noqa_with_no_diagnostics.snap b/crates/ruff/tests/cli/snapshots/cli__lint__warn_invalid_noqa_with_no_diagnostics.snap index 09772b73fc..1dfaffe5b3 100644 --- a/crates/ruff/tests/cli/snapshots/cli__lint__warn_invalid_noqa_with_no_diagnostics.snap +++ b/crates/ruff/tests/cli/snapshots/cli__lint__warn_invalid_noqa_with_no_diagnostics.snap @@ -1,5 +1,5 @@ --- -source: crates/ruff/tests/lint.rs +source: crates/ruff/tests/cli/lint.rs info: program: ruff args: diff --git a/crates/ruff/tests/direxist_guard.rs b/crates/ruff/tests/direxist_guard.rs index 3812d9ba03..c3866fdf59 100644 --- a/crates/ruff/tests/direxist_guard.rs +++ b/crates/ruff/tests/direxist_guard.rs @@ -18,13 +18,13 @@ fn check_in_deleted_directory_errors() { set_current_dir(&temp_path).unwrap(); drop(temp_dir); - assert_cmd_snapshot!(Command::new(get_cargo_bin(BIN_NAME)).arg("check"), @r###" - success: false - exit_code: 2 - ----- stdout ----- + assert_cmd_snapshot!(Command::new(get_cargo_bin(BIN_NAME)).arg("check"), @" + success: false + exit_code: 2 + ----- stdout ----- - ----- stderr ----- - ruff failed - Cause: Working directory does not exist - "###); + ----- stderr ----- + ruff failed + Cause: Working directory does not exist + "); } diff --git a/crates/ruff/tests/integration_test.rs b/crates/ruff/tests/integration_test.rs index ad0c74d2b5..8149004565 100644 --- a/crates/ruff/tests/integration_test.rs +++ b/crates/ruff/tests/integration_test.rs @@ -97,7 +97,7 @@ impl<'a> RuffCheck<'a> { fn stdin_success() { let mut cmd = RuffCheck::default().args([]).build(); assert_cmd_snapshot!(cmd - .pass_stdin(""), @r" + .pass_stdin(""), @" success: true exit_code: 0 ----- stdout ----- @@ -111,7 +111,7 @@ fn stdin_success() { fn stdin_error() { let mut cmd = RuffCheck::default().args([]).build(); assert_cmd_snapshot!(cmd - .pass_stdin("import os\n"), @r" + .pass_stdin("import os\n"), @" success: false exit_code: 1 ----- stdout ----- @@ -136,7 +136,7 @@ fn stdin_filename() { .args(["--stdin-filename", "F401.py"]) .build(); assert_cmd_snapshot!(cmd - .pass_stdin("import os\n"), @r" + .pass_stdin("import os\n"), @" success: false exit_code: 1 ----- stdout ----- @@ -172,7 +172,7 @@ import bar # unused import )?; assert_cmd_snapshot!(Command::new(get_cargo_bin(BIN_NAME)) - .args(["check", "--isolated", "--no-cache", "--select", "F401"]).current_dir(tempdir.path()), @r" + .args(["check", "--isolated", "--no-cache", "--select", "F401"]).current_dir(tempdir.path()), @" success: false exit_code: 1 ----- stdout ----- @@ -208,7 +208,7 @@ fn check_warn_stdin_filename_with_files() { .filename("foo.py") .build(); assert_cmd_snapshot!(cmd - .pass_stdin("import os\n"), @r" + .pass_stdin("import os\n"), @" success: false exit_code: 1 ----- stdout ----- @@ -235,7 +235,7 @@ fn stdin_source_type_py() { .args(["--stdin-filename", "TCH.py"]) .build(); assert_cmd_snapshot!(cmd - .pass_stdin("import os\n"), @r" + .pass_stdin("import os\n"), @" success: false exit_code: 1 ----- stdout ----- @@ -261,7 +261,7 @@ fn stdin_source_type_pyi() { .args(["--stdin-filename", "TCH.pyi", "--select", "TCH"]) .build(); assert_cmd_snapshot!(cmd - .pass_stdin("import os\n"), @r" + .pass_stdin("import os\n"), @" success: true exit_code: 0 ----- stdout ----- @@ -294,7 +294,7 @@ fn stdin_json() { fn stdin_fix_py() { let mut cmd = RuffCheck::default().args(["--fix"]).build(); assert_cmd_snapshot!(cmd - .pass_stdin("import os\nimport sys\n\nprint(sys.version)\n"), @r" + .pass_stdin("import os\nimport sys\n\nprint(sys.version)\n"), @" success: true exit_code: 0 ----- stdout ----- @@ -572,7 +572,7 @@ fn stdin_override_parser_ipynb() { }, "nbformat": 4, "nbformat_minor": 5 -}"#), @r" +}"#), @" success: false exit_code: 1 ----- stdout ----- @@ -610,7 +610,7 @@ fn stdin_override_parser_py() { ]) .build(); assert_cmd_snapshot!(cmd - .pass_stdin("import os\n"), @r" + .pass_stdin("import os\n"), @" success: false exit_code: 1 ----- stdout ----- @@ -633,7 +633,7 @@ fn stdin_override_parser_py() { fn stdin_fix_when_not_fixable_should_still_print_contents() { let mut cmd = RuffCheck::default().args(["--fix"]).build(); assert_cmd_snapshot!(cmd - .pass_stdin("import os\nimport sys\n\nif (1, 2):\n print(sys.version)\n"), @r###" + .pass_stdin("import os\nimport sys\n\nif (1, 2):\n print(sys.version)\n"), @" success: false exit_code: 1 ----- stdout ----- @@ -654,14 +654,14 @@ fn stdin_fix_when_not_fixable_should_still_print_contents() { | Found 2 errors (1 fixed, 1 remaining). - "###); + "); } #[test] fn stdin_fix_when_no_issues_should_still_print_contents() { let mut cmd = RuffCheck::default().args(["--fix"]).build(); assert_cmd_snapshot!(cmd - .pass_stdin("import sys\n\nprint(sys.version)\n"), @r" + .pass_stdin("import sys\n\nprint(sys.version)\n"), @" success: true exit_code: 0 ----- stdout ----- @@ -805,7 +805,7 @@ fn stdin_format_jupyter() { fn stdin_parse_error() { let mut cmd = RuffCheck::default().build(); assert_cmd_snapshot!(cmd - .pass_stdin("from foo import\n"), @r" + .pass_stdin("from foo import\n"), @" success: false exit_code: 1 ----- stdout ----- @@ -826,7 +826,7 @@ fn stdin_parse_error() { fn stdin_multiple_parse_error() { let mut cmd = RuffCheck::default().build(); assert_cmd_snapshot!(cmd - .pass_stdin("from foo import\nbar =\n"), @r" + .pass_stdin("from foo import\nbar =\n"), @" success: false exit_code: 1 ----- stdout ----- @@ -857,7 +857,7 @@ fn parse_error_not_included() { // Parse errors are always shown let mut cmd = RuffCheck::default().args(["--select=I"]).build(); assert_cmd_snapshot!(cmd - .pass_stdin("foo =\n"), @r" + .pass_stdin("foo =\n"), @" success: false exit_code: 1 ----- stdout ----- @@ -878,7 +878,7 @@ fn parse_error_not_included() { fn full_output_preview() { let mut cmd = RuffCheck::default().args(["--preview"]).build(); assert_cmd_snapshot!(cmd - .pass_stdin("l = 1"), @r" + .pass_stdin("l = 1"), @" success: false exit_code: 1 ----- stdout ----- @@ -907,7 +907,7 @@ preview = true ", )?; let mut cmd = RuffCheck::default().config(&pyproject_toml).build(); - assert_cmd_snapshot!(cmd.pass_stdin("l = 1"), @r" + assert_cmd_snapshot!(cmd.pass_stdin("l = 1"), @" success: false exit_code: 1 ----- stdout ----- @@ -929,7 +929,7 @@ preview = true fn full_output_format() { let mut cmd = RuffCheck::default().output_format("full").build(); assert_cmd_snapshot!(cmd - .pass_stdin("l = 1"), @r" + .pass_stdin("l = 1"), @" success: false exit_code: 1 ----- stdout ----- @@ -967,7 +967,7 @@ fn rule_f401_output_text() { #[test] fn rule_invalid_rule_name() { - assert_cmd_snapshot!(ruff_cmd().args(["rule", "RUF404"]), @r" + assert_cmd_snapshot!(ruff_cmd().args(["rule", "RUF404"]), @" success: false exit_code: 2 ----- stdout ----- @@ -981,7 +981,7 @@ fn rule_invalid_rule_name() { #[test] fn rule_invalid_rule_name_output_json() { - assert_cmd_snapshot!(ruff_cmd().args(["rule", "RUF404", "--output-format", "json"]), @r" + assert_cmd_snapshot!(ruff_cmd().args(["rule", "RUF404", "--output-format", "json"]), @" success: false exit_code: 2 ----- stdout ----- @@ -995,7 +995,7 @@ fn rule_invalid_rule_name_output_json() { #[test] fn rule_invalid_rule_name_output_text() { - assert_cmd_snapshot!(ruff_cmd().args(["rule", "RUF404", "--output-format", "text"]), @r" + assert_cmd_snapshot!(ruff_cmd().args(["rule", "RUF404", "--output-format", "text"]), @" success: false exit_code: 2 ----- stdout ----- @@ -1016,7 +1016,7 @@ fn show_statistics() { .pass_stdin(r#" def mvce(keys, values): return {key: value for key, value in zip(keys, values)} -"#), @r" +"#), @" success: false exit_code: 1 ----- stdout ----- @@ -1037,7 +1037,7 @@ fn show_statistics_unsafe_fixes() { .pass_stdin(r#" def mvce(keys, values): return {key: value for key, value in zip(keys, values)} -"#), @r" +"#), @" success: false exit_code: 1 ----- stdout ----- @@ -1152,7 +1152,7 @@ fn show_statistics_partial_fix() { .args(["--select", "UP035", "--statistics"]) .build(); assert_cmd_snapshot!(cmd - .pass_stdin("from typing import List, AsyncGenerator"), @r" + .pass_stdin("from typing import List, AsyncGenerator"), @" success: false exit_code: 1 ----- stdout ----- @@ -1173,7 +1173,7 @@ fn show_statistics_syntax_errors() { // ParseError assert_cmd_snapshot!( cmd.pass_stdin("x ="), - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -1186,7 +1186,7 @@ fn show_statistics_syntax_errors() { // match before 3.10, UnsupportedSyntaxError assert_cmd_snapshot!( cmd.pass_stdin("match 2:\n case 1: ..."), - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -1199,7 +1199,7 @@ fn show_statistics_syntax_errors() { // rebound comprehension variable, SemanticSyntaxError assert_cmd_snapshot!( cmd.pass_stdin("[x := 1 for x in range(0)]"), - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -1216,7 +1216,7 @@ fn preview_enabled_prefix() { let mut cmd = RuffCheck::default() .args(["--select", "RUF9", "--output-format=concise", "--preview"]) .build(); - assert_cmd_snapshot!(cmd, @r" + assert_cmd_snapshot!(cmd, @" success: false exit_code: 1 ----- stdout ----- @@ -1238,7 +1238,7 @@ fn preview_enabled_all() { let mut cmd = RuffCheck::default() .args(["--select", "ALL", "--output-format=concise", "--preview"]) .build(); - assert_cmd_snapshot!(cmd, @r" + assert_cmd_snapshot!(cmd, @" success: false exit_code: 1 ----- stdout ----- @@ -1265,7 +1265,7 @@ fn preview_enabled_direct() { let mut cmd = RuffCheck::default() .args(["--select", "RUF911", "--output-format=concise", "--preview"]) .build(); - assert_cmd_snapshot!(cmd, @r" + assert_cmd_snapshot!(cmd, @" success: false exit_code: 1 ----- stdout ----- @@ -1282,7 +1282,7 @@ fn preview_disabled_direct() { let mut cmd = RuffCheck::default() .args(["--select", "RUF911", "--output-format=concise"]) .build(); - assert_cmd_snapshot!(cmd, @r" + assert_cmd_snapshot!(cmd, @" success: true exit_code: 0 ----- stdout ----- @@ -1299,7 +1299,7 @@ fn preview_disabled_prefix_empty() { let mut cmd = RuffCheck::default() .args(["--select", "RUF91", "--output-format=concise"]) .build(); - assert_cmd_snapshot!(cmd, @r" + assert_cmd_snapshot!(cmd, @" success: true exit_code: 0 ----- stdout ----- @@ -1316,7 +1316,7 @@ fn preview_disabled_does_not_warn_for_empty_ignore_selections() { let mut cmd = RuffCheck::default() .args(["--ignore", "RUF9", "--output-format=concise"]) .build(); - assert_cmd_snapshot!(cmd, @r" + assert_cmd_snapshot!(cmd, @" success: true exit_code: 0 ----- stdout ----- @@ -1332,7 +1332,7 @@ fn preview_disabled_does_not_warn_for_empty_fixable_selections() { let mut cmd = RuffCheck::default() .args(["--fixable", "RUF9", "--output-format=concise"]) .build(); - assert_cmd_snapshot!(cmd, @r" + assert_cmd_snapshot!(cmd, @" success: true exit_code: 0 ----- stdout ----- @@ -1354,7 +1354,7 @@ fn preview_group_selector() { ]) .build(); assert_cmd_snapshot!(cmd - .pass_stdin("I=42\n"), @r" + .pass_stdin("I=42\n"), @" success: false exit_code: 2 ----- stdout ----- @@ -1379,7 +1379,7 @@ fn preview_enabled_group_ignore() { "--output-format=concise", ]) .build(); - assert_cmd_snapshot!(cmd, @r" + assert_cmd_snapshot!(cmd, @" success: false exit_code: 1 ----- stdout ----- @@ -1400,7 +1400,7 @@ fn preview_enabled_group_ignore() { fn removed_direct() { // Selection of a removed rule should fail let mut cmd = RuffCheck::default().args(["--select", "RUF931"]).build(); - assert_cmd_snapshot!(cmd, @r" + assert_cmd_snapshot!(cmd, @" success: false exit_code: 2 ----- stdout ----- @@ -1418,7 +1418,7 @@ fn removed_direct_multiple() { let mut cmd = RuffCheck::default() .args(["--select", "RUF930", "--select", "RUF931"]) .build(); - assert_cmd_snapshot!(cmd, @r" + assert_cmd_snapshot!(cmd, @" success: false exit_code: 2 ----- stdout ----- @@ -1436,7 +1436,7 @@ fn removed_indirect() { // Selection _including_ a removed rule without matching should not fail // nor should the rule be used let mut cmd = RuffCheck::default().args(["--select", "RUF93"]).build(); - assert_cmd_snapshot!(cmd, @r" + assert_cmd_snapshot!(cmd, @" success: true exit_code: 0 ----- stdout ----- @@ -1449,7 +1449,7 @@ fn removed_indirect() { #[test] fn removed_ignore_direct() { let mut cmd = RuffCheck::default().args(["--ignore", "UP027"]).build(); - assert_cmd_snapshot!(cmd, @r" + assert_cmd_snapshot!(cmd, @" success: true exit_code: 0 ----- stdout ----- @@ -1466,7 +1466,7 @@ fn removed_ignore_multiple_direct() { let mut cmd = RuffCheck::default() .args(["--ignore", "UP027", "--ignore", "PLR1706"]) .build(); - assert_cmd_snapshot!(cmd, @r" + assert_cmd_snapshot!(cmd, @" success: true exit_code: 0 ----- stdout ----- @@ -1482,7 +1482,7 @@ fn removed_ignore_multiple_direct() { #[test] fn removed_ignore_remapped_direct() { let mut cmd = RuffCheck::default().args(["--ignore", "PGH001"]).build(); - assert_cmd_snapshot!(cmd, @r" + assert_cmd_snapshot!(cmd, @" success: true exit_code: 0 ----- stdout ----- @@ -1498,7 +1498,7 @@ fn removed_ignore_indirect() { // `PLR170` includes removed rules but should not select or warn // since it is not a "direct" selection let mut cmd = RuffCheck::default().args(["--ignore", "PLR170"]).build(); - assert_cmd_snapshot!(cmd, @r" + assert_cmd_snapshot!(cmd, @" success: true exit_code: 0 ----- stdout ----- @@ -1512,7 +1512,7 @@ fn removed_ignore_indirect() { fn redirect_direct() { // Selection of a redirected rule directly should use the new rule and warn let mut cmd = RuffCheck::default().args(["--select", "RUF940"]).build(); - assert_cmd_snapshot!(cmd, @r" + assert_cmd_snapshot!(cmd, @" success: false exit_code: 1 ----- stdout ----- @@ -1531,7 +1531,7 @@ fn redirect_indirect() { // Selection _including_ a redirected rule without matching should not fail // nor should the rule be used let mut cmd = RuffCheck::default().args(["--select", "RUF94"]).build(); - assert_cmd_snapshot!(cmd, @r" + assert_cmd_snapshot!(cmd, @" success: true exit_code: 0 ----- stdout ----- @@ -1546,7 +1546,7 @@ fn redirect_prefix() { // Selection using a redirected prefix should switch to all rules in the // new prefix let mut cmd = RuffCheck::default().args(["--select", "RUF96"]).build(); - assert_cmd_snapshot!(cmd, @r" + assert_cmd_snapshot!(cmd, @" success: false exit_code: 1 ----- stdout ----- @@ -1565,7 +1565,7 @@ fn deprecated_direct() { // Selection of a deprecated rule without preview enabled should still work // but a warning should be displayed let mut cmd = RuffCheck::default().args(["--select", "RUF920"]).build(); - assert_cmd_snapshot!(cmd, @r" + assert_cmd_snapshot!(cmd, @" success: false exit_code: 1 ----- stdout ----- @@ -1586,7 +1586,7 @@ fn deprecated_multiple_direct() { let mut cmd = RuffCheck::default() .args(["--select", "RUF920", "--select", "RUF921"]) .build(); - assert_cmd_snapshot!(cmd, @r" + assert_cmd_snapshot!(cmd, @" success: false exit_code: 1 ----- stdout ----- @@ -1609,7 +1609,7 @@ fn deprecated_indirect() { // `RUF92` includes deprecated rules but should not warn // since it is not a "direct" selection let mut cmd = RuffCheck::default().args(["--select", "RUF92"]).build(); - assert_cmd_snapshot!(cmd, @r" + assert_cmd_snapshot!(cmd, @" success: true exit_code: 0 ----- stdout ----- @@ -1625,7 +1625,7 @@ fn deprecated_direct_preview_enabled() { let mut cmd = RuffCheck::default() .args(["--select", "RUF920", "--preview"]) .build(); - assert_cmd_snapshot!(cmd, @r" + assert_cmd_snapshot!(cmd, @" success: false exit_code: 2 ----- stdout ----- @@ -1642,7 +1642,7 @@ fn deprecated_indirect_preview_enabled() { let mut cmd = RuffCheck::default() .args(["--select", "RUF92", "--preview"]) .build(); - assert_cmd_snapshot!(cmd, @r" + assert_cmd_snapshot!(cmd, @" success: true exit_code: 0 ----- stdout ----- @@ -1659,7 +1659,7 @@ fn deprecated_multiple_direct_preview_enabled() { let mut cmd = RuffCheck::default() .args(["--select", "RUF920", "--select", "RUF921", "--preview"]) .build(); - assert_cmd_snapshot!(cmd, @r" + assert_cmd_snapshot!(cmd, @" success: false exit_code: 2 ----- stdout ----- @@ -1720,7 +1720,7 @@ fn unreadable_dir() -> Result<()> { .filename(unreadable_dir.to_str().unwrap()) .args([]) .build(); - assert_cmd_snapshot!(cmd, @r###" + assert_cmd_snapshot!(cmd, @" success: true exit_code: 0 ----- stdout ----- @@ -1728,7 +1728,7 @@ fn unreadable_dir() -> Result<()> { ----- stderr ----- warning: Encountered error: Permission denied (os error 13) - "###); + "); Ok(()) } @@ -1758,7 +1758,7 @@ fn check_input_from_argfile() -> Result<()> { (file_a_path.display().to_string().as_str(), "/path/to/a.py"), ]}, { assert_cmd_snapshot!(cmd - .pass_stdin(""), @r" + .pass_stdin(""), @" success: false exit_code: 1 ----- stdout ----- @@ -1787,17 +1787,17 @@ fn missing_argfile_reports_error() { insta::with_settings!({filters => vec![ ("The system cannot find the file specified.", "No such file or directory") ]}, { - assert_cmd_snapshot!(cmd, @r" - success: false - exit_code: 2 - ----- stdout ----- + assert_cmd_snapshot!(cmd, @" + success: false + exit_code: 2 + ----- stdout ----- - ----- stderr ----- - ruff failed - Cause: Failed to read CLI arguments from files - Cause: failed to open file `!.txt` - Cause: No such file or directory (os error 2) - "); + ----- stderr ----- + ruff failed + Cause: Failed to read CLI arguments from files + Cause: failed to open file `!.txt` + Cause: No such file or directory (os error 2) + "); }); } @@ -1807,7 +1807,7 @@ fn check_hints_hidden_unsafe_fixes() { .args(["--select", "RUF901,RUF902"]) .build(); assert_cmd_snapshot!(cmd, - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -1829,7 +1829,7 @@ fn check_hints_hidden_unsafe_fixes_with_no_safe_fixes() { let mut cmd = RuffCheck::default().args(["--select", "RUF902"]).build(); assert_cmd_snapshot!(cmd .pass_stdin("x = {'a': 1, 'a': 1}\n"), - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -1849,7 +1849,7 @@ fn check_no_hint_for_hidden_unsafe_fixes_when_disabled() { .args(["--select", "RUF901,RUF902", "--no-unsafe-fixes"]) .build(); assert_cmd_snapshot!(cmd, - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -1873,7 +1873,7 @@ fn check_no_hint_for_hidden_unsafe_fixes_with_no_safe_fixes_when_disabled() { .build(); assert_cmd_snapshot!(cmd .pass_stdin("x = {'a': 1, 'a': 1}\n"), - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -1892,7 +1892,7 @@ fn check_shows_unsafe_fixes_with_opt_in() { .args(["--select", "RUF901,RUF902", "--unsafe-fixes"]) .build(); assert_cmd_snapshot!(cmd, - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -1915,7 +1915,7 @@ fn fix_applies_safe_fixes_by_default() { .args(["--select", "RUF901,RUF902", "--fix"]) .build(); assert_cmd_snapshot!(cmd, - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -1936,7 +1936,7 @@ fn fix_applies_unsafe_fixes_with_opt_in() { .args(["--select", "RUF901,RUF902", "--fix", "--unsafe-fixes"]) .build(); assert_cmd_snapshot!(cmd, - @r" + @" success: true exit_code: 0 ----- stdout ----- @@ -1955,7 +1955,7 @@ fn fix_does_not_apply_display_only_fixes() { .build(); assert_cmd_snapshot!(cmd .pass_stdin("def add_to_list(item, some_list=[]): ..."), - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -1975,7 +1975,7 @@ fn fix_does_not_apply_display_only_fixes_with_unsafe_fixes_enabled() { .build(); assert_cmd_snapshot!(cmd .pass_stdin("def add_to_list(item, some_list=[]): ..."), - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -1994,7 +1994,7 @@ fn fix_only_unsafe_fixes_available() { .args(["--select", "RUF902", "--fix"]) .build(); assert_cmd_snapshot!(cmd, - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -2014,7 +2014,7 @@ fn fix_only_flag_applies_safe_fixes_by_default() { .args(["--select", "RUF901,RUF902", "--fix-only"]) .build(); assert_cmd_snapshot!(cmd, - @r" + @" success: true exit_code: 0 ----- stdout ----- @@ -2031,7 +2031,7 @@ fn fix_only_flag_applies_unsafe_fixes_with_opt_in() { .args(["--select", "RUF901,RUF902", "--fix-only", "--unsafe-fixes"]) .build(); assert_cmd_snapshot!(cmd, - @r" + @" success: true exit_code: 0 ----- stdout ----- @@ -2049,7 +2049,7 @@ fn diff_shows_safe_fixes_by_default() { .args(["--select", "RUF901,RUF902", "--diff"]) .build(); assert_cmd_snapshot!(cmd, - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -2069,7 +2069,7 @@ fn diff_shows_unsafe_fixes_with_opt_in() { .args(["--select", "RUF901,RUF902", "--diff", "--unsafe-fixes"]) .build(); assert_cmd_snapshot!(cmd, - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -2091,7 +2091,7 @@ fn diff_does_not_show_display_only_fixes_with_unsafe_fixes_enabled() { .build(); assert_cmd_snapshot!(cmd .pass_stdin("def add_to_list(item, some_list=[]): ..."), - @r" + @" success: true exit_code: 0 ----- stdout ----- @@ -2106,7 +2106,7 @@ fn diff_only_unsafe_fixes_available() { .args(["--select", "RUF902", "--diff"]) .build(); assert_cmd_snapshot!(cmd, - @r" + @" success: true exit_code: 0 ----- stdout ----- @@ -2134,7 +2134,7 @@ extend-unsafe-fixes = ["RUF901"] .args(["--select", "RUF901,RUF902"]) .build(); assert_cmd_snapshot!(cmd, - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -2170,7 +2170,7 @@ extend-safe-fixes = ["RUF902"] .args(["--select", "RUF901,RUF902"]) .build(); assert_cmd_snapshot!(cmd, - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -2208,7 +2208,7 @@ extend-safe-fixes = ["RUF902"] .args(["--select", "RUF901,RUF902"]) .build(); assert_cmd_snapshot!(cmd, - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -2248,7 +2248,7 @@ extend-safe-fixes = ["RUF9"] .build(); assert_cmd_snapshot!(cmd .pass_stdin("x = {'a': 1, 'a': 1}\nprint(('foo'))\nprint(str('foo'))\nisinstance(x, (int, str))\n"), - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -2307,7 +2307,7 @@ def log(x, base) -> float: .args(["--select", "D41"]) .build(); assert_cmd_snapshot!(cmd - .pass_stdin(stdin), @r" + .pass_stdin(stdin), @" success: true exit_code: 0 ----- stdout ----- @@ -2360,7 +2360,7 @@ select = ["RUF017"] let mut cmd = RuffCheck::default().config(&ruff_toml).build(); assert_cmd_snapshot!(cmd .pass_stdin("x = [1, 2, 3]\ny = [4, 5, 6]\nsum([x, y], [])"), - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -2401,7 +2401,7 @@ unfixable = ["RUF"] let mut cmd = RuffCheck::default().config(&ruff_toml).build(); assert_cmd_snapshot!(cmd .pass_stdin("x = [1, 2, 3]\ny = [4, 5, 6]\nsum([x, y], [])"), - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -2431,7 +2431,7 @@ fn pyproject_toml_stdin_syntax_error() { assert_cmd_snapshot!( cmd.pass_stdin("[project"), - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -2457,7 +2457,7 @@ fn pyproject_toml_stdin_schema_error() { assert_cmd_snapshot!( cmd.pass_stdin("[project]\nname = 1"), - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -2484,7 +2484,7 @@ fn pyproject_toml_stdin_no_applicable_rules_selected() { assert_cmd_snapshot!( cmd.pass_stdin("[project"), - @r" + @" success: true exit_code: 0 ----- stdout ----- @@ -2503,7 +2503,7 @@ fn pyproject_toml_stdin_no_applicable_rules_selected_2() { assert_cmd_snapshot!( cmd.pass_stdin("[project"), - @r" + @" success: true exit_code: 0 ----- stdout ----- @@ -2522,7 +2522,7 @@ fn pyproject_toml_stdin_no_errors() { assert_cmd_snapshot!( cmd.pass_stdin(r#"[project]\nname = "ruff"\nversion = "0.0.0""#), - @r" + @" success: true exit_code: 0 ----- stdout ----- @@ -2547,7 +2547,7 @@ fn pyproject_toml_stdin_schema_error_fix() { assert_cmd_snapshot!( cmd.pass_stdin("[project]\nname = 1"), - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -2581,7 +2581,7 @@ fn pyproject_toml_stdin_schema_error_fix_only() { assert_cmd_snapshot!( cmd.pass_stdin("[project]\nname = 1"), - @r" + @" success: true exit_code: 0 ----- stdout ----- @@ -2607,7 +2607,7 @@ fn pyproject_toml_stdin_schema_error_fix_diff() { assert_cmd_snapshot!( cmd.pass_stdin("[project]\nname = 1"), - @r" + @" success: true exit_code: 0 ----- stdout ----- diff --git a/crates/ruff/tests/resolve_files.rs b/crates/ruff/tests/resolve_files.rs index 866357eed2..6871d2a596 100644 --- a/crates/ruff/tests/resolve_files.rs +++ b/crates/ruff/tests/resolve_files.rs @@ -29,7 +29,7 @@ fn check_project_include_defaults() { filters => TEST_FILTERS.to_vec() }, { assert_cmd_snapshot!(Command::new(get_cargo_bin(BIN_NAME)) - .args(["check", "--show-files"]).current_dir(Path::new("./resources/test/fixtures/include-test")), @r" + .args(["check", "--show-files"]).current_dir(Path::new("./resources/test/fixtures/include-test")), @" success: true exit_code: 0 ----- stdout ----- @@ -53,7 +53,7 @@ fn check_project_respects_direct_paths() { filters => TEST_FILTERS.to_vec() }, { assert_cmd_snapshot!(Command::new(get_cargo_bin(BIN_NAME)) - .args(["check", "--show-files", "b.py"]).current_dir(Path::new("./resources/test/fixtures/include-test")), @r" + .args(["check", "--show-files", "b.py"]).current_dir(Path::new("./resources/test/fixtures/include-test")), @" success: true exit_code: 0 ----- stdout ----- @@ -72,7 +72,7 @@ fn check_project_respects_subdirectory_includes() { filters => TEST_FILTERS.to_vec() }, { assert_cmd_snapshot!(Command::new(get_cargo_bin(BIN_NAME)) - .args(["check", "--show-files", "subdirectory"]).current_dir(Path::new("./resources/test/fixtures/include-test")), @r" + .args(["check", "--show-files", "subdirectory"]).current_dir(Path::new("./resources/test/fixtures/include-test")), @" success: true exit_code: 0 ----- stdout ----- @@ -91,7 +91,7 @@ fn check_project_from_project_subdirectory_respects_includes() { filters => TEST_FILTERS.to_vec() }, { assert_cmd_snapshot!(Command::new(get_cargo_bin(BIN_NAME)) - .args(["check", "--show-files"]).current_dir(Path::new("./resources/test/fixtures/include-test/subdirectory")), @r" + .args(["check", "--show-files"]).current_dir(Path::new("./resources/test/fixtures/include-test/subdirectory")), @" success: true exit_code: 0 ----- stdout ----- diff --git a/crates/ruff/tests/snapshots/integration_test__stdin_json.snap b/crates/ruff/tests/snapshots/integration_test__stdin_json.snap index 590ea70ccf..6a3137aa75 100644 --- a/crates/ruff/tests/snapshots/integration_test__stdin_json.snap +++ b/crates/ruff/tests/snapshots/integration_test__stdin_json.snap @@ -3,11 +3,12 @@ source: crates/ruff/tests/integration_test.rs info: program: ruff args: - - "-" - - "--isolated" - - "--no-cache" + - check - "--output-format" - json + - "--no-cache" + - "--isolated" + - "-" - "--stdin-filename" - F401.py stdin: "import os\n" @@ -51,4 +52,3 @@ exit_code: 1 } ] ----- stderr ----- - diff --git a/crates/ruff/tests/version.rs b/crates/ruff/tests/version.rs index 2881b55f7f..fa4a8380e9 100644 --- a/crates/ruff/tests/version.rs +++ b/crates/ruff/tests/version.rs @@ -16,7 +16,7 @@ const VERSION_FILTER: [(&str, &str); 1] = [( fn version_basics() { insta::with_settings!({filters => VERSION_FILTER.to_vec()}, { assert_cmd_snapshot!( - Command::new(get_cargo_bin(BIN_NAME)).arg("version"), @r" + Command::new(get_cargo_bin(BIN_NAME)).arg("version"), @" success: true exit_code: 0 ----- stdout ----- @@ -42,7 +42,7 @@ fn config_option_allowed_but_ignored() -> Result<()> { .arg("version") .arg("--config") .arg(&ruff_dot_toml) - .args(["--config", "lint.isort.extra-standard-library = ['foo', 'bar']"]), @r" + .args(["--config", "lint.isort.extra-standard-library = ['foo', 'bar']"]), @" success: true exit_code: 0 ----- stdout ----- @@ -60,7 +60,7 @@ fn config_option_ignored_but_validated() { assert_cmd_snapshot!( Command::new(get_cargo_bin(BIN_NAME)) .arg("version") - .args(["--config", "foo = bar"]), @r" + .args(["--config", "foo = bar"]), @" success: false exit_code: 2 ----- stdout ----- @@ -91,7 +91,7 @@ fn config_option_ignored_but_validated() { fn isolated_option_allowed() { insta::with_settings!({filters => VERSION_FILTER.to_vec()}, { assert_cmd_snapshot!( - Command::new(get_cargo_bin(BIN_NAME)).arg("version").arg("--isolated"), @r" + Command::new(get_cargo_bin(BIN_NAME)).arg("version").arg("--isolated"), @" success: true exit_code: 0 ----- stdout ----- diff --git a/crates/ruff_db/src/diagnostic/render.rs b/crates/ruff_db/src/diagnostic/render.rs index d9f8775ef2..5cd8220694 100644 --- a/crates/ruff_db/src/diagnostic/render.rs +++ b/crates/ruff_db/src/diagnostic/render.rs @@ -1284,7 +1284,7 @@ watermelon let diag = env.err().primary("animals", "5", "5", "").build(); insta::assert_snapshot!( env.render(&diag), - @r" + @" error[test-diagnostic]: main diagnostic message --> animals:5:1 | @@ -1308,7 +1308,7 @@ watermelon .build(); insta::assert_snapshot!( env.render(&diag), - @r" + @" warning[test-diagnostic]: main diagnostic message --> animals:5:1 | @@ -1328,7 +1328,7 @@ watermelon .build(); insta::assert_snapshot!( env.render(&diag), - @r" + @" info[test-diagnostic]: main diagnostic message --> animals:5:1 | @@ -1355,7 +1355,7 @@ watermelon let diag = builder.build(); insta::assert_snapshot!( env.render(&diag), - @r" + @" error[test-diagnostic]: main diagnostic message --> animals:1:1 | @@ -1374,7 +1374,7 @@ watermelon let diag = builder.build(); insta::assert_snapshot!( env.render(&diag), - @r" + @" error[test-diagnostic]: main diagnostic message --> animals:1:1 | @@ -1395,7 +1395,7 @@ watermelon let diag = env.err().primary("non-ascii", "5", "5", "").build(); insta::assert_snapshot!( env.render(&diag), - @r" + @" error[test-diagnostic]: main diagnostic message --> non-ascii:5:1 | @@ -1414,7 +1414,7 @@ watermelon let diag = env.err().primary("non-ascii", "2:4", "2:8", "").build(); insta::assert_snapshot!( env.render(&diag), - @r" + @" error[test-diagnostic]: main diagnostic message --> non-ascii:2:2 | @@ -1438,7 +1438,7 @@ watermelon env.context(1); insta::assert_snapshot!( env.render(&diag), - @r" + @" error[test-diagnostic]: main diagnostic message --> animals:5:1 | @@ -1455,7 +1455,7 @@ watermelon env.context(0); insta::assert_snapshot!( env.render(&diag), - @r" + @" error[test-diagnostic]: main diagnostic message --> animals:5:1 | @@ -1470,7 +1470,7 @@ watermelon env.context(2); insta::assert_snapshot!( env.render(&diag), - @r" + @" error[test-diagnostic]: main diagnostic message --> animals:1:1 | @@ -1487,7 +1487,7 @@ watermelon env.context(2); insta::assert_snapshot!( env.render(&diag), - @r" + @" error[test-diagnostic]: main diagnostic message --> animals:11:1 | @@ -1504,7 +1504,7 @@ watermelon env.context(200); insta::assert_snapshot!( env.render(&diag), - @r" + @" error[test-diagnostic]: main diagnostic message --> animals:5:1 | @@ -1537,7 +1537,7 @@ watermelon .build(); insta::assert_snapshot!( env.render(&diag), - @r" + @" error[test-diagnostic]: main diagnostic message --> animals:1:1 | @@ -1581,7 +1581,7 @@ watermelon .build(); insta::assert_snapshot!( env.render(&diag), - @r" + @" error[test-diagnostic]: main diagnostic message --> animals:1:1 | @@ -1606,7 +1606,7 @@ watermelon .build(); insta::assert_snapshot!( env.render(&diag), - @r" + @" error[test-diagnostic]: main diagnostic message --> animals:1:1 | @@ -1634,7 +1634,7 @@ watermelon .build(); insta::assert_snapshot!( env.render(&diag), - @r" + @" error[test-diagnostic]: main diagnostic message --> animals:1:1 | @@ -1662,7 +1662,7 @@ watermelon .build(); insta::assert_snapshot!( env.render(&diag), - @r" + @" error[test-diagnostic]: main diagnostic message --> animals:1:1 | @@ -1687,7 +1687,7 @@ watermelon .build(); insta::assert_snapshot!( env.render(&diag), - @r" + @" error[test-diagnostic]: main diagnostic message --> animals:1:1 | @@ -1718,7 +1718,7 @@ watermelon // window. insta::assert_snapshot!( env.render(&diag), - @r" + @" error[test-diagnostic]: main diagnostic message --> animals:1:1 | @@ -1756,7 +1756,7 @@ watermelon let diag = env.err().primary("spacey-animals", "8", "8", "").build(); insta::assert_snapshot!( env.render(&diag), - @r" + @" error[test-diagnostic]: main diagnostic message --> spacey-animals:8:1 | @@ -1773,7 +1773,7 @@ watermelon let diag = env.err().primary("spacey-animals", "12", "12", "").build(); insta::assert_snapshot!( env.render(&diag), - @r" + @" error[test-diagnostic]: main diagnostic message --> spacey-animals:12:1 | @@ -1791,7 +1791,7 @@ watermelon let diag = env.err().primary("spacey-animals", "13", "13", "").build(); insta::assert_snapshot!( env.render(&diag), - @r" + @" error[test-diagnostic]: main diagnostic message --> spacey-animals:13:1 | @@ -1831,7 +1831,7 @@ watermelon // instead of special casing the snippet assembly. insta::assert_snapshot!( env.render(&diag), - @r" + @" error[test-diagnostic]: main diagnostic message --> spacey-animals:3:1 | @@ -1860,7 +1860,7 @@ watermelon .build(); insta::assert_snapshot!( env.render(&diag), - @r" + @" error[test-diagnostic]: main diagnostic message --> animals:3:1 | @@ -1897,7 +1897,7 @@ watermelon ); insta::assert_snapshot!( env.render(&diag), - @r" + @" error[test-diagnostic]: main diagnostic message --> animals:3:1 | @@ -1934,7 +1934,7 @@ watermelon ); insta::assert_snapshot!( env.render(&diag), - @r" + @" error[test-diagnostic]: main diagnostic message --> animals:3:1 | @@ -1962,7 +1962,7 @@ watermelon diag.sub(env.sub_warn().primary("fruits", "3", "3", "").build()); insta::assert_snapshot!( env.render(&diag), - @r" + @" error[test-diagnostic]: main diagnostic message --> animals:3:1 | @@ -1998,7 +1998,7 @@ watermelon diag.sub(env.sub_warn().primary("animals", "11", "11", "").build()); insta::assert_snapshot!( env.render(&diag), - @r" + @" error[test-diagnostic]: main diagnostic message --> animals:3:1 | @@ -2037,7 +2037,7 @@ watermelon diag.sub(env.sub_warn().primary("fruits", "3", "3", "").build()); insta::assert_snapshot!( env.render(&diag), - @r" + @" error[test-diagnostic]: main diagnostic message --> animals:3:1 | @@ -2085,7 +2085,7 @@ watermelon diag.sub(env.sub_warn().secondary("animals", "3", "3", "").build()); insta::assert_snapshot!( env.render(&diag), - @r" + @" error[test-diagnostic]: main diagnostic message --> animals:3:1 | @@ -2121,7 +2121,7 @@ watermelon let diag = env.err().primary("animals", "5", "6", "").build(); insta::assert_snapshot!( env.render(&diag), - @r" + @" error[test-diagnostic]: main diagnostic message --> animals:5:1 | @@ -2144,7 +2144,7 @@ watermelon let diag = env.err().primary("animals", "5", "7:0", "").build(); insta::assert_snapshot!( env.render(&diag), - @r" + @" error[test-diagnostic]: main diagnostic message --> animals:5:1 | @@ -2164,7 +2164,7 @@ watermelon let diag = env.err().primary("animals", "5", "7:1", "").build(); insta::assert_snapshot!( env.render(&diag), - @r" + @" error[test-diagnostic]: main diagnostic message --> animals:5:1 | @@ -2184,7 +2184,7 @@ watermelon let diag = env.err().primary("animals", "5:3", "8:8", "").build(); insta::assert_snapshot!( env.render(&diag), - @r" + @" error[test-diagnostic]: main diagnostic message --> animals:5:4 | @@ -2206,7 +2206,7 @@ watermelon let diag = env.err().secondary("animals", "5:3", "8:8", "").build(); insta::assert_snapshot!( env.render(&diag), - @r" + @" error[test-diagnostic]: main diagnostic message --> animals:5:4 | @@ -2238,7 +2238,7 @@ watermelon .build(); insta::assert_snapshot!( env.render(&diag), - @r" + @" error[test-diagnostic]: main diagnostic message --> animals:4:1 | @@ -2267,7 +2267,7 @@ watermelon .build(); insta::assert_snapshot!( env.render(&diag), - @r" + @" error[test-diagnostic]: main diagnostic message --> animals:4:1 | @@ -2298,7 +2298,7 @@ watermelon .build(); insta::assert_snapshot!( env.render(&diag), - @r" + @" error[test-diagnostic]: main diagnostic message --> animals:5:1 | @@ -2333,7 +2333,7 @@ watermelon // better using only ASCII art. insta::assert_snapshot!( env.render(&diag), - @r" + @" error[test-diagnostic]: main diagnostic message --> animals:5:1 | @@ -2361,7 +2361,7 @@ watermelon .build(); insta::assert_snapshot!( env.render(&diag), - @r" + @" error[test-diagnostic]: main diagnostic message --> animals:5:1 | @@ -2393,7 +2393,7 @@ watermelon .build(); insta::assert_snapshot!( env.render(&diag), - @r" + @" error[test-diagnostic]: main diagnostic message --> animals:5:3 | @@ -2415,7 +2415,7 @@ watermelon .build(); insta::assert_snapshot!( env.render(&diag), - @r" + @" error[test-diagnostic]: main diagnostic message --> animals:5:3 | @@ -2448,7 +2448,7 @@ watermelon .build(); insta::assert_snapshot!( env.render(&diag), - @r" + @" error[test-diagnostic]: main diagnostic message --> animals:8:1 | @@ -2488,7 +2488,7 @@ watermelon .build(); insta::assert_snapshot!( env.render(&diag), - @r" + @" error[test-diagnostic]: main diagnostic message --> animals:5:1 | @@ -2532,7 +2532,7 @@ watermelon .build(); insta::assert_snapshot!( env.render(&diag), - @r" + @" error[test-diagnostic]: main diagnostic message --> fruits:1:1 | @@ -2567,7 +2567,7 @@ watermelon .build(); insta::assert_snapshot!( env.render(&diag), - @r" + @" error[test-diagnostic]: main diagnostic message --> animals:11:1 | diff --git a/crates/ruff_db/src/diagnostic/render/concise.rs b/crates/ruff_db/src/diagnostic/render/concise.rs index 95a9e114e6..ea8e8bface 100644 --- a/crates/ruff_db/src/diagnostic/render/concise.rs +++ b/crates/ruff_db/src/diagnostic/render/concise.rs @@ -137,7 +137,7 @@ mod tests { #[test] fn output() { let (env, diagnostics) = create_diagnostics(DiagnosticFormat::Concise); - insta::assert_snapshot!(env.render_diagnostics(&diagnostics), @r" + insta::assert_snapshot!(env.render_diagnostics(&diagnostics), @" fib.py:1:8: error[unused-import] `os` imported but unused fib.py:6:5: error[unused-variable] Local variable `x` is assigned to but never used undef.py:1:4: error[undefined-name] Undefined name `a` @@ -150,7 +150,7 @@ mod tests { env.hide_severity(true); env.show_fix_status(true); env.fix_applicability(Applicability::DisplayOnly); - insta::assert_snapshot!(env.render_diagnostics(&diagnostics), @r" + insta::assert_snapshot!(env.render_diagnostics(&diagnostics), @" fib.py:1:8: F401 [*] `os` imported but unused fib.py:6:5: F841 [*] Local variable `x` is assigned to but never used undef.py:1:4: F821 Undefined name `a` @@ -164,7 +164,7 @@ mod tests { env.show_fix_status(true); env.fix_applicability(Applicability::DisplayOnly); env.preview(true); - insta::assert_snapshot!(env.render_diagnostics(&diagnostics), @r" + insta::assert_snapshot!(env.render_diagnostics(&diagnostics), @" fib.py:1:8: F401 [*] `os` imported but unused fib.py:6:5: F841 [*] Local variable `x` is assigned to but never used undef.py:1:4: F821 Undefined name `a` @@ -177,7 +177,7 @@ mod tests { env.hide_severity(true); env.show_fix_status(true); env.fix_applicability(Applicability::DisplayOnly); - insta::assert_snapshot!(env.render_diagnostics(&diagnostics), @r" + insta::assert_snapshot!(env.render_diagnostics(&diagnostics), @" syntax_errors.py:1:15: invalid-syntax: Expected one or more symbol names after import syntax_errors.py:3:12: invalid-syntax: Expected ')', found newline "); @@ -186,7 +186,7 @@ mod tests { #[test] fn syntax_errors() { let (env, diagnostics) = create_syntax_error_diagnostics(DiagnosticFormat::Concise); - insta::assert_snapshot!(env.render_diagnostics(&diagnostics), @r" + insta::assert_snapshot!(env.render_diagnostics(&diagnostics), @" syntax_errors.py:1:15: error[invalid-syntax] Expected one or more symbol names after import syntax_errors.py:3:12: error[invalid-syntax] Expected ')', found newline "); @@ -195,7 +195,7 @@ mod tests { #[test] fn notebook_output() { let (env, diagnostics) = create_notebook_diagnostics(DiagnosticFormat::Concise); - insta::assert_snapshot!(env.render_diagnostics(&diagnostics), @r" + insta::assert_snapshot!(env.render_diagnostics(&diagnostics), @" notebook.ipynb:cell 1:2:8: error[unused-import] `os` imported but unused notebook.ipynb:cell 2:2:8: error[unused-import] `math` imported but unused notebook.ipynb:cell 3:4:5: error[unused-variable] Local variable `x` is assigned to but never used diff --git a/crates/ruff_db/src/vendored.rs b/crates/ruff_db/src/vendored.rs index 4c1cb951a3..d3bc256226 100644 --- a/crates/ruff_db/src/vendored.rs +++ b/crates/ruff_db/src/vendored.rs @@ -619,19 +619,19 @@ pub(crate) mod tests { fn read_directory_stdlib() { let mock_typeshed = mock_typeshed(); - assert_snapshot!(readdir_snapshot(&mock_typeshed, "stdlib"), @r" + assert_snapshot!(readdir_snapshot(&mock_typeshed, "stdlib"), @" vendored://stdlib/asyncio/ vendored://stdlib/functools.pyi "); - assert_snapshot!(readdir_snapshot(&mock_typeshed, "stdlib/"), @r" + assert_snapshot!(readdir_snapshot(&mock_typeshed, "stdlib/"), @" vendored://stdlib/asyncio/ vendored://stdlib/functools.pyi "); - assert_snapshot!(readdir_snapshot(&mock_typeshed, "./stdlib"), @r" + assert_snapshot!(readdir_snapshot(&mock_typeshed, "./stdlib"), @" vendored://stdlib/asyncio/ vendored://stdlib/functools.pyi "); - assert_snapshot!(readdir_snapshot(&mock_typeshed, "./stdlib/"), @r" + assert_snapshot!(readdir_snapshot(&mock_typeshed, "./stdlib/"), @" vendored://stdlib/asyncio/ vendored://stdlib/functools.pyi "); diff --git a/crates/ruff_linter/src/comments/snapshots/ruff_linter__comments__shebang__tests__shebang_end_of_line.snap b/crates/ruff_linter/src/comments/snapshots/ruff_linter__comments__shebang__tests__shebang_end_of_line.snap index 9d9661bb8d..6e540f9ee6 100644 --- a/crates/ruff_linter/src/comments/snapshots/ruff_linter__comments__shebang__tests__shebang_end_of_line.snap +++ b/crates/ruff_linter/src/comments/snapshots/ruff_linter__comments__shebang__tests__shebang_end_of_line.snap @@ -1,6 +1,5 @@ --- source: crates/ruff_linter/src/comments/shebang.rs expression: "ShebangDirective::try_extract(source)" -snapshot_kind: text --- None diff --git a/crates/ruff_linter/src/comments/snapshots/ruff_linter__comments__shebang__tests__shebang_leading_space.snap b/crates/ruff_linter/src/comments/snapshots/ruff_linter__comments__shebang__tests__shebang_leading_space.snap index 9d9661bb8d..6e540f9ee6 100644 --- a/crates/ruff_linter/src/comments/snapshots/ruff_linter__comments__shebang__tests__shebang_leading_space.snap +++ b/crates/ruff_linter/src/comments/snapshots/ruff_linter__comments__shebang__tests__shebang_leading_space.snap @@ -1,6 +1,5 @@ --- source: crates/ruff_linter/src/comments/shebang.rs expression: "ShebangDirective::try_extract(source)" -snapshot_kind: text --- None diff --git a/crates/ruff_linter/src/comments/snapshots/ruff_linter__comments__shebang__tests__shebang_match.snap b/crates/ruff_linter/src/comments/snapshots/ruff_linter__comments__shebang__tests__shebang_match.snap index c8014060ac..87bd31a99c 100644 --- a/crates/ruff_linter/src/comments/snapshots/ruff_linter__comments__shebang__tests__shebang_match.snap +++ b/crates/ruff_linter/src/comments/snapshots/ruff_linter__comments__shebang__tests__shebang_match.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_linter/src/comments/shebang.rs expression: "ShebangDirective::try_extract(source)" -snapshot_kind: text --- Some( ShebangDirective( diff --git a/crates/ruff_linter/src/comments/snapshots/ruff_linter__comments__shebang__tests__shebang_match_trailing_comment.snap b/crates/ruff_linter/src/comments/snapshots/ruff_linter__comments__shebang__tests__shebang_match_trailing_comment.snap index f7db7bfa10..6177b629e2 100644 --- a/crates/ruff_linter/src/comments/snapshots/ruff_linter__comments__shebang__tests__shebang_match_trailing_comment.snap +++ b/crates/ruff_linter/src/comments/snapshots/ruff_linter__comments__shebang__tests__shebang_match_trailing_comment.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_linter/src/comments/shebang.rs expression: "ShebangDirective::try_extract(source)" -snapshot_kind: text --- Some( ShebangDirective( diff --git a/crates/ruff_linter/src/comments/snapshots/ruff_linter__comments__shebang__tests__shebang_non_match.snap b/crates/ruff_linter/src/comments/snapshots/ruff_linter__comments__shebang__tests__shebang_non_match.snap index 9d9661bb8d..6e540f9ee6 100644 --- a/crates/ruff_linter/src/comments/snapshots/ruff_linter__comments__shebang__tests__shebang_non_match.snap +++ b/crates/ruff_linter/src/comments/snapshots/ruff_linter__comments__shebang__tests__shebang_non_match.snap @@ -1,6 +1,5 @@ --- source: crates/ruff_linter/src/comments/shebang.rs expression: "ShebangDirective::try_extract(source)" -snapshot_kind: text --- None diff --git a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__grouped__tests__default.snap b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__grouped__tests__default.snap index a5a7a1cfe8..7c9d9d5bfc 100644 --- a/crates/ruff_linter/src/message/snapshots/ruff_linter__message__grouped__tests__default.snap +++ b/crates/ruff_linter/src/message/snapshots/ruff_linter__message__grouped__tests__default.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_linter/src/message/grouped.rs expression: content -snapshot_kind: text --- fib.py: 1:8 F401 `os` imported but unused diff --git a/crates/ruff_linter/src/noqa.rs b/crates/ruff_linter/src/noqa.rs index a3b5b6133d..36785ea0c4 100644 --- a/crates/ruff_linter/src/noqa.rs +++ b/crates/ruff_linter/src/noqa.rs @@ -1326,7 +1326,7 @@ mod tests { fn noqa_all() { let source = "# noqa"; let directive = lex_inline_noqa(TextRange::up_to(source.text_len()), source); - assert_debug_snapshot!(directive, @r" + assert_debug_snapshot!(directive, @" Ok( Some( NoqaLexerOutput { @@ -1347,7 +1347,7 @@ mod tests { fn noqa_no_code() { let source = "# noqa:"; let directive = lex_inline_noqa(TextRange::up_to(source.text_len()), source); - assert_debug_snapshot!(directive, @r" + assert_debug_snapshot!(directive, @" Err( MissingCodes, ) @@ -1359,7 +1359,7 @@ mod tests { fn noqa_no_code_invalid_suffix() { let source = "# noqa: foo"; let directive = lex_inline_noqa(TextRange::up_to(source.text_len()), source); - assert_debug_snapshot!(directive, @r" + assert_debug_snapshot!(directive, @" Err( MissingCodes, ) @@ -1371,7 +1371,7 @@ mod tests { fn noqa_no_code_trailing_content() { let source = "# noqa: # Foo"; let directive = lex_inline_noqa(TextRange::up_to(source.text_len()), source); - assert_debug_snapshot!(directive, @r" + assert_debug_snapshot!(directive, @" Err( MissingCodes, ) @@ -1383,7 +1383,7 @@ mod tests { fn malformed_code_1() { let source = "# noqa: F"; let directive = lex_inline_noqa(TextRange::up_to(source.text_len()), source); - assert_debug_snapshot!(directive, @r" + assert_debug_snapshot!(directive, @" Err( MissingCodes, ) @@ -1422,7 +1422,7 @@ mod tests { fn malformed_code_3() { let source = "# noqa: RUF001F"; let directive = lex_inline_noqa(TextRange::up_to(source.text_len()), source); - assert_debug_snapshot!(directive, @r" + assert_debug_snapshot!(directive, @" Err( InvalidCodeSuffix, ) @@ -1492,7 +1492,7 @@ mod tests { fn noqa_all_case_insensitive() { let source = "# NOQA"; let directive = lex_inline_noqa(TextRange::up_to(source.text_len()), source); - assert_debug_snapshot!(directive, @r" + assert_debug_snapshot!(directive, @" Ok( Some( NoqaLexerOutput { @@ -1625,7 +1625,7 @@ mod tests { fn noqa_all_no_space() { let source = "#noqa"; let directive = lex_inline_noqa(TextRange::up_to(source.text_len()), source); - assert_debug_snapshot!(directive, @r" + assert_debug_snapshot!(directive, @" Ok( Some( NoqaLexerOutput { @@ -1704,7 +1704,7 @@ mod tests { fn noqa_all_multi_space() { let source = "# noqa"; let directive = lex_inline_noqa(TextRange::up_to(source.text_len()), source); - assert_debug_snapshot!(directive, @r" + assert_debug_snapshot!(directive, @" Ok( Some( NoqaLexerOutput { @@ -1837,7 +1837,7 @@ mod tests { fn noqa_all_leading_comment() { let source = "# Some comment describing the noqa # noqa"; let directive = lex_inline_noqa(TextRange::up_to(source.text_len()), source); - assert_debug_snapshot!(directive, @r" + assert_debug_snapshot!(directive, @" Ok( Some( NoqaLexerOutput { @@ -1916,7 +1916,7 @@ mod tests { fn noqa_all_trailing_comment() { let source = "# noqa # Some comment describing the noqa"; let directive = lex_inline_noqa(TextRange::up_to(source.text_len()), source); - assert_debug_snapshot!(directive, @r" + assert_debug_snapshot!(directive, @" Ok( Some( NoqaLexerOutput { @@ -1995,7 +1995,7 @@ mod tests { fn noqa_invalid_codes() { let source = "# noqa: unused-import, F401, some other code"; let directive = lex_inline_noqa(TextRange::up_to(source.text_len()), source); - assert_debug_snapshot!(directive, @r" + assert_debug_snapshot!(directive, @" Err( MissingCodes, ) @@ -2139,7 +2139,7 @@ mod tests { fn noqa_code_invalid_code_suffix() { let source = "# noqa: F401abc"; let directive = lex_inline_noqa(TextRange::up_to(source.text_len()), source); - assert_debug_snapshot!(directive, @r" + assert_debug_snapshot!(directive, @" Err( InvalidCodeSuffix, ) @@ -2151,7 +2151,7 @@ mod tests { fn noqa_invalid_suffix() { let source = "# noqa[F401]"; let directive = lex_inline_noqa(TextRange::up_to(source.text_len()), source); - assert_debug_snapshot!(directive, @r" + assert_debug_snapshot!(directive, @" Err( InvalidSuffix, ) @@ -2163,7 +2163,7 @@ mod tests { fn flake8_exemption_all() { let source = "# flake8: noqa"; let exemption = lex_file_exemption(TextRange::up_to(source.text_len()), source); - assert_debug_snapshot!(exemption, @r" + assert_debug_snapshot!(exemption, @" Ok( Some( NoqaLexerOutput { @@ -2184,7 +2184,7 @@ mod tests { fn flake8_noqa_no_code() { let source = "# flake8: noqa:"; let exemption = lex_file_exemption(TextRange::up_to(source.text_len()), source); - assert_debug_snapshot!(exemption, @r" + assert_debug_snapshot!(exemption, @" Err( MissingCodes, ) @@ -2196,7 +2196,7 @@ mod tests { fn flake8_noqa_no_code_invalid_suffix() { let source = "# flake8: noqa: foo"; let exemption = lex_file_exemption(TextRange::up_to(source.text_len()), source); - assert_debug_snapshot!(exemption, @r" + assert_debug_snapshot!(exemption, @" Err( MissingCodes, ) @@ -2208,7 +2208,7 @@ mod tests { fn flake8_noqa_no_code_trailing_content() { let source = "# flake8: noqa: # Foo"; let exemption = lex_file_exemption(TextRange::up_to(source.text_len()), source); - assert_debug_snapshot!(exemption, @r" + assert_debug_snapshot!(exemption, @" Err( MissingCodes, ) @@ -2220,7 +2220,7 @@ mod tests { fn flake8_malformed_code_1() { let source = "# flake8: noqa: F"; let directive = lex_file_exemption(TextRange::up_to(source.text_len()), source); - assert_debug_snapshot!(directive, @r" + assert_debug_snapshot!(directive, @" Err( MissingCodes, ) @@ -2259,7 +2259,7 @@ mod tests { fn flake8_malformed_code_3() { let source = "# flake8: noqa: RUF001F"; let directive = lex_file_exemption(TextRange::up_to(source.text_len()), source); - assert_debug_snapshot!(directive, @r" + assert_debug_snapshot!(directive, @" Err( InvalidCodeSuffix, ) @@ -2271,7 +2271,7 @@ mod tests { fn ruff_exemption_all() { let source = "# ruff: noqa"; let exemption = lex_file_exemption(TextRange::up_to(source.text_len()), source); - assert_debug_snapshot!(exemption, @r" + assert_debug_snapshot!(exemption, @" Ok( Some( NoqaLexerOutput { @@ -2292,7 +2292,7 @@ mod tests { fn ruff_noqa_no_code() { let source = "# ruff: noqa:"; let exemption = lex_file_exemption(TextRange::up_to(source.text_len()), source); - assert_debug_snapshot!(exemption, @r" + assert_debug_snapshot!(exemption, @" Err( MissingCodes, ) @@ -2304,7 +2304,7 @@ mod tests { fn ruff_noqa_no_code_invalid_suffix() { let source = "# ruff: noqa: foo"; let exemption = lex_file_exemption(TextRange::up_to(source.text_len()), source); - assert_debug_snapshot!(exemption, @r" + assert_debug_snapshot!(exemption, @" Err( MissingCodes, ) @@ -2316,7 +2316,7 @@ mod tests { fn ruff_noqa_no_code_trailing_content() { let source = "# ruff: noqa: # Foo"; let exemption = lex_file_exemption(TextRange::up_to(source.text_len()), source); - assert_debug_snapshot!(exemption, @r" + assert_debug_snapshot!(exemption, @" Err( MissingCodes, ) @@ -2328,7 +2328,7 @@ mod tests { fn ruff_malformed_code_1() { let source = "# ruff: noqa: F"; let directive = lex_file_exemption(TextRange::up_to(source.text_len()), source); - assert_debug_snapshot!(directive, @r" + assert_debug_snapshot!(directive, @" Err( MissingCodes, ) @@ -2367,7 +2367,7 @@ mod tests { fn ruff_malformed_code_3() { let source = "# ruff: noqa: RUF001F"; let directive = lex_file_exemption(TextRange::up_to(source.text_len()), source); - assert_debug_snapshot!(directive, @r" + assert_debug_snapshot!(directive, @" Err( InvalidCodeSuffix, ) @@ -2379,7 +2379,7 @@ mod tests { fn flake8_exemption_all_no_space() { let source = "#flake8:noqa"; let exemption = lex_file_exemption(TextRange::up_to(source.text_len()), source); - assert_debug_snapshot!(exemption, @r" + assert_debug_snapshot!(exemption, @" Ok( Some( NoqaLexerOutput { @@ -2400,7 +2400,7 @@ mod tests { fn ruff_exemption_all_no_space() { let source = "#ruff:noqa"; let exemption = lex_file_exemption(TextRange::up_to(source.text_len()), source); - assert_debug_snapshot!(exemption, @r" + assert_debug_snapshot!(exemption, @" Ok( Some( NoqaLexerOutput { @@ -2619,7 +2619,7 @@ mod tests { fn ruff_exemption_invalid_code_suffix() { let source = "# ruff: noqa: F401abc"; let exemption = lex_file_exemption(TextRange::up_to(source.text_len()), source); - assert_debug_snapshot!(exemption, @r" + assert_debug_snapshot!(exemption, @" Err( InvalidCodeSuffix, ) @@ -2685,7 +2685,7 @@ mod tests { fn ruff_exemption_all_leading_comment() { let source = "# Leading comment # ruff: noqa"; let exemption = lex_file_exemption(TextRange::up_to(source.text_len()), source); - assert_debug_snapshot!(exemption, @r" + assert_debug_snapshot!(exemption, @" Ok( Some( NoqaLexerOutput { @@ -2706,7 +2706,7 @@ mod tests { fn ruff_exemption_all_trailing_comment() { let source = "# ruff: noqa # Trailing comment"; let exemption = lex_file_exemption(TextRange::up_to(source.text_len()), source); - assert_debug_snapshot!(exemption, @r" + assert_debug_snapshot!(exemption, @" Ok( Some( NoqaLexerOutput { @@ -2754,7 +2754,7 @@ mod tests { fn ruff_exemption_all_trailing_comment_no_space() { let source = "# ruff: noqa# Trailing comment"; let exemption = lex_file_exemption(TextRange::up_to(source.text_len()), source); - assert_debug_snapshot!(exemption, @r" + assert_debug_snapshot!(exemption, @" Ok( Some( NoqaLexerOutput { @@ -2775,7 +2775,7 @@ mod tests { fn ruff_exemption_all_trailing_comment_no_hash() { let source = "# ruff: noqa Trailing comment"; let exemption = lex_file_exemption(TextRange::up_to(source.text_len()), source); - assert_debug_snapshot!(exemption, @r" + assert_debug_snapshot!(exemption, @" Ok( Some( NoqaLexerOutput { @@ -2823,7 +2823,7 @@ mod tests { fn flake8_exemption_all_case_insensitive() { let source = "# flake8: NoQa"; let exemption = lex_file_exemption(TextRange::up_to(source.text_len()), source); - assert_debug_snapshot!(exemption, @r" + assert_debug_snapshot!(exemption, @" Ok( Some( NoqaLexerOutput { @@ -2844,7 +2844,7 @@ mod tests { fn ruff_exemption_all_case_insensitive() { let source = "# ruff: NoQa"; let exemption = lex_file_exemption(TextRange::up_to(source.text_len()), source); - assert_debug_snapshot!(exemption, @r" + assert_debug_snapshot!(exemption, @" Ok( Some( NoqaLexerOutput { diff --git a/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__allow_nested_overload.snap b/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__allow_nested_overload.snap index 84015aa9bc..1cda90bb2d 100644 --- a/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__allow_nested_overload.snap +++ b/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__allow_nested_overload.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_annotations/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__suppress_dummy_args.snap b/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__suppress_dummy_args.snap index 84015aa9bc..1cda90bb2d 100644 --- a/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__suppress_dummy_args.snap +++ b/crates/ruff_linter/src/rules/flake8_annotations/snapshots/ruff_linter__rules__flake8_annotations__tests__suppress_dummy_args.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_annotations/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC109_1.py.snap b/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC109_1.py.snap index e205d4e18b..78704f6637 100644 --- a/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC109_1.py.snap +++ b/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC109_1.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_async/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S401_S401.pyi.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S401_S401.pyi.snap index 9d651303e1..1df4d98952 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S401_S401.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S401_S401.pyi.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S402_S402.pyi.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S402_S402.pyi.snap index 9d651303e1..1df4d98952 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S402_S402.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S402_S402.pyi.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S403_S403.pyi.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S403_S403.pyi.snap index 9d651303e1..1df4d98952 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S403_S403.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S403_S403.pyi.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S404_S404.pyi.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S404_S404.pyi.snap index 9d651303e1..1df4d98952 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S404_S404.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S404_S404.pyi.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S405_S405.pyi.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S405_S405.pyi.snap index 9d651303e1..1df4d98952 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S405_S405.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S405_S405.pyi.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S406_S406.pyi.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S406_S406.pyi.snap index 9d651303e1..1df4d98952 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S406_S406.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S406_S406.pyi.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S407_S407.pyi.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S407_S407.pyi.snap index 9d651303e1..1df4d98952 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S407_S407.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S407_S407.pyi.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S408_S408.pyi.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S408_S408.pyi.snap index 9d651303e1..1df4d98952 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S408_S408.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S408_S408.pyi.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S409_S409.pyi.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S409_S409.pyi.snap index 9d651303e1..1df4d98952 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S409_S409.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S409_S409.pyi.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S410_S410.pyi.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S410_S410.pyi.snap index 9d651303e1..1df4d98952 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S410_S410.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S410_S410.pyi.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S411_S411.pyi.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S411_S411.pyi.snap index 9d651303e1..1df4d98952 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S411_S411.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S411_S411.pyi.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S412_S412.pyi.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S412_S412.pyi.snap index 9d651303e1..1df4d98952 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S412_S412.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S412_S412.pyi.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S413_S413.pyi.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S413_S413.pyi.snap index 9d651303e1..1df4d98952 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S413_S413.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S413_S413.pyi.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S415_S415.pyi.snap b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S415_S415.pyi.snap index 9d651303e1..1df4d98952 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S415_S415.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_bandit/snapshots/ruff_linter__rules__flake8_bandit__tests__S415_S415.pyi.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B006_B006_1.pyi.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B006_B006_1.pyi.snap index 30ef2c1efd..967e60a4f9 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B006_B006_1.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B006_B006_1.pyi.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B027_B027.pyi.snap b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B027_B027.pyi.snap index 30ef2c1efd..967e60a4f9 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B027_B027.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_bugbear/snapshots/ruff_linter__rules__flake8_bugbear__tests__B027_B027.pyi.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules___abc____init__.py.snap b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules___abc____init__.py.snap index d9ec358dcc..df35fcb66a 100644 --- a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules___abc____init__.py.snap +++ b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules___abc____init__.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_builtins/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules___abc____init__.py_builtins_allowed_modules.snap b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules___abc____init__.py_builtins_allowed_modules.snap index d9ec358dcc..df35fcb66a 100644 --- a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules___abc____init__.py_builtins_allowed_modules.snap +++ b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules___abc____init__.py_builtins_allowed_modules.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_builtins/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__logging____init__.py_builtins_allowed_modules.snap b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__logging____init__.py_builtins_allowed_modules.snap index d9ec358dcc..df35fcb66a 100644 --- a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__logging____init__.py_builtins_allowed_modules.snap +++ b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__logging____init__.py_builtins_allowed_modules.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_builtins/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__non_builtin____init__.py.snap b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__non_builtin____init__.py.snap index d9ec358dcc..df35fcb66a 100644 --- a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__non_builtin____init__.py.snap +++ b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__non_builtin____init__.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_builtins/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__non_builtin____init__.py_builtins_allowed_modules.snap b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__non_builtin____init__.py_builtins_allowed_modules.snap index d9ec358dcc..df35fcb66a 100644 --- a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__non_builtin____init__.py_builtins_allowed_modules.snap +++ b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__non_builtin____init__.py_builtins_allowed_modules.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_builtins/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__package__xml.py_builtins_allowed_modules.snap b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__package__xml.py_builtins_allowed_modules.snap index d9ec358dcc..df35fcb66a 100644 --- a/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__package__xml.py_builtins_allowed_modules.snap +++ b/crates/ruff_linter/src/rules/flake8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A005_A005__modules__package__xml.py_builtins_allowed_modules.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_builtins/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C419_C419_2.py.snap b/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C419_C419_2.py.snap index 0172399c06..d9845b4ae9 100644 --- a/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C419_C419_2.py.snap +++ b/crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C419_C419_2.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_comprehensions/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice.snap b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice.snap index 071086251a..314ed9c4f9 100644 --- a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice.snap +++ b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_copyright/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice_with_c.snap b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice_with_c.snap index 071086251a..314ed9c4f9 100644 --- a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice_with_c.snap +++ b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice_with_c.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_copyright/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice_with_caps.snap b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice_with_caps.snap index 071086251a..314ed9c4f9 100644 --- a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice_with_caps.snap +++ b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice_with_caps.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_copyright/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice_with_comma.snap b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice_with_comma.snap index 071086251a..314ed9c4f9 100644 --- a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice_with_comma.snap +++ b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice_with_comma.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_copyright/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice_with_range.snap b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice_with_range.snap index 071086251a..314ed9c4f9 100644 --- a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice_with_range.snap +++ b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice_with_range.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_copyright/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice_with_unicode_c.snap b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice_with_unicode_c.snap index 071086251a..314ed9c4f9 100644 --- a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice_with_unicode_c.snap +++ b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice_with_unicode_c.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_copyright/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__small_file.snap b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__small_file.snap index 071086251a..314ed9c4f9 100644 --- a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__small_file.snap +++ b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__small_file.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_copyright/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__valid_author.snap b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__valid_author.snap index 071086251a..314ed9c4f9 100644 --- a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__valid_author.snap +++ b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__valid_author.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_copyright/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__valid_author_with_comma_valid_space.snap b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__valid_author_with_comma_valid_space.snap index 071086251a..314ed9c4f9 100644 --- a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__valid_author_with_comma_valid_space.snap +++ b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__valid_author_with_comma_valid_space.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_copyright/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__valid_author_with_dash.snap b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__valid_author_with_dash.snap index 071086251a..314ed9c4f9 100644 --- a/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__valid_author_with_dash.snap +++ b/crates/ruff_linter/src/rules/flake8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__valid_author_with_dash.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_copyright/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__fa102_ok_no_types.py.snap b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__fa102_ok_no_types.py.snap index 98e748990e..0e51cf4a6f 100644 --- a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__fa102_ok_no_types.py.snap +++ b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__fa102_ok_no_types.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_future_annotations/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__fa102_ok_quoted_type.py.snap b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__fa102_ok_quoted_type.py.snap index 98e748990e..0e51cf4a6f 100644 --- a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__fa102_ok_quoted_type.py.snap +++ b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__fa102_ok_quoted_type.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_future_annotations/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__fa102_ok_uses_future.py.snap b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__fa102_ok_uses_future.py.snap index 98e748990e..0e51cf4a6f 100644 --- a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__fa102_ok_uses_future.py.snap +++ b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__fa102_ok_uses_future.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_future_annotations/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__no_future_import_uses_lowercase.py.snap b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__no_future_import_uses_lowercase.py.snap index 98e748990e..0e51cf4a6f 100644 --- a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__no_future_import_uses_lowercase.py.snap +++ b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__no_future_import_uses_lowercase.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_future_annotations/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__no_future_import_uses_union.py.snap b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__no_future_import_uses_union.py.snap index 98e748990e..0e51cf4a6f 100644 --- a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__no_future_import_uses_union.py.snap +++ b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__no_future_import_uses_union.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_future_annotations/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__no_future_import_uses_union_inner.py.snap b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__no_future_import_uses_union_inner.py.snap index 98e748990e..0e51cf4a6f 100644 --- a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__no_future_import_uses_union_inner.py.snap +++ b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__no_future_import_uses_union_inner.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_future_annotations/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__ok_no_types.py.snap b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__ok_no_types.py.snap index 98e748990e..0e51cf4a6f 100644 --- a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__ok_no_types.py.snap +++ b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__ok_no_types.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_future_annotations/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__ok_non_simplifiable_types.py.snap b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__ok_non_simplifiable_types.py.snap index 98e748990e..0e51cf4a6f 100644 --- a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__ok_non_simplifiable_types.py.snap +++ b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__ok_non_simplifiable_types.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_future_annotations/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__ok_uses_future.py.snap b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__ok_uses_future.py.snap index 98e748990e..0e51cf4a6f 100644 --- a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__ok_uses_future.py.snap +++ b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__ok_uses_future.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_future_annotations/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__ok_variable_name.py.snap b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__ok_variable_name.py.snap index 98e748990e..0e51cf4a6f 100644 --- a/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__ok_variable_name.py.snap +++ b/crates/ruff_linter/src/rules/flake8_future_annotations/snapshots/ruff_linter__rules__flake8_future_annotations__tests__ok_variable_name.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_future_annotations/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_implicit_str_concat/snapshots/ruff_linter__rules__flake8_implicit_str_concat__tests__multiline_ISC003_ISC.py.snap b/crates/ruff_linter/src/rules/flake8_implicit_str_concat/snapshots/ruff_linter__rules__flake8_implicit_str_concat__tests__multiline_ISC003_ISC.py.snap index bfac2e63a3..1858d1d7e1 100644 --- a/crates/ruff_linter/src/rules/flake8_implicit_str_concat/snapshots/ruff_linter__rules__flake8_implicit_str_concat__tests__multiline_ISC003_ISC.py.snap +++ b/crates/ruff_linter/src/rules/flake8_implicit_str_concat/snapshots/ruff_linter__rules__flake8_implicit_str_concat__tests__multiline_ISC003_ISC.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_implicit_str_concat/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G004_implicit_concat.py.snap b/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G004_implicit_concat.py.snap index d12abeb8be..051bba97a6 100644 --- a/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G004_implicit_concat.py.snap +++ b/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G004_implicit_concat.py.snap @@ -1,6 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_logging_format/mod.rs -assertion_line: 50 --- G004 Logging statement uses f-string --> G004_implicit_concat.py:6:10 diff --git a/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G_argparse_parser_error_ok.py.snap b/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G_argparse_parser_error_ok.py.snap index 013e8b5130..d8fca09633 100644 --- a/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G_argparse_parser_error_ok.py.snap +++ b/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G_argparse_parser_error_ok.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_logging_format/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G_extra_ok.py.snap b/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G_extra_ok.py.snap index 013e8b5130..d8fca09633 100644 --- a/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G_extra_ok.py.snap +++ b/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G_extra_ok.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_logging_format/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G_extra_str_format_ok.py.snap b/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G_extra_str_format_ok.py.snap index 013e8b5130..d8fca09633 100644 --- a/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G_extra_str_format_ok.py.snap +++ b/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G_extra_str_format_ok.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_logging_format/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G_simple_ok.py.snap b/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G_simple_ok.py.snap index 013e8b5130..d8fca09633 100644 --- a/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G_simple_ok.py.snap +++ b/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G_simple_ok.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_logging_format/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G_warnings_ok.py.snap b/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G_warnings_ok.py.snap index 013e8b5130..d8fca09633 100644 --- a/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G_warnings_ok.py.snap +++ b/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__G_warnings_ok.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_logging_format/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__preview__G004_G004_implicit_concat.py.snap b/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__preview__G004_G004_implicit_concat.py.snap index 8d0f79f8e5..60fd3d0c04 100644 --- a/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__preview__G004_G004_implicit_concat.py.snap +++ b/crates/ruff_linter/src/rules/flake8_logging_format/snapshots/ruff_linter__rules__flake8_logging_format__tests__preview__G004_G004_implicit_concat.py.snap @@ -1,6 +1,5 @@ --- source: crates/ruff_linter/src/rules/flake8_logging_format/mod.rs -assertion_line: 71 --- G004 [*] Logging statement uses f-string --> G004_implicit_concat.py:6:10 diff --git a/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_ignored.snap b/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_ignored.snap index c5d164d0c1..624dce3225 100644 --- a/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_ignored.snap +++ b/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_ignored.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_no_pep420/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_pass_init.snap b/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_pass_init.snap index c5d164d0c1..624dce3225 100644 --- a/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_pass_init.snap +++ b/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_pass_init.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_no_pep420/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_pass_namespace_package.snap b/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_pass_namespace_package.snap index c5d164d0c1..624dce3225 100644 --- a/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_pass_namespace_package.snap +++ b/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_pass_namespace_package.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_no_pep420/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_pass_pep723.snap b/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_pass_pep723.snap index c5d164d0c1..624dce3225 100644 --- a/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_pass_pep723.snap +++ b/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_pass_pep723.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_no_pep420/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_pass_pyi.snap b/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_pass_pyi.snap index c5d164d0c1..624dce3225 100644 --- a/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_pass_pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_pass_pyi.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_no_pep420/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_pass_script.snap b/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_pass_script.snap index c5d164d0c1..624dce3225 100644 --- a/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_pass_script.snap +++ b/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_pass_script.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_no_pep420/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_pass_shebang.snap b/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_pass_shebang.snap index c5d164d0c1..624dce3225 100644 --- a/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_pass_shebang.snap +++ b/crates/ruff_linter/src/rules/flake8_no_pep420/snapshots/ruff_linter__rules__flake8_no_pep420__tests__test_pass_shebang.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_no_pep420/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pie/snapshots/ruff_linter__rules__flake8_pie__tests__PIE796_PIE796.pyi.snap b/crates/ruff_linter/src/rules/flake8_pie/snapshots/ruff_linter__rules__flake8_pie__tests__PIE796_PIE796.pyi.snap index 4f0d8e6042..5c6e954faa 100644 --- a/crates/ruff_linter/src/rules/flake8_pie/snapshots/ruff_linter__rules__flake8_pie__tests__PIE796_PIE796.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_pie/snapshots/ruff_linter__rules__flake8_pie__tests__PIE796_PIE796.pyi.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_pie/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI001_PYI001.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI001_PYI001.py.snap index 5990d00bfe..f0a4f44d2b 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI001_PYI001.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI001_PYI001.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI002_PYI002.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI002_PYI002.py.snap index 5990d00bfe..f0a4f44d2b 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI002_PYI002.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI002_PYI002.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI003_PYI003.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI003_PYI003.py.snap index 5990d00bfe..f0a4f44d2b 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI003_PYI003.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI003_PYI003.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI004_PYI004.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI004_PYI004.py.snap index 5990d00bfe..f0a4f44d2b 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI004_PYI004.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI004_PYI004.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI005_PYI005.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI005_PYI005.py.snap index 5990d00bfe..f0a4f44d2b 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI005_PYI005.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI005_PYI005.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI007_PYI007.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI007_PYI007.py.snap index 5990d00bfe..f0a4f44d2b 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI007_PYI007.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI007_PYI007.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI008_PYI008.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI008_PYI008.py.snap index 5990d00bfe..f0a4f44d2b 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI008_PYI008.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI008_PYI008.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI009_PYI009.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI009_PYI009.py.snap index 5990d00bfe..f0a4f44d2b 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI009_PYI009.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI009_PYI009.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI010_PYI010.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI010_PYI010.py.snap index 5990d00bfe..f0a4f44d2b 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI010_PYI010.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI010_PYI010.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI011_PYI011.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI011_PYI011.py.snap index 5990d00bfe..f0a4f44d2b 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI011_PYI011.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI011_PYI011.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI012_PYI012.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI012_PYI012.py.snap index 5990d00bfe..f0a4f44d2b 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI012_PYI012.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI012_PYI012.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI014_PYI014.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI014_PYI014.py.snap index 5990d00bfe..f0a4f44d2b 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI014_PYI014.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI014_PYI014.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI015_PYI015.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI015_PYI015.py.snap index 5990d00bfe..f0a4f44d2b 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI015_PYI015.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI015_PYI015.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI017_PYI017.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI017_PYI017.py.snap index 5990d00bfe..f0a4f44d2b 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI017_PYI017.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI017_PYI017.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI020_PYI020.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI020_PYI020.py.snap index 5990d00bfe..f0a4f44d2b 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI020_PYI020.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI020_PYI020.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI021_PYI021.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI021_PYI021.py.snap index 5990d00bfe..f0a4f44d2b 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI021_PYI021.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI021_PYI021.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI026_PYI026.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI026_PYI026.py.snap index 5990d00bfe..f0a4f44d2b 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI026_PYI026.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI026_PYI026.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI029_PYI029.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI029_PYI029.py.snap index 5990d00bfe..f0a4f44d2b 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI029_PYI029.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI029_PYI029.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI033_PYI033.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI033_PYI033.py.snap index 5990d00bfe..f0a4f44d2b 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI033_PYI033.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI033_PYI033.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI035_PYI035.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI035_PYI035.py.snap index 5990d00bfe..f0a4f44d2b 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI035_PYI035.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI035_PYI035.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI044_PYI044.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI044_PYI044.py.snap index 5990d00bfe..f0a4f44d2b 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI044_PYI044.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI044_PYI044.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI048_PYI048.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI048_PYI048.py.snap index 5990d00bfe..f0a4f44d2b 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI048_PYI048.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI048_PYI048.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI052_PYI052.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI052_PYI052.py.snap index 5990d00bfe..f0a4f44d2b 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI052_PYI052.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI052_PYI052.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI053_PYI053.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI053_PYI053.py.snap index 5990d00bfe..f0a4f44d2b 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI053_PYI053.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI053_PYI053.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI054_PYI054.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI054_PYI054.py.snap index 5990d00bfe..f0a4f44d2b 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI054_PYI054.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI054_PYI054.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI066_PYI066.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI066_PYI066.py.snap index 5990d00bfe..f0a4f44d2b 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI066_PYI066.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI066_PYI066.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__py38_PYI026_PYI026.py.snap b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__py38_PYI026_PYI026.py.snap index 5990d00bfe..f0a4f44d2b 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__py38_PYI026_PYI026.py.snap +++ b/crates/ruff_linter/src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__py38_PYI026_PYI026.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_doubles_over_singles_noqa.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_doubles_over_singles_noqa.py.snap index 81b913df5d..a5e579090a 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_doubles_over_singles_noqa.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_doubles_over_singles_noqa.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_doubles_over_singles_wrapped.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_doubles_over_singles_wrapped.py.snap index 81b913df5d..a5e579090a 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_doubles_over_singles_wrapped.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_doubles_over_singles_wrapped.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_singles_over_doubles_noqa.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_singles_over_doubles_noqa.py.snap index 81b913df5d..a5e579090a 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_singles_over_doubles_noqa.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_singles_over_doubles_noqa.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_singles_over_doubles_wrapped.py.snap b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_singles_over_doubles_wrapped.py.snap index 81b913df5d..a5e579090a 100644 --- a/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_singles_over_doubles_wrapped.py.snap +++ b/crates/ruff_linter/src/rules/flake8_quotes/snapshots/ruff_linter__rules__flake8_quotes__tests__require_singles_over_doubles_wrapped.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__quote_runtime-import-in-type-checking-block_quote2.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__quote_runtime-import-in-type-checking-block_quote2.py.snap index 173cb5a2d6..6c5ead2742 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__quote_runtime-import-in-type-checking-block_quote2.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__quote_runtime-import-in-type-checking-block_quote2.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__quote_runtime-import-in-type-checking-block_quote3.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__quote_runtime-import-in-type-checking-block_quote3.py.snap index 173cb5a2d6..6c5ead2742 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__quote_runtime-import-in-type-checking-block_quote3.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__quote_runtime-import-in-type-checking-block_quote3.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TC004_10.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TC004_10.py.snap index 173cb5a2d6..6c5ead2742 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TC004_10.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TC004_10.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TC004_13.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TC004_13.py.snap index 173cb5a2d6..6c5ead2742 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TC004_13.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TC004_13.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TC004_14.pyi.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TC004_14.pyi.snap index 173cb5a2d6..6c5ead2742 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TC004_14.pyi.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TC004_14.pyi.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TC004_15.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TC004_15.py.snap index 173cb5a2d6..6c5ead2742 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TC004_15.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TC004_15.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TC004_16.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TC004_16.py.snap index 173cb5a2d6..6c5ead2742 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TC004_16.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TC004_16.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TC004_3.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TC004_3.py.snap index 173cb5a2d6..6c5ead2742 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TC004_3.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TC004_3.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TC004_6.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TC004_6.py.snap index 173cb5a2d6..6c5ead2742 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TC004_6.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TC004_6.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TC004_7.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TC004_7.py.snap index 173cb5a2d6..6c5ead2742 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TC004_7.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TC004_7.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TC004_8.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TC004_8.py.snap index 173cb5a2d6..6c5ead2742 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TC004_8.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TC004_8.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_kw_only.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_kw_only.py.snap index 173cb5a2d6..6c5ead2742 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_kw_only.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_kw_only.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_module__direct.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_module__direct.py.snap index 173cb5a2d6..6c5ead2742 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_module__direct.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_module__direct.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_module__import.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_module__import.py.snap index 173cb5a2d6..6c5ead2742 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_module__import.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_module__import.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_runtime_evaluated_base_classes_4.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_runtime_evaluated_base_classes_4.py.snap index 173cb5a2d6..6c5ead2742 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_runtime_evaluated_base_classes_4.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_runtime_evaluated_base_classes_4.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_snapshot.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_snapshot.py.snap index 173cb5a2d6..6c5ead2742 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_snapshot.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-standard-library-import_snapshot.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-third-party-import_runtime_evaluated_base_classes_5.py.snap b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-third-party-import_runtime_evaluated_base_classes_5.py.snap index 173cb5a2d6..6c5ead2742 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-third-party-import_runtime_evaluated_base_classes_5.py.snap +++ b/crates/ruff_linter/src/rules/flake8_type_checking/snapshots/ruff_linter__rules__flake8_type_checking__tests__typing-only-third-party-import_runtime_evaluated_base_classes_5.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__use_pathlib.py.snap b/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__use_pathlib.py.snap index 0839f70e26..10a495237c 100644 --- a/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__use_pathlib.py.snap +++ b/crates/ruff_linter/src/rules/flake8_use_pathlib/snapshots/ruff_linter__rules__flake8_use_pathlib__tests__use_pathlib.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/flake8_use_pathlib/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__bom_sorted.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__bom_sorted.py.snap index 803f879dca..ed369f0fd6 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__bom_sorted.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__bom_sorted.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__default_section_can_map_to_user_defined_section_default_section_user_defined.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__default_section_can_map_to_user_defined_section_default_section_user_defined.py.snap index 803f879dca..ed369f0fd6 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__default_section_can_map_to_user_defined_section_default_section_user_defined.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__default_section_can_map_to_user_defined_section_default_section_user_defined.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__force_sort_within_sections_force_sort_within_sections_lines_between.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__force_sort_within_sections_force_sort_within_sections_lines_between.py.snap index 803f879dca..ed369f0fd6 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__force_sort_within_sections_force_sort_within_sections_lines_between.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__force_sort_within_sections_force_sort_within_sections_lines_between.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__from_first_from_first.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__from_first_from_first.py.snap index 803f879dca..ed369f0fd6 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__from_first_from_first.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__from_first_from_first.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__isort_skip_file.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__isort_skip_file.py.snap index 803f879dca..ed369f0fd6 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__isort_skip_file.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__isort_skip_file.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__no_reorder_within_section.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__no_reorder_within_section.py.snap index 803f879dca..ed369f0fd6 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__no_reorder_within_section.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__no_reorder_within_section.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__no_sections_no_sections.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__no_sections_no_sections.py.snap index 803f879dca..ed369f0fd6 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__no_sections_no_sections.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__no_sections_no_sections.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__preserve_tabs.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__preserve_tabs.py.snap index 803f879dca..ed369f0fd6 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__preserve_tabs.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__preserve_tabs.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__preserve_tabs_2.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__preserve_tabs_2.py.snap index 803f879dca..ed369f0fd6 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__preserve_tabs_2.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__preserve_tabs_2.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__relative_imports_order.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__relative_imports_order.py.snap index 803f879dca..ed369f0fd6 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__relative_imports_order.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__relative_imports_order.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_docstring.pyi.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_docstring.pyi.snap index 803f879dca..ed369f0fd6 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_docstring.pyi.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_docstring.pyi.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_docstring_only.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_docstring_only.py.snap index 803f879dca..ed369f0fd6 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_docstring_only.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_docstring_only.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_empty.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_empty.py.snap index 803f879dca..ed369f0fd6 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_empty.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_empty.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_docstring.pyi.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_docstring.pyi.snap index 803f879dca..ed369f0fd6 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_docstring.pyi.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_docstring.pyi.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_docstring_only.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_docstring_only.py.snap index 803f879dca..ed369f0fd6 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_docstring_only.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_docstring_only.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_empty.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_empty.py.snap index 803f879dca..ed369f0fd6 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_empty.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_import_with_alias_empty.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_imports_docstring.pyi.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_imports_docstring.pyi.snap index 803f879dca..ed369f0fd6 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_imports_docstring.pyi.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_imports_docstring.pyi.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_imports_docstring_only.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_imports_docstring_only.py.snap index 803f879dca..ed369f0fd6 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_imports_docstring_only.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_imports_docstring_only.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_imports_empty.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_imports_empty.py.snap index 803f879dca..ed369f0fd6 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_imports_empty.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__required_imports_empty.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__ruff_skip_file.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__ruff_skip_file.py.snap index 803f879dca..ed369f0fd6 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__ruff_skip_file.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__ruff_skip_file.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__straight_required_import_docstring_only.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__straight_required_import_docstring_only.py.snap index 803f879dca..ed369f0fd6 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__straight_required_import_docstring_only.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__straight_required_import_docstring_only.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__straight_required_import_empty.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__straight_required_import_empty.py.snap index 803f879dca..ed369f0fd6 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__straight_required_import_empty.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__straight_required_import_empty.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__type_comments.py.snap b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__type_comments.py.snap index 803f879dca..ed369f0fd6 100644 --- a/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__type_comments.py.snap +++ b/crates/ruff_linter/src/rules/isort/snapshots/ruff_linter__rules__isort__tests__type_comments.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/isort/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/mccabe/snapshots/ruff_linter__rules__mccabe__tests__max_complexity_10.snap b/crates/ruff_linter/src/rules/mccabe/snapshots/ruff_linter__rules__mccabe__tests__max_complexity_10.snap index f41da3bb0a..59f3ea53f2 100644 --- a/crates/ruff_linter/src/rules/mccabe/snapshots/ruff_linter__rules__mccabe__tests__max_complexity_10.snap +++ b/crates/ruff_linter/src/rules/mccabe/snapshots/ruff_linter__rules__mccabe__tests__max_complexity_10.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/mccabe/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD002_pass.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD002_pass.snap index 18e7a86197..07173f8f1b 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD002_pass.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD002_pass.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD003_allows_other_calls.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD003_allows_other_calls.snap index 18e7a86197..07173f8f1b 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD003_allows_other_calls.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD003_allows_other_calls.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD003_pass.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD003_pass.snap index 18e7a86197..07173f8f1b 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD003_pass.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD003_pass.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD004_pass.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD004_pass.snap index 18e7a86197..07173f8f1b 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD004_pass.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD004_pass.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD007_pass_iloc.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD007_pass_iloc.snap index 18e7a86197..07173f8f1b 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD007_pass_iloc.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD007_pass_iloc.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD007_pass_loc.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD007_pass_loc.snap index 18e7a86197..07173f8f1b 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD007_pass_loc.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD007_pass_loc.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD008_pass.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD008_pass.snap index 18e7a86197..07173f8f1b 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD008_pass.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD008_pass.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD008_pass_on_attr.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD008_pass_on_attr.snap index 18e7a86197..07173f8f1b 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD008_pass_on_attr.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD008_pass_on_attr.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD009_pass.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD009_pass.snap index 18e7a86197..07173f8f1b 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD009_pass.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD009_pass.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD010_pass.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD010_pass.snap index 18e7a86197..07173f8f1b 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD010_pass.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD010_pass.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_array.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_array.snap index 18e7a86197..07173f8f1b 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_array.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_array.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_node_name.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_node_name.snap index 18e7a86197..07173f8f1b 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_node_name.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_node_name.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_to_array.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_to_array.snap index 18e7a86197..07173f8f1b 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_to_array.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_to_array.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_values_call.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_values_call.snap index 18e7a86197..07173f8f1b 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_values_call.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_values_call.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_values_dict.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_values_dict.snap index 18e7a86197..07173f8f1b 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_values_dict.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_values_dict.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_values_import.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_values_import.snap index 18e7a86197..07173f8f1b 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_values_import.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_values_import.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_values_instance.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_values_instance.snap index 18e7a86197..07173f8f1b 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_values_instance.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_values_instance.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_values_store.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_values_store.snap index 18e7a86197..07173f8f1b 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_values_store.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_values_store.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_values_unbound.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_values_unbound.snap index 18e7a86197..07173f8f1b 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_values_unbound.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD011_pass_values_unbound.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD013_pass.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD013_pass.snap index 18e7a86197..07173f8f1b 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD013_pass.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD013_pass.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD013_pass_numpy.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD013_pass_numpy.snap index 18e7a86197..07173f8f1b 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD013_pass_numpy.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD013_pass_numpy.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD013_pass_unbound.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD013_pass_unbound.snap index 18e7a86197..07173f8f1b 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD013_pass_unbound.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD013_pass_unbound.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD015_pass_merge_on_dataframe.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD015_pass_merge_on_dataframe.snap index 18e7a86197..07173f8f1b 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD015_pass_merge_on_dataframe.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD015_pass_merge_on_dataframe.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD015_pass_merge_on_dataframe_with_multiple_args.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD015_pass_merge_on_dataframe_with_multiple_args.snap index 18e7a86197..07173f8f1b 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD015_pass_merge_on_dataframe_with_multiple_args.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD015_pass_merge_on_dataframe_with_multiple_args.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD015_pass_other_pd_function.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD015_pass_other_pd_function.snap index 18e7a86197..07173f8f1b 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD015_pass_other_pd_function.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD015_pass_other_pd_function.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD901_pass_df_param.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD901_pass_df_param.snap index 18e7a86197..07173f8f1b 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD901_pass_df_param.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD901_pass_df_param.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD901_pass_non_df.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD901_pass_non_df.snap index 18e7a86197..07173f8f1b 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD901_pass_non_df.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD901_pass_non_df.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD901_pass_part_df.snap b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD901_pass_part_df.snap index 18e7a86197..07173f8f1b 100644 --- a/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD901_pass_part_df.snap +++ b/crates/ruff_linter/src/rules/pandas_vet/snapshots/ruff_linter__rules__pandas_vet__tests__PD901_pass_part_df.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pandas_vet/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__MODULE__file.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__MODULE__file.py.snap index da7b487719..719c39c477 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__MODULE__file.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__MODULE__file.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__flake9____init__.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__flake9____init__.py.snap index da7b487719..719c39c477 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__flake9____init__.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__flake9____init__.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__mod with spaces__file.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__mod with spaces__file.py.snap index da7b487719..719c39c477 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__mod with spaces__file.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__mod with spaces__file.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__no_module__test.txt.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__no_module__test.txt.snap index da7b487719..719c39c477 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__no_module__test.txt.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__no_module__test.txt.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__valid_name____init__.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__valid_name____init__.py.snap index da7b487719..719c39c477 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__valid_name____init__.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__valid_name____init__.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__valid_name____main__.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__valid_name____main__.py.snap index da7b487719..719c39c477 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__valid_name____main__.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__valid_name____main__.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__valid_name____setup__.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__valid_name____setup__.py.snap index da7b487719..719c39c477 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__valid_name____setup__.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__valid_name____setup__.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__valid_name__file-with-dashes.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__valid_name__file-with-dashes.snap index da7b487719..719c39c477 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__valid_name__file-with-dashes.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__N999_N999__module__valid_name__file-with-dashes.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N999_N999__badAllowed____init__.py.snap b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N999_N999__badAllowed____init__.py.snap index da7b487719..719c39c477 100644 --- a/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N999_N999__badAllowed____init__.py.snap +++ b/crates/ruff_linter/src/rules/pep8_naming/snapshots/ruff_linter__rules__pep8_naming__tests__ignore_names_N999_N999__badAllowed____init__.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pep8_naming/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E402_E402_2.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E402_E402_2.py.snap index e5d90e3bfa..6dcc4546f1 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E402_E402_2.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E402_E402_2.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E402_E402_3.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E402_E402_3.py.snap index e5d90e3bfa..6dcc4546f1 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E402_E402_3.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E402_E402_3.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E402_E402_4.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E402_E402_4.py.snap index 195339b453..6dcc4546f1 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E402_E402_4.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E402_E402_4.py.snap @@ -1,3 +1,4 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs --- + diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E402_E402_5.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E402_E402_5.py.snap index 81d49b4bba..6dcc4546f1 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E402_E402_5.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E402_E402_5.py.snap @@ -1,3 +1,4 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs ---- \ No newline at end of file +--- + diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W292_W292_1.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W292_W292_1.py.snap index e5d90e3bfa..6dcc4546f1 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W292_W292_1.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W292_W292_1.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W292_W292_2.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W292_W292_2.py.snap index e5d90e3bfa..6dcc4546f1 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W292_W292_2.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W292_W292_2.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W292_W292_3.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W292_W292_3.py.snap index e5d90e3bfa..6dcc4546f1 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W292_W292_3.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__W292_W292_3.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E301_typing_stub.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E301_typing_stub.snap index e5d90e3bfa..6dcc4546f1 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E301_typing_stub.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E301_typing_stub.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E302_typing_stub.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E302_typing_stub.snap index e5d90e3bfa..6dcc4546f1 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E302_typing_stub.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E302_typing_stub.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E305_typing_stub.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E305_typing_stub.snap index e5d90e3bfa..6dcc4546f1 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E305_typing_stub.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E305_typing_stub.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E306_typing_stub.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E306_typing_stub.snap index e5d90e3bfa..6dcc4546f1 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E306_typing_stub.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E306_typing_stub.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__preview__W391_W391_1.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__preview__W391_W391_1.py.snap index e5d90e3bfa..6dcc4546f1 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__preview__W391_W391_1.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__preview__W391_W391_1.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__preview__W391_W391_3.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__preview__W391_W391_3.py.snap index e5d90e3bfa..6dcc4546f1 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__preview__W391_W391_3.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__preview__W391_W391_3.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__preview__W391_W391_4.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__preview__W391_W391_4.py.snap index e5d90e3bfa..6dcc4546f1 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__preview__W391_W391_4.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__preview__W391_W391_4.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__task_tags_true.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__task_tags_true.snap index e5d90e3bfa..6dcc4546f1 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__task_tags_true.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__task_tags_true.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-missing-exception_DOC501.py.snap b/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-missing-exception_DOC501.py.snap index 884a3b2f86..d3c56b22a3 100644 --- a/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-missing-exception_DOC501.py.snap +++ b/crates/ruff_linter/src/rules/pydoclint/snapshots/ruff_linter__rules__pydoclint__tests__docstring-missing-exception_DOC501.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pydoclint/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D100_D100.ipynb.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D100_D100.ipynb.snap index b9a217857b..724d6e7d20 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D100_D100.ipynb.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D100_D100.ipynb.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D100__unrelated___no_pkg_priv.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D100__unrelated___no_pkg_priv.py.snap index b9a217857b..724d6e7d20 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D100__unrelated___no_pkg_priv.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D100__unrelated___no_pkg_priv.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D100__unrelated__pkg___priv__no_D100_priv.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D100__unrelated__pkg___priv__no_D100_priv.py.snap index b9a217857b..724d6e7d20 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D100__unrelated__pkg___priv__no_D100_priv.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D100__unrelated__pkg___priv__no_D100_priv.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D104_D.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D104_D.py.snap index b9a217857b..724d6e7d20 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D104_D.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D104_D.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D106_D.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D106_D.py.snap index b9a217857b..724d6e7d20 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D106_D.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D106_D.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D206_D.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D206_D.py.snap index b9a217857b..724d6e7d20 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D206_D.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D206_D.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D403_D.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D403_D.py.snap index b9a217857b..724d6e7d20 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D403_D.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D403_D.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D416_D.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D416_D.py.snap index b9a217857b..724d6e7d20 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D416_D.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D416_D.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D417_canonical_google_examples.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D417_canonical_google_examples.py.snap index b9a217857b..724d6e7d20 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D417_canonical_google_examples.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D417_canonical_google_examples.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D417_canonical_numpy_examples.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D417_canonical_numpy_examples.py.snap index b9a217857b..724d6e7d20 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D417_canonical_numpy_examples.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D417_canonical_numpy_examples.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__d417_numpy.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__d417_numpy.snap index b9a217857b..724d6e7d20 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__d417_numpy.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__d417_numpy.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_1.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_1.py.snap index a487e4ddb8..d0b409f39e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_1.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_1.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_12.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_12.py.snap index a487e4ddb8..d0b409f39e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_12.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_12.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_13.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_13.py.snap index a487e4ddb8..d0b409f39e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_13.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_13.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_14.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_14.py.snap index a487e4ddb8..d0b409f39e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_14.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_14.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_16.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_16.py.snap index a487e4ddb8..d0b409f39e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_16.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_16.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_19.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_19.py.snap index a487e4ddb8..d0b409f39e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_19.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_19.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_2.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_2.py.snap index a487e4ddb8..d0b409f39e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_2.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_2.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_20.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_20.py.snap index a487e4ddb8..d0b409f39e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_20.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_20.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_21.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_21.py.snap index a487e4ddb8..d0b409f39e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_21.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_21.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_22.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_22.py.snap index a487e4ddb8..d0b409f39e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_22.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_22.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_3.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_3.py.snap index a487e4ddb8..d0b409f39e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_3.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_3.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_32.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_32.py.snap index a487e4ddb8..d0b409f39e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_32.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_32.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_4.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_4.py.snap index a487e4ddb8..d0b409f39e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_4.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_4.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_8.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_8.py.snap index a487e4ddb8..d0b409f39e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_8.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_8.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F505_F504.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F505_F504.py.snap index a487e4ddb8..d0b409f39e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F505_F504.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F505_F504.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_10.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_10.py.snap index a487e4ddb8..d0b409f39e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_10.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_10.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_11.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_11.py.snap index a487e4ddb8..d0b409f39e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_11.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_11.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_13.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_13.py.snap index a487e4ddb8..d0b409f39e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_13.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_13.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_14.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_14.py.snap index a487e4ddb8..d0b409f39e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_14.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_14.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_18.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_18.py.snap index a487e4ddb8..d0b409f39e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_18.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_18.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_19.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_19.py.snap index a487e4ddb8..d0b409f39e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_19.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_19.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_20.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_20.py.snap index a487e4ddb8..d0b409f39e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_20.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_20.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_22.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_22.py.snap index a487e4ddb8..d0b409f39e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_22.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_22.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_24.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_24.py.snap index a487e4ddb8..d0b409f39e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_24.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_24.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_25.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_25.py.snap index a487e4ddb8..d0b409f39e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_25.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_25.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_27.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_27.py.snap index a487e4ddb8..d0b409f39e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_27.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_27.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_7.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_7.py.snap index a487e4ddb8..d0b409f39e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_7.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_7.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_9.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_9.py.snap index a487e4ddb8..d0b409f39e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_9.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F811_F811_9.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_10.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_10.py.snap index a487e4ddb8..d0b409f39e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_10.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_10.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_14.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_14.py.snap index a487e4ddb8..d0b409f39e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_14.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_14.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_15.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_15.py.snap index a487e4ddb8..d0b409f39e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_15.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_15.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_16.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_16.py.snap index a487e4ddb8..d0b409f39e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_16.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_16.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_22.ipynb.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_22.ipynb.snap index a487e4ddb8..d0b409f39e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_22.ipynb.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_22.ipynb.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_23.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_23.py.snap index a487e4ddb8..d0b409f39e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_23.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_23.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_24.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_24.py.snap index a487e4ddb8..d0b409f39e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_24.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_24.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_25.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_25.py.snap index a487e4ddb8..d0b409f39e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_25.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_25.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_26.pyi.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_26.pyi.snap index a487e4ddb8..d0b409f39e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_26.pyi.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_26.pyi.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_29.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_29.py.snap index a487e4ddb8..d0b409f39e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_29.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_29.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_6.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_6.py.snap index a487e4ddb8..d0b409f39e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_6.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_6.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_8.pyi.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_8.pyi.snap index a487e4ddb8..d0b409f39e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_8.pyi.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F821_F821_8.pyi.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F822_F822_2.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F822_F822_2.py.snap index a487e4ddb8..d0b409f39e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F822_F822_2.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F822_F822_2.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F841_F841_2.py.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F841_F841_2.py.snap index a487e4ddb8..d0b409f39e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F841_F841_2.py.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F841_F841_2.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__extend_immutable_calls.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__extend_immutable_calls.snap index a487e4ddb8..d0b409f39e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__extend_immutable_calls.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__extend_immutable_calls.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__extra_builtins.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__extra_builtins.snap index a487e4ddb8..d0b409f39e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__extra_builtins.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__extra_builtins.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__print_in_if_else_after_shadowing_except.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__print_in_if_else_after_shadowing_except.snap index a487e4ddb8..d0b409f39e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__print_in_if_else_after_shadowing_except.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__print_in_if_else_after_shadowing_except.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__print_in_try_else_after_shadowing_except.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__print_in_try_else_after_shadowing_except.snap index a487e4ddb8..d0b409f39e 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__print_in_try_else_after_shadowing_except.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__print_in_try_else_after_shadowing_except.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pygrep_hooks/snapshots/ruff_linter__rules__pygrep_hooks__tests__PGH004_PGH004_3.py.snap b/crates/ruff_linter/src/rules/pygrep_hooks/snapshots/ruff_linter__rules__pygrep_hooks__tests__PGH004_PGH004_3.py.snap index 8bbce8e2cd..d5e81ab920 100644 --- a/crates/ruff_linter/src/rules/pygrep_hooks/snapshots/ruff_linter__rules__pygrep_hooks__tests__PGH004_PGH004_3.py.snap +++ b/crates/ruff_linter/src/rules/pygrep_hooks/snapshots/ruff_linter__rules__pygrep_hooks__tests__PGH004_PGH004_3.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pygrep_hooks/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0116_continue_in_finally.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0116_continue_in_finally.py.snap index d87d6848ea..6c123427ab 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0116_continue_in_finally.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE0116_continue_in_finally.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyupgrade/mod.rs b/crates/ruff_linter/src/rules/pyupgrade/mod.rs index a4bd1c5ac6..c60d17dfc6 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/mod.rs +++ b/crates/ruff_linter/src/rules/pyupgrade/mod.rs @@ -386,7 +386,7 @@ mod tests { ]) }, ); - assert_diagnostics!(diagnostics, @r" + assert_diagnostics!(diagnostics, @" UP035 [*] Import from `shlex` instead: `quote` --> :1:1 | diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_10.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_10.py.snap index c996a51d38..2bacb5d540 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_10.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_10.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_2.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_2.py.snap index c996a51d38..2bacb5d540 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_2.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_2.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_3.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_3.py.snap index c996a51d38..2bacb5d540 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_3.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_3.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_4.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_4.py.snap index c996a51d38..2bacb5d540 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_4.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_4.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_5.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_5.py.snap index c996a51d38..2bacb5d540 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_5.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_5.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_8.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_8.py.snap index c996a51d38..2bacb5d540 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_8.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_8.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_9.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_9.py.snap index c996a51d38..2bacb5d540 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_9.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_9.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_code_utf8_utf8.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_code_utf8_utf8.py.snap index c996a51d38..2bacb5d540 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_code_utf8_utf8.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_code_utf8_utf8.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_hashbang_utf8_other.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_hashbang_utf8_other.py.snap index c996a51d38..2bacb5d540 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_hashbang_utf8_other.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_hashbang_utf8_other.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_many_empty_lines.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_many_empty_lines.py.snap index c996a51d38..2bacb5d540 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_many_empty_lines.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_many_empty_lines.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_other_other.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_other_other.py.snap index c996a51d38..2bacb5d540 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_other_other.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_other_other.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_other_utf8.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_other_utf8.py.snap index c996a51d38..2bacb5d540 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_other_utf8.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_other_utf8.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_utf8_other.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_utf8_other.py.snap index c996a51d38..2bacb5d540 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_utf8_other.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP009_utf8_other.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP024_3.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP024_3.py.snap index c996a51d38..2bacb5d540 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP024_3.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP024_3.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP030_1.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP030_1.py.snap index c996a51d38..2bacb5d540 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP030_1.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP030_1.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP031_1.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP031_1.py.snap index c996a51d38..2bacb5d540 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP031_1.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP031_1.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP032_3.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP032_3.py.snap index c996a51d38..2bacb5d540 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP032_3.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP032_3.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__future_annotations_keep_runtime_typing_p37.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__future_annotations_keep_runtime_typing_p37.snap index c996a51d38..2bacb5d540 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__future_annotations_keep_runtime_typing_p37.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__future_annotations_keep_runtime_typing_p37.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__non_pep695_type_alias_not_applied_py311.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__non_pep695_type_alias_not_applied_py311.snap index c996a51d38..2bacb5d540 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__non_pep695_type_alias_not_applied_py311.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__non_pep695_type_alias_not_applied_py311.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/pyupgrade/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF009_RUF009_attrs_auto_attribs.py.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF009_RUF009_attrs_auto_attribs.py.snap index b3a37c0921..7f58cfd724 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF009_RUF009_attrs_auto_attribs.py.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF009_RUF009_attrs_auto_attribs.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF013_RUF013_2.py.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF013_RUF013_2.py.snap index b3a37c0921..7f58cfd724 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF013_RUF013_2.py.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF013_RUF013_2.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF027_RUF027_1.py.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF027_RUF027_1.py.snap index b3a37c0921..7f58cfd724 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF027_RUF027_1.py.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF027_RUF027_1.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF027_RUF027_2.py.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF027_RUF027_2.py.snap index b3a37c0921..7f58cfd724 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF027_RUF027_2.py.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF027_RUF027_2.py.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF200_maturin.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF200_maturin.snap index b3a37c0921..7f58cfd724 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF200_maturin.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__RUF200_maturin.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__flake8_noqa.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__flake8_noqa.snap index b3a37c0921..7f58cfd724 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__flake8_noqa.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__flake8_noqa.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__redirects.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__redirects.snap index b3a37c0921..7f58cfd724 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__redirects.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__redirects.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruf100_4.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruf100_4.snap index b3a37c0921..7f58cfd724 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruf100_4.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruf100_4.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruff_noqa_all.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruff_noqa_all.snap index b3a37c0921..7f58cfd724 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruff_noqa_all.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruff_noqa_all.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruff_per_file_ignores.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruff_per_file_ignores.snap index b3a37c0921..7f58cfd724 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruff_per_file_ignores.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruff_per_file_ignores.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruff_per_file_ignores_empty.snap b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruff_per_file_ignores_empty.snap index b3a37c0921..7f58cfd724 100644 --- a/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruff_per_file_ignores_empty.snap +++ b/crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__ruff_per_file_ignores_empty.snap @@ -1,5 +1,4 @@ --- source: crates/ruff_linter/src/rules/ruff/mod.rs -snapshot_kind: text --- diff --git a/crates/ruff_linter/src/suppression.rs b/crates/ruff_linter/src/suppression.rs index 4cb5deca69..cfd7510b1b 100644 --- a/crates/ruff_linter/src/suppression.rs +++ b/crates/ruff_linter/src/suppression.rs @@ -662,7 +662,7 @@ print('hello') "; assert_debug_snapshot!( Suppressions::debug(source), - @r" + @" Suppressions { valid: [], invalid: [], @@ -680,7 +680,7 @@ print('hello') "; assert_debug_snapshot!( Suppressions::debug(source), - @r" + @" Suppressions { valid: [], invalid: [], @@ -1324,7 +1324,7 @@ def bar(): fn parse_unrelated_comment() { assert_debug_snapshot!( parse_suppression_comment("# hello world"), - @r" + @" Err( ParseError { kind: NotASuppression, @@ -1339,7 +1339,7 @@ def bar(): fn parse_invalid_action() { assert_debug_snapshot!( parse_suppression_comment("# ruff: lol[hi]"), - @r" + @" Err( ParseError { kind: UnknownAction, @@ -1354,7 +1354,7 @@ def bar(): fn parse_missing_codes() { assert_debug_snapshot!( parse_suppression_comment("# ruff: disable"), - @r" + @" Err( ParseError { kind: MissingCodes, @@ -1369,7 +1369,7 @@ def bar(): fn parse_empty_codes() { assert_debug_snapshot!( parse_suppression_comment("# ruff: disable[]"), - @r" + @" Err( ParseError { kind: MissingCodes, @@ -1384,7 +1384,7 @@ def bar(): fn parse_missing_bracket() { assert_debug_snapshot!( parse_suppression_comment("# ruff: disable[foo"), - @r" + @" Err( ParseError { kind: MissingBracket, @@ -1399,7 +1399,7 @@ def bar(): fn parse_missing_comma() { assert_debug_snapshot!( parse_suppression_comment("# ruff: disable[foo bar]"), - @r" + @" Err( ParseError { kind: MissingComma, diff --git a/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__bytes_literals.snap b/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__bytes_literals.snap index d8d8eb0e8d..e9c3ad425b 100644 --- a/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__bytes_literals.snap +++ b/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__bytes_literals.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_ast_integration_tests/tests/source_order.rs expression: trace -snapshot_kind: text --- - ModModule - StmtExpr diff --git a/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__compare.snap b/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__compare.snap index 4fed977dca..b62cf421b9 100644 --- a/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__compare.snap +++ b/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__compare.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_ast_integration_tests/tests/source_order.rs expression: trace -snapshot_kind: text --- - ModModule - StmtExpr diff --git a/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__dict_comprehension.snap b/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__dict_comprehension.snap index 20daeacee0..a3f7d311d7 100644 --- a/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__dict_comprehension.snap +++ b/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__dict_comprehension.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_ast_integration_tests/tests/source_order.rs expression: trace -snapshot_kind: text --- - ModModule - StmtExpr diff --git a/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__list_comprehension.snap b/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__list_comprehension.snap index 1cf6fb582f..469e6bb2d7 100644 --- a/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__list_comprehension.snap +++ b/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__list_comprehension.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_ast_integration_tests/tests/source_order.rs expression: trace -snapshot_kind: text --- - ModModule - StmtExpr diff --git a/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__set_comprehension.snap b/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__set_comprehension.snap index 89553f51a0..0aa37fd7eb 100644 --- a/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__set_comprehension.snap +++ b/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__set_comprehension.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_ast_integration_tests/tests/source_order.rs expression: trace -snapshot_kind: text --- - ModModule - StmtExpr diff --git a/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__string_literals.snap b/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__string_literals.snap index 28c215cfb0..11071b635a 100644 --- a/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__string_literals.snap +++ b/crates/ruff_python_ast_integration_tests/tests/snapshots/source_order__string_literals.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_ast_integration_tests/tests/source_order.rs expression: trace -snapshot_kind: text --- - ModModule - StmtExpr diff --git a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__bytes_literals.snap b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__bytes_literals.snap index 00c432cfdd..0ad5f4f890 100644 --- a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__bytes_literals.snap +++ b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__bytes_literals.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_ast_integration_tests/tests/visitor.rs expression: trace -snapshot_kind: text --- - StmtExpr - ExprBytesLiteral diff --git a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__class_type_parameters.snap b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__class_type_parameters.snap index 8b0acc8581..cf16702250 100644 --- a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__class_type_parameters.snap +++ b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__class_type_parameters.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_ast_integration_tests/tests/visitor.rs expression: trace -snapshot_kind: text --- - StmtClassDef - TypeParamTypeVar diff --git a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__compare.snap b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__compare.snap index 63981501e6..8c0425fa43 100644 --- a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__compare.snap +++ b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__compare.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_ast_integration_tests/tests/visitor.rs expression: trace -snapshot_kind: text --- - StmtExpr - ExprCompare diff --git a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__decorators.snap b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__decorators.snap index 2a5528b94f..799385941d 100644 --- a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__decorators.snap +++ b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__decorators.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_ast_integration_tests/tests/visitor.rs expression: trace -snapshot_kind: text --- - StmtFunctionDef - ExprName diff --git a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__dict_comprehension.snap b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__dict_comprehension.snap index 217b76d445..40fe6e72eb 100644 --- a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__dict_comprehension.snap +++ b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__dict_comprehension.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_ast_integration_tests/tests/visitor.rs expression: trace -snapshot_kind: text --- - StmtExpr - ExprDictComp diff --git a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__function_arguments.snap b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__function_arguments.snap index 9ed633ee46..a526cdd144 100644 --- a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__function_arguments.snap +++ b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__function_arguments.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_ast_integration_tests/tests/visitor.rs expression: trace -snapshot_kind: text --- - StmtFunctionDef - Parameters diff --git a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__function_positional_only_with_default.snap b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__function_positional_only_with_default.snap index e4c1e7167f..c7501b8ae8 100644 --- a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__function_positional_only_with_default.snap +++ b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__function_positional_only_with_default.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_ast_integration_tests/tests/visitor.rs expression: trace -snapshot_kind: text --- - StmtFunctionDef - Parameters diff --git a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__function_type_parameters.snap b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__function_type_parameters.snap index 97bace8746..2af2fa85aa 100644 --- a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__function_type_parameters.snap +++ b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__function_type_parameters.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_ast_integration_tests/tests/visitor.rs expression: trace -snapshot_kind: text --- - StmtFunctionDef - TypeParamTypeVar diff --git a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__list_comprehension.snap b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__list_comprehension.snap index 9035972373..7af26ca3c4 100644 --- a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__list_comprehension.snap +++ b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__list_comprehension.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_ast_integration_tests/tests/visitor.rs expression: trace -snapshot_kind: text --- - StmtExpr - ExprListComp diff --git a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__match_class_pattern.snap b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__match_class_pattern.snap index 428de2cdab..d91b865a4f 100644 --- a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__match_class_pattern.snap +++ b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__match_class_pattern.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_ast_integration_tests/tests/visitor.rs expression: trace -snapshot_kind: text --- - StmtMatch - ExprName diff --git a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__set_comprehension.snap b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__set_comprehension.snap index da8ad27189..799b67aefa 100644 --- a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__set_comprehension.snap +++ b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__set_comprehension.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_ast_integration_tests/tests/visitor.rs expression: trace -snapshot_kind: text --- - StmtExpr - ExprSetComp diff --git a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__string_literals.snap b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__string_literals.snap index 48b18c6af3..08cd420a99 100644 --- a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__string_literals.snap +++ b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__string_literals.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_ast_integration_tests/tests/visitor.rs expression: trace -snapshot_kind: text --- - StmtExpr - ExprStringLiteral diff --git a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__type_aliases.snap b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__type_aliases.snap index 452e3954de..539a38562d 100644 --- a/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__type_aliases.snap +++ b/crates/ruff_python_ast_integration_tests/tests/snapshots/visitor__type_aliases.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_ast_integration_tests/tests/visitor.rs expression: trace -snapshot_kind: text --- - StmtTypeAlias - ExprSubscript diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__debug__tests__debug.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__debug__tests__debug.snap index ab843732c2..897dfa97ee 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__debug__tests__debug.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__debug__tests__debug.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/src/comments/debug.rs expression: comments.debug(source_code) -snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__base_test.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__base_test.snap index 9c23082e4d..1a8dc9fcd7 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__base_test.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__base_test.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) -snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__binary_expression_left_operand_comment.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__binary_expression_left_operand_comment.snap index d901a21e36..9be65b1a41 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__binary_expression_left_operand_comment.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__binary_expression_left_operand_comment.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) -snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__binary_expression_left_operand_trailing_end_of_line_comment.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__binary_expression_left_operand_trailing_end_of_line_comment.snap index 9b4dffe8a5..e1f0f769fd 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__binary_expression_left_operand_trailing_end_of_line_comment.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__binary_expression_left_operand_trailing_end_of_line_comment.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) -snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__dangling_comment.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__dangling_comment.snap index 295eceb8ff..f1b3403f32 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__dangling_comment.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__dangling_comment.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) -snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__empty_file.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__empty_file.snap index 62f859c0f5..7ceb71b7a5 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__empty_file.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__empty_file.snap @@ -1,6 +1,5 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) -snapshot_kind: text --- {} diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__if_elif_else_comments.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__if_elif_else_comments.snap index 73c594fdd4..99d380cc70 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__if_elif_else_comments.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__if_elif_else_comments.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) -snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__if_elif_if_else_comments.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__if_elif_if_else_comments.snap index 915b4744a4..1cd1f74ac2 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__if_elif_if_else_comments.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__if_elif_if_else_comments.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) -snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__leading_most_outer.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__leading_most_outer.snap index d3279f5945..9bef07f421 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__leading_most_outer.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__leading_most_outer.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) -snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__match_cases.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__match_cases.snap index d9d7466f49..bc93d702de 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__match_cases.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__match_cases.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) -snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__nested_binary_expression.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__nested_binary_expression.snap index 635c756da2..7309048231 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__nested_binary_expression.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__nested_binary_expression.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) -snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__non_positional_arguments_slash_on_same_line.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__non_positional_arguments_slash_on_same_line.snap index 285939e6f0..ca9f11a24c 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__non_positional_arguments_slash_on_same_line.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__non_positional_arguments_slash_on_same_line.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) -snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__non_positional_arguments_with_defaults.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__non_positional_arguments_with_defaults.snap index 4152fe5992..a7f9ec4064 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__non_positional_arguments_with_defaults.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__non_positional_arguments_with_defaults.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) -snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__only_comments.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__only_comments.snap index 95b80b4a41..8f5f96bd72 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__only_comments.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__only_comments.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) -snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__parenthesized_expression.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__parenthesized_expression.snap index b7bfd5e439..b39a29b965 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__parenthesized_expression.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__parenthesized_expression.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) -snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__parenthesized_trailing_comment.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__parenthesized_trailing_comment.snap index 928299740a..73aa8104d9 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__parenthesized_trailing_comment.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__parenthesized_trailing_comment.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) -snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__positional_argument_only_comment.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__positional_argument_only_comment.snap index 993f6a4b37..a8a9305375 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__positional_argument_only_comment.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__positional_argument_only_comment.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) -snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__positional_argument_only_comment_without_following_node.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__positional_argument_only_comment_without_following_node.snap index 2c20ff80f0..9e9db25a5e 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__positional_argument_only_comment_without_following_node.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__positional_argument_only_comment_without_following_node.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) -snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__positional_argument_only_leading_comma_comment.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__positional_argument_only_leading_comma_comment.snap index 993f6a4b37..a8a9305375 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__positional_argument_only_leading_comma_comment.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__positional_argument_only_leading_comma_comment.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) -snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__trailing_after_comma.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__trailing_after_comma.snap index ad6a1e3f1a..88f2be2c30 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__trailing_after_comma.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__trailing_after_comma.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) -snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__trailing_comment_after_single_statement_body.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__trailing_comment_after_single_statement_body.snap index abb80c9f78..62b0b6652b 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__trailing_comment_after_single_statement_body.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__trailing_comment_after_single_statement_body.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) -snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__trailing_function_comment.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__trailing_function_comment.snap index 6b9f631362..9dd6d289d4 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__trailing_function_comment.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__trailing_function_comment.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) -snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__trailing_most_outer.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__trailing_most_outer.snap index 98728d2996..bb9a65c480 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__trailing_most_outer.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__trailing_most_outer.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) -snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__trailing_most_outer_nested.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__trailing_most_outer_nested.snap index 120e2a9bb0..37e4a4cc52 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__trailing_most_outer_nested.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__trailing_most_outer_nested.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) -snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__try_except.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__try_except.snap index 8937167e98..f72858e288 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__try_except.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__try_except.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) -snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__try_except_finally_else.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__try_except_finally_else.snap index 3d20d99e2a..004b7a2de2 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__try_except_finally_else.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__try_except_finally_else.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) -snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__while_trailing_else_end_of_line_comment.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__while_trailing_else_end_of_line_comment.snap index 2befb882a3..33cd36edc4 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__while_trailing_else_end_of_line_comment.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__while_trailing_else_end_of_line_comment.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) -snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__while_trailing_end_of_line_comment.snap b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__while_trailing_end_of_line_comment.snap index 4a8a2ef322..41e845c4b4 100644 --- a/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__while_trailing_end_of_line_comment.snap +++ b/crates/ruff_python_formatter/src/comments/snapshots/ruff_python_formatter__comments__tests__while_trailing_end_of_line_comment.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/src/comments/mod.rs expression: comments.debug(test_case.source_code) -snapshot_kind: text --- { Node { diff --git a/crates/ruff_python_formatter/src/snapshots/ruff_python_formatter__tests__string_processing.snap b/crates/ruff_python_formatter/src/snapshots/ruff_python_formatter__tests__string_processing.snap index f3e17efb87..fca7f8344e 100644 --- a/crates/ruff_python_formatter/src/snapshots/ruff_python_formatter__tests__string_processing.snap +++ b/crates/ruff_python_formatter/src/snapshots/ruff_python_formatter__tests__string_processing.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/src/lib.rs expression: "output.print().expect(\"Printing to succeed\").as_code()" -snapshot_kind: text --- "aaaaaaaaaa bbbbbbbbbb cccccccccc dddddddddd eeeeeeeeee ffffffffff gggggggggg h" ( diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__allow_empty_first_line.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__allow_empty_first_line.py.snap index 570ca11b29..4931cdf636 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__allow_empty_first_line.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__allow_empty_first_line.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/allow_empty_first_line.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__backslash_before_indent.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__backslash_before_indent.py.snap index 89cae6545b..f00bd36029 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__backslash_before_indent.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__backslash_before_indent.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/backslash_before_indent.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__class_blank_parentheses.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__class_blank_parentheses.py.snap index 391c1c0604..d3ac993895 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__class_blank_parentheses.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__class_blank_parentheses.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/class_blank_parentheses.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__comment_after_escaped_newline.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__comment_after_escaped_newline.py.snap index 1e219b5630..9d7369e3f1 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__comment_after_escaped_newline.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__comment_after_escaped_newline.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/comment_after_escaped_newline.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__comments2.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__comments2.py.snap index 44b7651d1b..e7a0b0492b 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__comments2.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__comments2.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/comments2.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__comments6.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__comments6.py.snap index f91b33c700..09e296f54b 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__comments6.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__comments6.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/comments6.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__comments9.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__comments9.py.snap index 01992d7f8a..85d3044bac 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__comments9.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__comments9.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/comments9.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__comments_in_blocks.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__comments_in_blocks.py.snap index c2f3898b2f..571cf38200 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__comments_in_blocks.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__comments_in_blocks.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/comments_in_blocks.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__comments_in_double_parens.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__comments_in_double_parens.py.snap index 6253b7309f..a60996419c 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__comments_in_double_parens.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__comments_in_double_parens.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/comments_in_double_parens.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__composition.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__composition.py.snap index 17b2ace0e4..358d4b8a73 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__composition.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__composition.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/composition.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__composition_no_trailing_comma.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__composition_no_trailing_comma.py.snap index b49c9b9f6d..b68aeeca74 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__composition_no_trailing_comma.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__composition_no_trailing_comma.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/composition_no_trailing_comma.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__conditional_expression.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__conditional_expression.py.snap index 9375616352..87ff831191 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__conditional_expression.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__conditional_expression.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/conditional_expression.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__docstring_no_string_normalization.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__docstring_no_string_normalization.py.snap index dbbed9446c..e6d030338f 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__docstring_no_string_normalization.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__docstring_no_string_normalization.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/docstring_no_string_normalization.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__dummy_implementations.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__dummy_implementations.py.snap index 126cf40280..c5887596ae 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__dummy_implementations.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__dummy_implementations.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/dummy_implementations.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__empty_lines.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__empty_lines.py.snap index 5bf19e9b0b..2ce5876a95 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__empty_lines.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__empty_lines.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/empty_lines.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__expression.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__expression.py.snap index 428e8065f5..619ab212c5 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__expression.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__expression.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/expression.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__fmtonoff.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__fmtonoff.py.snap index 3b862b14af..a14ed93600 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__fmtonoff.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__fmtonoff.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/fmtonoff.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__fmtonoff4.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__fmtonoff4.py.snap index 05bf9bd0bd..beea72e757 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__fmtonoff4.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__fmtonoff4.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/fmtonoff4.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__fmtonoff5.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__fmtonoff5.py.snap index 4d5f61df8e..a0ab4db2e5 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__fmtonoff5.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__fmtonoff5.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/fmtonoff5.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__fmtpass_imports.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__fmtpass_imports.py.snap index 339b409336..cbaa5fd2e6 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__fmtpass_imports.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__fmtpass_imports.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/fmtpass_imports.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__fmtskip5.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__fmtskip5.py.snap index 5b426a3b86..543292eb6c 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__fmtskip5.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__fmtskip5.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/fmtskip5.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__fmtskip9.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__fmtskip9.py.snap index 3479ea65e3..bb8af9d423 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__fmtskip9.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__fmtskip9.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/fmtskip9.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__form_feeds.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__form_feeds.py.snap index 183c6a3b53..e6625b01a7 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__form_feeds.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__form_feeds.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/form_feeds.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__funcdef_return_type_trailing_comma.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__funcdef_return_type_trailing_comma.py.snap index bb65a5389a..7266806c08 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__funcdef_return_type_trailing_comma.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__funcdef_return_type_trailing_comma.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/funcdef_return_type_trailing_comma.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__function.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__function.py.snap index e9d860a053..83dfa7e0b8 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__function.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__function.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/function.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__function2.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__function2.py.snap index 74185d8f06..a9ffd5a3f9 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__function2.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__function2.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/function2.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__function_trailing_comma.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__function_trailing_comma.py.snap index 0cb75bf9be..d56a7c2bb9 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__function_trailing_comma.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__function_trailing_comma.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/function_trailing_comma.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__ignore_pyi.pyi.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__ignore_pyi.pyi.snap index c356a5f720..46b3214af0 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__ignore_pyi.pyi.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__ignore_pyi.pyi.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/ignore_pyi.pyi -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__keep_newline_after_match.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__keep_newline_after_match.py.snap index e329414749..5e01554789 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__keep_newline_after_match.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__keep_newline_after_match.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/keep_newline_after_match.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__line_ranges_diff_edge_case.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__line_ranges_diff_edge_case.py.snap index d52718d348..bb386ae8ec 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__line_ranges_diff_edge_case.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__line_ranges_diff_edge_case.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/line_ranges_diff_edge_case.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__line_ranges_fmt_off_decorator.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__line_ranges_fmt_off_decorator.py.snap index 6ce20220d3..55f84e783c 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__line_ranges_fmt_off_decorator.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__line_ranges_fmt_off_decorator.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/line_ranges_fmt_off_decorator.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__long_strings_flag_disabled.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__long_strings_flag_disabled.py.snap index dc0aecbac2..535b7d819c 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__long_strings_flag_disabled.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__long_strings_flag_disabled.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/long_strings_flag_disabled.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__multiline_consecutive_open_parentheses_ignore.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__multiline_consecutive_open_parentheses_ignore.py.snap index 53c85e1a04..e3bf53e3f4 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__multiline_consecutive_open_parentheses_ignore.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__multiline_consecutive_open_parentheses_ignore.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/multiline_consecutive_open_parentheses_ignore.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__nested_stub.pyi.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__nested_stub.pyi.snap index 1e05f95d0e..b5dc13dd83 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__nested_stub.pyi.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__nested_stub.pyi.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/nested_stub.pyi -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__pattern_matching_style.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__pattern_matching_style.py.snap index 84ace27423..b9b0d3a7dd 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__pattern_matching_style.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__pattern_matching_style.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/pattern_matching_style.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__pattern_matching_with_if_stmt.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__pattern_matching_with_if_stmt.py.snap index 1e74d2e322..02f6b0636a 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__pattern_matching_with_if_stmt.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__pattern_matching_with_if_stmt.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/pattern_matching_with_if_stmt.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__prefer_rhs_split.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__prefer_rhs_split.py.snap index db71513a87..d20c2a8d20 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__prefer_rhs_split.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__prefer_rhs_split.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/prefer_rhs_split.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_cantfit.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_cantfit.py.snap index ec8b567c4c..1d93012d9b 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_cantfit.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_cantfit.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/preview_cantfit.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_cantfit_string.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_cantfit_string.py.snap index b4901425ff..84a2568844 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_cantfit_string.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_cantfit_string.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/preview_cantfit_string.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_hug_parens_with_braces_and_square_brackets.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_hug_parens_with_braces_and_square_brackets.py.snap index 54e349c355..71af123619 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_hug_parens_with_braces_and_square_brackets.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_hug_parens_with_braces_and_square_brackets.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/preview_hug_parens_with_braces_and_square_brackets.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_hug_parens_with_braces_and_square_brackets_no_ll1.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_hug_parens_with_braces_and_square_brackets_no_ll1.py.snap index 52818e7ae3..fd23c5a684 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_hug_parens_with_braces_and_square_brackets_no_ll1.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_hug_parens_with_braces_and_square_brackets_no_ll1.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/preview_hug_parens_with_braces_and_square_brackets_no_ll1.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_long_strings__east_asian_width.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_long_strings__east_asian_width.py.snap index 89247fa1f0..864f75ddb0 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_long_strings__east_asian_width.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_long_strings__east_asian_width.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/preview_long_strings__east_asian_width.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_long_strings__edge_case.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_long_strings__edge_case.py.snap index 8da88e25b6..7a4fd8db13 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_long_strings__edge_case.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_long_strings__edge_case.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/preview_long_strings__edge_case.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_long_strings__type_annotations.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_long_strings__type_annotations.py.snap index 4ae72f1717..da32d342f0 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_long_strings__type_annotations.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_long_strings__type_annotations.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/preview_long_strings__type_annotations.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_return_annotation_brackets_string.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_return_annotation_brackets_string.py.snap index 1ccd1c50c1..116beb2a40 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_return_annotation_brackets_string.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__preview_return_annotation_brackets_string.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/preview_return_annotation_brackets_string.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__raw_docstring.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__raw_docstring.py.snap index 6a3a797325..c6e4dd6516 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__raw_docstring.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__raw_docstring.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/raw_docstring.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__raw_docstring_no_string_normalization.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__raw_docstring_no_string_normalization.py.snap index 969951c8c5..b9c8f50f33 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__raw_docstring_no_string_normalization.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__raw_docstring_no_string_normalization.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/raw_docstring_no_string_normalization.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__remove_await_parens.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__remove_await_parens.py.snap index cb67f5b1bb..0efcaf001d 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__remove_await_parens.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__remove_await_parens.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/remove_await_parens.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__remove_except_parens.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__remove_except_parens.py.snap index 8cea5eb67b..98410f3a83 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__remove_except_parens.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__remove_except_parens.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/remove_except_parens.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__remove_for_brackets.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__remove_for_brackets.py.snap index 3dd8cc5a5a..1a6712d7ca 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__remove_for_brackets.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__remove_for_brackets.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/remove_for_brackets.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__remove_newline_after_code_block_open.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__remove_newline_after_code_block_open.py.snap index 8ebaf95ff5..ca73f90ad3 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__remove_newline_after_code_block_open.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__remove_newline_after_code_block_open.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/remove_newline_after_code_block_open.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__remove_redundant_parens_in_case_guard.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__remove_redundant_parens_in_case_guard.py.snap index 2f8e6eb01e..d848db4ce8 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__remove_redundant_parens_in_case_guard.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__remove_redundant_parens_in_case_guard.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/remove_redundant_parens_in_case_guard.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__return_annotation_brackets.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__return_annotation_brackets.py.snap index 4737f38527..1794c2b8bc 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__return_annotation_brackets.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__return_annotation_brackets.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/return_annotation_brackets.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__single_line_format_skip_with_multiple_comments.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__single_line_format_skip_with_multiple_comments.py.snap index dfb256c9cb..644db86aea 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__single_line_format_skip_with_multiple_comments.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__single_line_format_skip_with_multiple_comments.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/single_line_format_skip_with_multiple_comments.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__stub.pyi.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__stub.pyi.snap index 4ac0d13469..13083c6ed0 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__stub.pyi.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__stub.pyi.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/stub.pyi -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__torture.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__torture.py.snap index 574e3545e6..b2df28562c 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__torture.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__torture.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/torture.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__trailing_commas_in_leading_parts.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__trailing_commas_in_leading_parts.py.snap index 7c3a12698a..b7dac7331e 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__trailing_commas_in_leading_parts.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__trailing_commas_in_leading_parts.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/trailing_commas_in_leading_parts.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__tupleassign.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__tupleassign.py.snap index 5909adb872..ebfe6eaa96 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__tupleassign.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@cases__tupleassign.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/cases/tupleassign.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@miscellaneous__blackd_diff.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@miscellaneous__blackd_diff.py.snap index 075d453d3d..b543513f17 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@miscellaneous__blackd_diff.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@miscellaneous__blackd_diff.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/miscellaneous/blackd_diff.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@miscellaneous__debug_visitor.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@miscellaneous__debug_visitor.py.snap index 6befff92a3..d0fcc1deca 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@miscellaneous__debug_visitor.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@miscellaneous__debug_visitor.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/miscellaneous/debug_visitor.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@miscellaneous__string_quotes.py.snap b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@miscellaneous__string_quotes.py.snap index aa69aab3af..bb56a341d4 100644 --- a/crates/ruff_python_formatter/tests/snapshots/black_compatibility@miscellaneous__string_quotes.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/black_compatibility@miscellaneous__string_quotes.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/black/miscellaneous/string_quotes.py -snapshot_kind: text --- ## Input diff --git a/crates/ruff_python_formatter/tests/snapshots/format@carriage_return__string.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@carriage_return__string.py.snap index aeb2348f71..9a20f90fba 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@carriage_return__string.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@carriage_return__string.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/carriage_return/string.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@docstring_newlines.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@docstring_newlines.py.snap index dfa63ea82e..caa46f4911 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@docstring_newlines.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@docstring_newlines.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_newlines.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@docstring_non_visible_characters.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@docstring_non_visible_characters.py.snap index ae7ba4d031..2cfc4e7e30 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@docstring_non_visible_characters.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@docstring_non_visible_characters.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_non_visible_characters.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@empty_multiple_trailing_newlines.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@empty_multiple_trailing_newlines.py.snap index 500a705577..3346623b73 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@empty_multiple_trailing_newlines.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@empty_multiple_trailing_newlines.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/empty_multiple_trailing_newlines.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@empty_now_newline.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@empty_now_newline.py.snap index 4d3261a9d4..f6a16d1c12 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@empty_now_newline.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@empty_now_newline.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/empty_now_newline.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@empty_trailing_newline.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@empty_trailing_newline.py.snap index 0e5082e40d..6caaf01e0e 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@empty_trailing_newline.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@empty_trailing_newline.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/empty_trailing_newline.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@empty_whitespace.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@empty_whitespace.py.snap index 92ad1d52a8..0e678380fa 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@empty_whitespace.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@empty_whitespace.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/empty_whitespace.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__annotated_assign.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__annotated_assign.py.snap index 9afbb316f1..dc0e405138 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__annotated_assign.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__annotated_assign.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/annotated_assign.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__binary_implicit_string.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__binary_implicit_string.py.snap index f05c74e3d1..dd213abd4f 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__binary_implicit_string.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__binary_implicit_string.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/binary_implicit_string.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__binary_pow_spacing.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__binary_pow_spacing.py.snap index cfe6481172..0526471a9b 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__binary_pow_spacing.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__binary_pow_spacing.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/binary_pow_spacing.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__boolean_operation.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__boolean_operation.py.snap index 592c544678..9253beaab6 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__boolean_operation.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__boolean_operation.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/boolean_operation.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__compare.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__compare.py.snap index 431223f6b4..96972e53e0 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__compare.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__compare.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/compare.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__dict.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__dict.py.snap index 1575a817d2..a4f0523584 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__dict.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__dict.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/dict.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__dict_comp.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__dict_comp.py.snap index fefd84ab81..1eb50144e3 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__dict_comp.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__dict_comp.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/dict_comp.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__generator_exp.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__generator_exp.py.snap index d19ce0f393..2b6d34eac5 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__generator_exp.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__generator_exp.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/generator_exp.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__hug.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__hug.py.snap index 0d15585887..d620e52c60 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__hug.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__hug.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/hug.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__if.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__if.py.snap index cd1823865e..28081fbfd4 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__if.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__if.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/if.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__list.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__list.py.snap index 4fbc4185fc..5e2639f341 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__list.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__list.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/list.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__list_comp.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__list_comp.py.snap index 0dcdb03493..94c8d935c3 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__list_comp.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__list_comp.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/list_comp.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__named_expr.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__named_expr.py.snap index 5e2c2087b6..0425268563 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__named_expr.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__named_expr.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/named_expr.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__number.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__number.py.snap index 349ea964aa..8e34d67a16 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__number.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__number.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/number.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__optional_parentheses_comments.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__optional_parentheses_comments.py.snap index 1b3497db8a..8531e63462 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__optional_parentheses_comments.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__optional_parentheses_comments.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/optional_parentheses_comments.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__set_comp.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__set_comp.py.snap index 179af7f4cd..7c061fd91c 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__set_comp.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__set_comp.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/set_comp.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__slice.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__slice.py.snap index 1d2eec247c..7e12e24474 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__slice.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__slice.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/slice.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__starred.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__starred.py.snap index dc468322eb..42f0ebdf8f 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__starred.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__starred.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/starred.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__subscript.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__subscript.py.snap index 4a97d4ebe8..71fee09c21 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__subscript.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__subscript.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/subscript.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__tuple.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__tuple.py.snap index 00489faf9c..cd3e3a789d 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__tuple.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__tuple.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/tuple.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__unsplittable.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__unsplittable.py.snap index 647fded93d..a898d28d11 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__unsplittable.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__unsplittable.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/unsplittable.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__yield.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__yield.py.snap index 8f0589d5c3..c7a3fc67f7 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__yield.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__yield.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/yield.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__yield_from.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__yield_from.py.snap index dd3e64383f..1a85c3ed5c 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__yield_from.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__yield_from.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/yield_from.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__comments.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__comments.py.snap index 6522d4e8ff..ada04ed6cc 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__comments.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__comments.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_on_off/comments.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__empty_file.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__empty_file.py.snap index 98272aa0c3..7d9eb002c9 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__empty_file.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__empty_file.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_on_off/empty_file.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__fmt_off_unclosed_deep_nested_trailing_comment.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__fmt_off_unclosed_deep_nested_trailing_comment.py.snap index 7adb22ee55..ea7638abaf 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__fmt_off_unclosed_deep_nested_trailing_comment.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__fmt_off_unclosed_deep_nested_trailing_comment.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_on_off/fmt_off_unclosed_deep_nested_trailing_comment.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__fmt_off_unclosed_trailing_comment.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__fmt_off_unclosed_trailing_comment.py.snap index e615c7b697..d46d963932 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__fmt_off_unclosed_trailing_comment.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__fmt_off_unclosed_trailing_comment.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_on_off/fmt_off_unclosed_trailing_comment.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__form_feed.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__form_feed.py.snap index 1ce5808e85..fb14221f8e 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__form_feed.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__form_feed.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_on_off/form_feed.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__last_statement.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__last_statement.py.snap index 973ed62808..447bbb13d4 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__last_statement.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__last_statement.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_on_off/last_statement.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__newlines.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__newlines.py.snap index 3d84932a69..9aa16f9c4d 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__newlines.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__newlines.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_on_off/newlines.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__no_fmt_on.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__no_fmt_on.py.snap index 5174d25c8d..f66b8bad7d 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__no_fmt_on.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__no_fmt_on.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_on_off/no_fmt_on.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__off_on_off_on.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__off_on_off_on.py.snap index 0d3da965aa..05aebafb4c 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__off_on_off_on.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__off_on_off_on.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_on_off/off_on_off_on.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__simple.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__simple.py.snap index 7a80aaacce..727884cef7 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__simple.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__simple.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_on_off/simple.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__trailing_comments.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__trailing_comments.py.snap index a4eb13b410..4030813a14 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__trailing_comments.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__trailing_comments.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_on_off/trailing_comments.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__trailing_semicolon.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__trailing_semicolon.py.snap index 22a0a82413..6a2288af7e 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__trailing_semicolon.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__trailing_semicolon.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_on_off/trailing_semicolon.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__yapf.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__yapf.py.snap index 77fe95026a..7f3b39a0c4 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__yapf.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@fmt_on_off__yapf.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_on_off/yapf.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__decorators.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__decorators.py.snap index 6e2192b520..a60158be82 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__decorators.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__decorators.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_skip/decorators.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__match.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__match.py.snap index 1381d6e25d..10fa088455 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__match.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__match.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_skip/match.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__or_else.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__or_else.py.snap index a4d535404b..bf6a46ae92 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__or_else.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__or_else.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_skip/or_else.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__parentheses.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__parentheses.py.snap index 7515f3c860..8f0aba8f83 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__parentheses.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__parentheses.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_skip/parentheses.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__reason.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__reason.py.snap index 7ad73e8267..9cdec6c8e0 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__reason.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__reason.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_skip/reason.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__trailing_semi.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__trailing_semi.py.snap index f059e4257f..f09619c262 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__trailing_semi.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__trailing_semi.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_skip/trailing_semi.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__type_params.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__type_params.py.snap index 93eb2442bd..76788e8e1f 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__type_params.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@fmt_skip__type_params.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_skip/type_params.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@module_dangling_comment1.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@module_dangling_comment1.py.snap index 3a74d69888..cc41371f33 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@module_dangling_comment1.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@module_dangling_comment1.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/module_dangling_comment1.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@module_dangling_comment2.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@module_dangling_comment2.py.snap index 1bce6a4e14..07b10e0ac9 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@module_dangling_comment2.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@module_dangling_comment2.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/module_dangling_comment2.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@newlines.pyi.snap b/crates/ruff_python_formatter/tests/snapshots/format@newlines.pyi.snap index f19605db1c..121c3bb85e 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@newlines.pyi.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@newlines.pyi.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/newlines.pyi -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@parentheses__nested.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@parentheses__nested.py.snap index e05c287ef6..f1e0982249 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@parentheses__nested.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@parentheses__nested.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/parentheses/nested.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@parentheses__opening_parentheses_comment_empty.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@parentheses__opening_parentheses_comment_empty.py.snap index 4559988d60..7969cd7b7d 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@parentheses__opening_parentheses_comment_empty.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@parentheses__opening_parentheses_comment_empty.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/parentheses/opening_parentheses_comment_empty.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@parentheses__opening_parentheses_comment_value.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@parentheses__opening_parentheses_comment_value.py.snap index 5638969934..c765820bcb 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@parentheses__opening_parentheses_comment_value.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@parentheses__opening_parentheses_comment_value.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/parentheses/opening_parentheses_comment_value.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__ancestory.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__ancestory.py.snap index f95db3007b..20e832dedb 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__ancestory.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__ancestory.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/range_formatting/ancestory.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__comment_only_range.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__comment_only_range.py.snap index ab845ad185..c6412437a7 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__comment_only_range.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__comment_only_range.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/range_formatting/comment_only_range.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__decorators.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__decorators.py.snap index 9c7cb5ae45..4d82a5ff55 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__decorators.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__decorators.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/range_formatting/decorators.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__empty_file.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__empty_file.py.snap index 7d3842db52..17f23bf2a9 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__empty_file.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__empty_file.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/range_formatting/empty_file.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__empty_range.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__empty_range.py.snap index b2f3ea5843..308a591605 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__empty_range.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__empty_range.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/range_formatting/empty_range.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__end_of_file.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__end_of_file.py.snap index 8e07b71f75..4a0dec15bd 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__end_of_file.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__end_of_file.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/range_formatting/end_of_file.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__fmt_on_off.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__fmt_on_off.py.snap index 6f657b60d7..cff03b0fae 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__fmt_on_off.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__fmt_on_off.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/range_formatting/fmt_on_off.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__leading_comments.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__leading_comments.py.snap index a3efadc515..9d0941ab55 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__leading_comments.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__leading_comments.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/range_formatting/leading_comments.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__leading_trailing_comments.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__leading_trailing_comments.py.snap index 1390dc17a8..ef4572d906 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__leading_trailing_comments.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__leading_trailing_comments.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/range_formatting/leading_trailing_comments.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__module.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__module.py.snap index 74c420c5b2..d10611303d 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__module.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__module.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/range_formatting/module.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__parentheses.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__parentheses.py.snap index 38ae52f175..e9de5c405c 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__parentheses.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__parentheses.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/range_formatting/parentheses.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__range_narrowing.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__range_narrowing.py.snap index d7fbe53c9a..7e16e99620 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__range_narrowing.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__range_narrowing.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/range_formatting/range_narrowing.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__regressions.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__regressions.py.snap index 66151a4b7a..36c4c7809e 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__regressions.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__regressions.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/range_formatting/regressions.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__same_line_body.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__same_line_body.py.snap index 1f29bc3488..edf7f42252 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__same_line_body.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__same_line_body.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/range_formatting/same_line_body.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__trailing_comments.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__trailing_comments.py.snap index 33c059d881..04e3b93f37 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__trailing_comments.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__trailing_comments.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/range_formatting/trailing_comments.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__whitespace_only_range.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__whitespace_only_range.py.snap index 26548ab5f3..7d096414b5 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__whitespace_only_range.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@range_formatting__whitespace_only_range.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/range_formatting/whitespace_only_range.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__ann_assign.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__ann_assign.py.snap index eb4b02773c..bdc774a0e5 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__ann_assign.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__ann_assign.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/ann_assign.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__assert.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__assert.py.snap index 8f4bf41d65..a34725000e 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__assert.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__assert.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/assert.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__assign.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__assign.py.snap index 81529c8997..231df8b524 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__assign.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__assign.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/assign.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__aug_assign.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__aug_assign.py.snap index 404bd30502..20acfab1ff 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__aug_assign.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__aug_assign.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/aug_assign.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__break.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__break.py.snap index 9bc6b02966..14abd08e30 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__break.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__break.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/break.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__class_definition.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__class_definition.py.snap index 2bf875ea66..db9773291b 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__class_definition.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__class_definition.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/class_definition.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__delete.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__delete.py.snap index 588f6fe42b..286281374d 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__delete.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__delete.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/delete.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__ellipsis.pyi.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__ellipsis.pyi.snap index b69087e003..eec4f515bc 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__ellipsis.pyi.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__ellipsis.pyi.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/ellipsis.pyi -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__for.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__for.py.snap index 484a0dee91..66e7cbadcc 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__for.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__for.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/for.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__function.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__function.py.snap index be06b9daf6..64eaa01b0b 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__function.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__function.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/function.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__global.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__global.py.snap index f963dd53b8..6510ec3657 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__global.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__global.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/global.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__import.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__import.py.snap index 960d24aa28..db4991764a 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__import.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__import.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/import.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__import_from.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__import_from.py.snap index 45626f76cd..ae5a6949c3 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__import_from.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__import_from.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/import_from.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__long_type_annotations.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__long_type_annotations.py.snap index a7fff93b31..c80a6cf19f 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__long_type_annotations.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__long_type_annotations.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/long_type_annotations.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__module_comment.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__module_comment.py.snap index ac5e757c1b..afcec93150 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__module_comment.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__module_comment.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/module_comment.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__nonlocal.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__nonlocal.py.snap index cddbf5c2c3..e7ed124240 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__nonlocal.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__nonlocal.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/nonlocal.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__raise.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__raise.py.snap index ba7b568f51..0e5676f0b4 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__raise.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__raise.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/raise.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__return.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__return.py.snap index 01f442e545..f6c604c26b 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__return.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__return.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/return.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__return_annotation.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__return_annotation.py.snap index 7bf5ec858f..f4ce67597e 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__return_annotation.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__return_annotation.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/return_annotation.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__return_type_no_parameters.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__return_type_no_parameters.py.snap index 7c0350306c..a887f4b5de 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__return_type_no_parameters.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__return_type_no_parameters.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/return_type_no_parameters.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__return_type_parameters.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__return_type_parameters.py.snap index 5f80f70e82..ae9224a40a 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__return_type_parameters.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__return_type_parameters.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/return_type_parameters.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__stub_functions_trailing_comments.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__stub_functions_trailing_comments.py.snap index 9bfe8fe8fd..39b3ecb94b 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__stub_functions_trailing_comments.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__stub_functions_trailing_comments.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/stub_functions_trailing_comments.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__top_level.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__top_level.py.snap index 7eb73c6446..f1a0316b59 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__top_level.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__top_level.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/top_level.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__top_level.pyi.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__top_level.pyi.snap index 1d6dd85093..777bee640a 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__top_level.pyi.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__top_level.pyi.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/top_level.pyi -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__type_alias.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__type_alias.py.snap index f406cf6ef1..a62550da9c 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__type_alias.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__type_alias.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/type_alias.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@stub_files__comments.pyi.snap b/crates/ruff_python_formatter/tests/snapshots/format@stub_files__comments.pyi.snap index 53d613c936..e9228f15be 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@stub_files__comments.pyi.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@stub_files__comments.pyi.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/stub_files/comments.pyi -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@stub_files__nesting.pyi.snap b/crates/ruff_python_formatter/tests/snapshots/format@stub_files__nesting.pyi.snap index 9a7263a2a7..76b62f2d51 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@stub_files__nesting.pyi.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@stub_files__nesting.pyi.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/stub_files/nesting.pyi -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@stub_files__suite.pyi.snap b/crates/ruff_python_formatter/tests/snapshots/format@stub_files__suite.pyi.snap index 289958372a..7c2b8c94b0 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@stub_files__suite.pyi.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@stub_files__suite.pyi.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/stub_files/suite.pyi -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_formatter/tests/snapshots/format@trivia.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@trivia.py.snap index 6945bd28ee..b9e7dfb9e8 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@trivia.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@trivia.py.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_formatter/tests/fixtures.rs input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/trivia.py -snapshot_kind: text --- ## Input ```python diff --git a/crates/ruff_python_importer/src/insertion.rs b/crates/ruff_python_importer/src/insertion.rs index 293cec988e..15b0f8d674 100644 --- a/crates/ruff_python_importer/src/insertion.rs +++ b/crates/ruff_python_importer/src/insertion.rs @@ -572,7 +572,8 @@ from collections import Counter "#; insta::assert_snapshot!( snapshot(source, "defaultdict"), - @r" + @" + from collections import Counter, defaultdict ", ); @@ -582,7 +583,8 @@ from collections import Counter, OrderedDict "#; insta::assert_snapshot!( snapshot(source, "defaultdict"), - @r" + @" + from collections import Counter, OrderedDict, defaultdict ", ); @@ -592,7 +594,10 @@ from collections import (Counter) "#; insta::assert_snapshot!( snapshot(source, "defaultdict"), - @"from collections import (Counter, defaultdict)", + @" + + from collections import (Counter, defaultdict) + ", ); let source = r#" @@ -600,7 +605,10 @@ from collections import (Counter, OrderedDict) "#; insta::assert_snapshot!( snapshot(source, "defaultdict"), - @"from collections import (Counter, OrderedDict, defaultdict)", + @" + + from collections import (Counter, OrderedDict, defaultdict) + ", ); let source = r#" @@ -608,7 +616,10 @@ from collections import (Counter,) "#; insta::assert_snapshot!( snapshot(source, "defaultdict"), - @"from collections import (Counter, defaultdict,)", + @" + + from collections import (Counter, defaultdict,) + ", ); let source = r#" @@ -616,7 +627,10 @@ from collections import (Counter, OrderedDict,) "#; insta::assert_snapshot!( snapshot(source, "defaultdict"), - @"from collections import (Counter, OrderedDict, defaultdict,)", + @" + + from collections import (Counter, OrderedDict, defaultdict,) + ", ); let source = r#" @@ -626,7 +640,8 @@ from collections import ( "#; insta::assert_snapshot!( snapshot(source, "defaultdict"), - @r" + @" + from collections import ( Counter, defaultdict ) @@ -640,7 +655,8 @@ from collections import ( "#; insta::assert_snapshot!( snapshot(source, "defaultdict"), - @r" + @" + from collections import ( Counter, defaultdict, ) @@ -655,7 +671,8 @@ from collections import ( "#; insta::assert_snapshot!( snapshot(source, "defaultdict"), - @r" + @" + from collections import ( Counter, OrderedDict, defaultdict @@ -671,7 +688,8 @@ from collections import ( "#; insta::assert_snapshot!( snapshot(source, "defaultdict"), - @r" + @" + from collections import ( Counter, OrderedDict, defaultdict, @@ -686,6 +704,7 @@ from collections import \ insta::assert_snapshot!( snapshot(source, "defaultdict"), @r" + from collections import \ Counter, defaultdict ", @@ -698,6 +717,7 @@ from collections import \ insta::assert_snapshot!( snapshot(source, "defaultdict"), @r" + from collections import \ Counter, OrderedDict, defaultdict ", @@ -711,6 +731,7 @@ from collections import \ insta::assert_snapshot!( snapshot(source, "defaultdict"), @r" + from collections import \ Counter, \ OrderedDict, defaultdict @@ -745,7 +766,8 @@ from collections import ( "#; insta::assert_snapshot!( snapshot(source, "defaultdict"), - @r" + @" + from collections import ( Counter, defaultdict # comment ) @@ -759,7 +781,8 @@ from collections import ( "#; insta::assert_snapshot!( snapshot(source, "defaultdict"), - @r" + @" + from collections import ( Counter, defaultdict, # comment ) @@ -774,7 +797,8 @@ from collections import ( "#; insta::assert_snapshot!( snapshot(source, "defaultdict"), - @r" + @" + from collections import ( Counter, defaultdict # comment , @@ -791,7 +815,8 @@ from collections import ( "#; insta::assert_snapshot!( snapshot(source, "defaultdict"), - @r" + @" + from collections import ( Counter, defaultdict # comment @@ -809,7 +834,8 @@ from collections import ( "#; insta::assert_snapshot!( snapshot(source, "defaultdict"), - @r" + @" + from collections import ( # comment 1 Counter, defaultdict # comment 2 @@ -823,7 +849,10 @@ from collections import Counter # comment "#; insta::assert_snapshot!( snapshot(source, "defaultdict"), - @"from collections import Counter, defaultdict # comment", + @" + + from collections import Counter, defaultdict # comment + ", ); let source = r#" @@ -831,7 +860,10 @@ from collections import Counter, OrderedDict # comment "#; insta::assert_snapshot!( snapshot(source, "defaultdict"), - @"from collections import Counter, OrderedDict, defaultdict # comment", + @" + + from collections import Counter, OrderedDict, defaultdict # comment + ", ); } } diff --git a/crates/ruff_python_parser/src/parser/snapshots/ruff_python_parser__parser__tests__expr_mode_invalid_syntax1.snap b/crates/ruff_python_parser/src/parser/snapshots/ruff_python_parser__parser__tests__expr_mode_invalid_syntax1.snap index 39c3600ad3..a3b74e9fad 100644 --- a/crates/ruff_python_parser/src/parser/snapshots/ruff_python_parser__parser__tests__expr_mode_invalid_syntax1.snap +++ b/crates/ruff_python_parser/src/parser/snapshots/ruff_python_parser__parser__tests__expr_mode_invalid_syntax1.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/parser/tests.rs expression: error -snapshot_kind: text --- ParseError { error: UnexpectedExpressionToken, diff --git a/crates/ruff_python_parser/src/parser/snapshots/ruff_python_parser__parser__tests__expr_mode_invalid_syntax2.snap b/crates/ruff_python_parser/src/parser/snapshots/ruff_python_parser__parser__tests__expr_mode_invalid_syntax2.snap index ce4545a699..ba26114dd8 100644 --- a/crates/ruff_python_parser/src/parser/snapshots/ruff_python_parser__parser__tests__expr_mode_invalid_syntax2.snap +++ b/crates/ruff_python_parser/src/parser/snapshots/ruff_python_parser__parser__tests__expr_mode_invalid_syntax2.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/parser/tests.rs expression: error -snapshot_kind: text --- ParseError { error: UnexpectedExpressionToken, diff --git a/crates/ruff_python_parser/src/parser/snapshots/ruff_python_parser__parser__tests__expr_mode_invalid_syntax3.snap b/crates/ruff_python_parser/src/parser/snapshots/ruff_python_parser__parser__tests__expr_mode_invalid_syntax3.snap index ce4545a699..ba26114dd8 100644 --- a/crates/ruff_python_parser/src/parser/snapshots/ruff_python_parser__parser__tests__expr_mode_invalid_syntax3.snap +++ b/crates/ruff_python_parser/src/parser/snapshots/ruff_python_parser__parser__tests__expr_mode_invalid_syntax3.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/parser/tests.rs expression: error -snapshot_kind: text --- ParseError { error: UnexpectedExpressionToken, diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__assignment.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__assignment.snap index 40f35557b8..4a1d92e345 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__assignment.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__assignment.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(source) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__bom.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__bom.snap index 2717980245..f8ffac2586 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__bom.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__bom.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(source) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__bom_with_offset.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__bom_with_offset.snap index 1c53c8171b..ae884918e1 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__bom_with_offset.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__bom_with_offset.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: "lex_source_with_offset(source, TextSize::new(7))" -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__bom_with_offset_edge.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__bom_with_offset_edge.snap index 5302fb97c6..e7376dbf3b 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__bom_with_offset_edge.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__bom_with_offset_edge.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: "lex_source_with_offset(source, TextSize::new(11))" -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__comment_until_mac_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__comment_until_mac_eol.snap index 3e90872a52..9e3a9cee5a 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__comment_until_mac_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__comment_until_mac_eol.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: comment_until_eol(MAC_EOL) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__comment_until_unix_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__comment_until_unix_eol.snap index d7a257a84f..6b884348b1 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__comment_until_unix_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__comment_until_unix_eol.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: comment_until_eol(UNIX_EOL) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__comment_until_windows_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__comment_until_windows_eol.snap index 5db83a7a6c..fa24089239 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__comment_until_windows_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__comment_until_windows_eol.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: comment_until_eol(WINDOWS_EOL) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__dedent_after_whitespace.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__dedent_after_whitespace.snap index 6b5d886d4c..52f55ab814 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__dedent_after_whitespace.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__dedent_after_whitespace.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(source) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__double_dedent_with_mac_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__double_dedent_with_mac_eol.snap index 88cc1d1d91..ccb4c9f107 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__double_dedent_with_mac_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__double_dedent_with_mac_eol.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: double_dedent_with_eol(MAC_EOL) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__double_dedent_with_tabs_mac_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__double_dedent_with_tabs_mac_eol.snap index ec925b42c6..974da6fd82 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__double_dedent_with_tabs_mac_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__double_dedent_with_tabs_mac_eol.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: double_dedent_with_tabs_eol(MAC_EOL) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__double_dedent_with_tabs_unix_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__double_dedent_with_tabs_unix_eol.snap index dd7745835f..1e0460ca79 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__double_dedent_with_tabs_unix_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__double_dedent_with_tabs_unix_eol.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: double_dedent_with_tabs_eol(UNIX_EOL) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__double_dedent_with_tabs_windows_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__double_dedent_with_tabs_windows_eol.snap index 63dc87cdc2..6c431603c1 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__double_dedent_with_tabs_windows_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__double_dedent_with_tabs_windows_eol.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: double_dedent_with_tabs_eol(WINDOWS_EOL) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__double_dedent_with_unix_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__double_dedent_with_unix_eol.snap index 6a142d584b..220b1d6e01 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__double_dedent_with_unix_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__double_dedent_with_unix_eol.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: double_dedent_with_eol(UNIX_EOL) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__double_dedent_with_windows_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__double_dedent_with_windows_eol.snap index cca104025a..3aee0e3cb6 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__double_dedent_with_windows_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__double_dedent_with_windows_eol.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: double_dedent_with_eol(WINDOWS_EOL) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__emoji_identifier.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__emoji_identifier.snap index 8912d40c32..0a9bec6cf9 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__emoji_identifier.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__emoji_identifier.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: "lex_invalid(source, Mode::Module)" -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__empty_fstrings.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__empty_fstrings.snap index 61c557e47b..2e6c623f95 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__empty_fstrings.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__empty_fstrings.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(source) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__empty_ipython_escape_command.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__empty_ipython_escape_command.snap index a66566b446..848e576a83 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__empty_ipython_escape_command.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__empty_ipython_escape_command.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_jupyter_source(source) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__escape_unicode_name.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__escape_unicode_name.snap index 5e3bc9cb3b..baa500ccb7 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__escape_unicode_name.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__escape_unicode_name.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(source) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_prefix.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_prefix.snap index 2ee601197c..f134fe8d99 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_prefix.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_prefix.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(source) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_with_lambda_expression.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_with_lambda_expression.snap index 265afe8c79..fedc3ab67c 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_with_lambda_expression.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__fstring_with_lambda_expression.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(source) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__indentation_with_mac_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__indentation_with_mac_eol.snap index 9c6494542b..60a396cb45 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__indentation_with_mac_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__indentation_with_mac_eol.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: indentation_with_eol(MAC_EOL) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__indentation_with_unix_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__indentation_with_unix_eol.snap index 4ffc52ad99..e7eda48572 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__indentation_with_unix_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__indentation_with_unix_eol.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: indentation_with_eol(UNIX_EOL) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__indentation_with_windows_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__indentation_with_windows_eol.snap index e53ec3ae31..d5966f6c55 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__indentation_with_windows_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__indentation_with_windows_eol.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: indentation_with_eol(WINDOWS_EOL) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__invalid_leading_zero_big.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__invalid_leading_zero_big.snap index 2b34a9903d..189a89b5b8 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__invalid_leading_zero_big.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__invalid_leading_zero_big.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: "lex_invalid(source, Mode::Module)" -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__invalid_leading_zero_small.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__invalid_leading_zero_small.snap index 607a466967..50a1a1564f 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__invalid_leading_zero_small.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__invalid_leading_zero_small.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: "lex_invalid(source, Mode::Module)" -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command.snap index 758824dceb..87c8111347 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_jupyter_source(source) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_assignment.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_assignment.snap index 0466d36499..232b1d850f 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_assignment.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_assignment.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_jupyter_source(source) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_indentation.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_indentation.snap index ca986e3a04..add0a35364 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_indentation.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_indentation.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_jupyter_source(source) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_line_continuation_mac_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_line_continuation_mac_eol.snap index ac912f1716..913af5854f 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_line_continuation_mac_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_line_continuation_mac_eol.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: ipython_escape_command_line_continuation_eol(MAC_EOL) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_line_continuation_unix_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_line_continuation_unix_eol.snap index f6ff576adc..4710ed4bc1 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_line_continuation_unix_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_line_continuation_unix_eol.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: ipython_escape_command_line_continuation_eol(UNIX_EOL) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_line_continuation_windows_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_line_continuation_windows_eol.snap index 344bf237bb..0e9e3bde72 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_line_continuation_windows_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_line_continuation_windows_eol.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: ipython_escape_command_line_continuation_eol(WINDOWS_EOL) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_line_continuation_with_mac_eol_and_eof.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_line_continuation_with_mac_eol_and_eof.snap index 695022e09f..1d842b60d1 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_line_continuation_with_mac_eol_and_eof.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_line_continuation_with_mac_eol_and_eof.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: ipython_escape_command_line_continuation_with_eol_and_eof(MAC_EOL) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_line_continuation_with_unix_eol_and_eof.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_line_continuation_with_unix_eol_and_eof.snap index 4b75406242..13d4cf600f 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_line_continuation_with_unix_eol_and_eof.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_line_continuation_with_unix_eol_and_eof.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: ipython_escape_command_line_continuation_with_eol_and_eof(UNIX_EOL) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_line_continuation_with_windows_eol_and_eof.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_line_continuation_with_windows_eol_and_eof.snap index 54eae10f2c..b70e615c07 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_line_continuation_with_windows_eol_and_eof.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_escape_command_line_continuation_with_windows_eol_and_eof.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: ipython_escape_command_line_continuation_with_eol_and_eof(WINDOWS_EOL) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_help_end_escape_command.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_help_end_escape_command.snap index f4413ed56b..69e13c03bd 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_help_end_escape_command.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__ipython_help_end_escape_command.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_jupyter_source(source) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__line_comment_empty.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__line_comment_empty.snap index 6cd63d62b8..8aa9156f9f 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__line_comment_empty.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__line_comment_empty.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(&source) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__line_comment_long.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__line_comment_long.snap index a3cc233123..b583477cdb 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__line_comment_long.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__line_comment_long.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(&source) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__line_comment_single_whitespace.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__line_comment_single_whitespace.snap index ab484bbdd0..0c4d6c8372 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__line_comment_single_whitespace.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__line_comment_single_whitespace.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(&source) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__line_comment_whitespace.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__line_comment_whitespace.snap index 027d1d6caf..f2e37aa31d 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__line_comment_whitespace.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__line_comment_whitespace.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(&source) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__logical_newline_line_comment.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__logical_newline_line_comment.snap index 63eaf712c1..151f5dedd4 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__logical_newline_line_comment.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__logical_newline_line_comment.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(source) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__match_softkeyword_in_notebook.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__match_softkeyword_in_notebook.snap index c27d0b2419..a8c2f875ea 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__match_softkeyword_in_notebook.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__match_softkeyword_in_notebook.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_jupyter_source(source) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__newline_in_brackets_mac_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__newline_in_brackets_mac_eol.snap index b3b0180cf9..f9e862dc9f 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__newline_in_brackets_mac_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__newline_in_brackets_mac_eol.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: newline_in_brackets_eol(MAC_EOL) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__newline_in_brackets_unix_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__newline_in_brackets_unix_eol.snap index 57cf72a871..82230da340 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__newline_in_brackets_unix_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__newline_in_brackets_unix_eol.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: newline_in_brackets_eol(UNIX_EOL) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__newline_in_brackets_windows_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__newline_in_brackets_windows_eol.snap index 2db482fb79..b1901506c7 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__newline_in_brackets_windows_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__newline_in_brackets_windows_eol.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: newline_in_brackets_eol(WINDOWS_EOL) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__non_logical_newline_in_string_continuation.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__non_logical_newline_in_string_continuation.snap index 947c612cc9..48356832bc 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__non_logical_newline_in_string_continuation.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__non_logical_newline_in_string_continuation.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(source) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__numbers.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__numbers.snap index f957d1f50b..ee49b4ab27 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__numbers.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__numbers.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(source) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__operators.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__operators.snap index 3c0b9abbf4..3a241f6c7c 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__operators.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__operators.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(source) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__string.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__string.snap index 909c5edd9b..c045c602e2 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__string.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__string.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: lex_source(source) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__string_continuation_with_mac_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__string_continuation_with_mac_eol.snap index 47c35076b3..3df752853b 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__string_continuation_with_mac_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__string_continuation_with_mac_eol.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: string_continuation_with_eol(MAC_EOL) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__string_continuation_with_unix_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__string_continuation_with_unix_eol.snap index 94f8a1dbc4..e7413d1002 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__string_continuation_with_unix_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__string_continuation_with_unix_eol.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: string_continuation_with_eol(UNIX_EOL) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__string_continuation_with_windows_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__string_continuation_with_windows_eol.snap index 906eb37faf..ac945e5ace 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__string_continuation_with_windows_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__string_continuation_with_windows_eol.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: string_continuation_with_eol(WINDOWS_EOL) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__tet_too_low_dedent.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__tet_too_low_dedent.snap index e5dd55522e..166877fd0e 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__tet_too_low_dedent.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__tet_too_low_dedent.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: "lex_invalid(source, Mode::Module)" -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__triple_quoted_mac_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__triple_quoted_mac_eol.snap index 70820bcf5d..6dcccf3fdb 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__triple_quoted_mac_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__triple_quoted_mac_eol.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: triple_quoted_eol(MAC_EOL) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__triple_quoted_unix_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__triple_quoted_unix_eol.snap index 7b51869281..70f9c06af3 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__triple_quoted_unix_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__triple_quoted_unix_eol.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: triple_quoted_eol(UNIX_EOL) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__triple_quoted_windows_eol.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__triple_quoted_windows_eol.snap index c53f4f93fc..8dcdd0461c 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__triple_quoted_windows_eol.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__lexer__tests__triple_quoted_windows_eol.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/lexer.rs expression: triple_quoted_eol(WINDOWS_EOL) -snapshot_kind: text --- ## Tokens ``` diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__invalid_byte_literal_error.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__invalid_byte_literal_error.snap index ee80a30310..cfd2346294 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__invalid_byte_literal_error.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__invalid_byte_literal_error.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/string.rs expression: error -snapshot_kind: text --- ParseError { error: Lexical( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__invalid_unicode_literal.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__invalid_unicode_literal.snap index ea4afbab7e..05ba4616d5 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__invalid_unicode_literal.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__invalid_unicode_literal.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/string.rs expression: error -snapshot_kind: text --- ParseError { error: Lexical( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__invalid_unicode_name_error.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__invalid_unicode_name_error.snap index ce1df14dc8..d657f5063d 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__invalid_unicode_name_error.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__invalid_unicode_name_error.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/string.rs expression: error -snapshot_kind: text --- ParseError { error: Lexical( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__missing_unicode_lbrace_error.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__missing_unicode_lbrace_error.snap index 5b61d84958..fec204c0df 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__missing_unicode_lbrace_error.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__missing_unicode_lbrace_error.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/string.rs expression: error -snapshot_kind: text --- ParseError { error: Lexical( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__missing_unicode_rbrace_error.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__missing_unicode_rbrace_error.snap index 20927a8b12..c052b292f5 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__missing_unicode_rbrace_error.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__string__tests__missing_unicode_rbrace_error.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_parser/src/string.rs expression: error -snapshot_kind: text --- ParseError { error: Lexical( diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__Reverse.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__Reverse.snap index f4614ed26f..7763ffb690 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__Reverse.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__Reverse.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokenize_reverse() -snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__comment_containing_single_quoted_string.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__comment_containing_single_quoted_string.snap index 699e3130c5..36ea89df61 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__comment_containing_single_quoted_string.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__comment_containing_single_quoted_string.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokenize_reverse() -snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__comment_containing_triple_quoted_string.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__comment_containing_triple_quoted_string.snap index 8e87897557..a794749cff 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__comment_containing_triple_quoted_string.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__comment_containing_triple_quoted_string.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokenize_reverse() -snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__empty_string_literal.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__empty_string_literal.snap index a933106fb5..1d420e049f 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__empty_string_literal.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__empty_string_literal.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokenize_reverse() -snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__identifier_ending_in_non_start_char.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__identifier_ending_in_non_start_char.snap index 8a103b0b32..32e4f33792 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__identifier_ending_in_non_start_char.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__identifier_ending_in_non_start_char.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokens() -snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__identifier_starting_with_string_kind.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__identifier_starting_with_string_kind.snap index 2f53b7c310..04086f5524 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__identifier_starting_with_string_kind.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__identifier_starting_with_string_kind.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokens() -snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__ignore_word_with_only_id_continuing_chars.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__ignore_word_with_only_id_continuing_chars.snap index cde01b5c92..a1248f3b41 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__ignore_word_with_only_id_continuing_chars.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__ignore_word_with_only_id_continuing_chars.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokens() -snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__single_quoted_multiline_string_containing_comment.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__single_quoted_multiline_string_containing_comment.snap index 9ea71461d7..913b789991 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__single_quoted_multiline_string_containing_comment.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__single_quoted_multiline_string_containing_comment.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokenize_reverse() -snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__single_quoted_multiline_string_implicit_concatenation.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__single_quoted_multiline_string_implicit_concatenation.snap index 126ec9b8e6..88771f8ce2 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__single_quoted_multiline_string_implicit_concatenation.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__single_quoted_multiline_string_implicit_concatenation.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokenize_reverse() -snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__string_followed_by_multiple_comments.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__string_followed_by_multiple_comments.snap index 94eea3583e..2c623fbaad 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__string_followed_by_multiple_comments.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__string_followed_by_multiple_comments.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokenize_reverse() -snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__string_with_byte_kind.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__string_with_byte_kind.snap index 719d4e66f2..13e26326e6 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__string_with_byte_kind.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__string_with_byte_kind.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokens() -snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__string_with_double_escaped_backslash.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__string_with_double_escaped_backslash.snap index a98f8fe692..84ac21254d 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__string_with_double_escaped_backslash.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__string_with_double_escaped_backslash.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokenize_reverse() -snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__string_with_escaped_quote.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__string_with_escaped_quote.snap index 94db4e4192..1bf0706e3a 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__string_with_escaped_quote.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__string_with_escaped_quote.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokenize_reverse() -snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__string_with_invalid_kind.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__string_with_invalid_kind.snap index 1fe760036d..cdcaad2ccb 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__string_with_invalid_kind.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__string_with_invalid_kind.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokens() -snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__string_with_kind.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__string_with_kind.snap index 4a90600501..4f20942cc6 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__string_with_kind.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__string_with_kind.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokens() -snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_bogus.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_bogus.snap index a93275d7eb..ab66aa9c11 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_bogus.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_bogus.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokens() -snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_comma.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_comma.snap index 1696508a86..be4f7308d7 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_comma.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_comma.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokens() -snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_continuation.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_continuation.snap index 841305918a..801a7a65dd 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_continuation.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_continuation.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokens() -snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_eq.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_eq.snap index 59556fbcd1..4bab77b681 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_eq.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_eq.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokens() -snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_invalid_operators.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_invalid_operators.snap index 9815b84346..78f0374943 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_invalid_operators.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_invalid_operators.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokens() -snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_multichar.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_multichar.snap index 38da7f9ddf..4cc2111b55 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_multichar.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_multichar.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokens() -snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_not_eq.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_not_eq.snap index 313f9770d5..e2db410347 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_not_eq.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_not_eq.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokens() -snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_operators.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_operators.snap index cc60694848..e0430a9553 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_operators.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_operators.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokens() -snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_parentheses.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_parentheses.snap index 7eccb8ed6d..0e3bedccd5 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_parentheses.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_parentheses.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokens() -snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_slash.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_slash.snap index 74a0a87d3f..43c5d6d815 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_slash.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_slash.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokens() -snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_substring.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_substring.snap index 0961dcbc6d..d3b74a1074 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_substring.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_substring.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokens() -snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_trivia.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_trivia.snap index f2683c4796..4872572e91 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_trivia.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tokenize_trivia.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokens() -snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tricky_unicode.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tricky_unicode.snap index 5ac529b344..bc8a977653 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tricky_unicode.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__tricky_unicode.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokens() -snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__triple_quoted_multiline_string_containing_comment.snap b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__triple_quoted_multiline_string_containing_comment.snap index 174a2521f9..e2081323a1 100644 --- a/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__triple_quoted_multiline_string_containing_comment.snap +++ b/crates/ruff_python_trivia_integration_tests/tests/snapshots/simple_tokenizer__triple_quoted_multiline_string_containing_comment.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs expression: test_case.tokenize_reverse() -snapshot_kind: text --- [ SimpleToken { diff --git a/crates/ruff_server/tests/snapshots/document__delete_lines_pandas_html.snap b/crates/ruff_server/tests/snapshots/document__delete_lines_pandas_html.snap index 47cb6406fb..ac6e3dfcf0 100644 --- a/crates/ruff_server/tests/snapshots/document__delete_lines_pandas_html.snap +++ b/crates/ruff_server/tests/snapshots/document__delete_lines_pandas_html.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_server/tests/document.rs expression: document.contents() -snapshot_kind: text --- # +------------------------------------------------------------+ # | Code adopted from: | diff --git a/crates/ruff_server/tests/snapshots/notebook__changed_notebook.snap b/crates/ruff_server/tests/snapshots/notebook__changed_notebook.snap index f13e4a8694..a90e216678 100644 --- a/crates/ruff_server/tests/snapshots/notebook__changed_notebook.snap +++ b/crates/ruff_server/tests/snapshots/notebook__changed_notebook.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_server/tests/notebook.rs expression: notebook_source(snapshot.query().as_notebook().unwrap()) -snapshot_kind: text --- # @title Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/crates/ruff_server/tests/snapshots/notebook__initial_notebook.snap b/crates/ruff_server/tests/snapshots/notebook__initial_notebook.snap index 4e60599cbf..29a2872058 100644 --- a/crates/ruff_server/tests/snapshots/notebook__initial_notebook.snap +++ b/crates/ruff_server/tests/snapshots/notebook__initial_notebook.snap @@ -1,7 +1,6 @@ --- source: crates/ruff_server/tests/notebook.rs expression: notebook_source(¬ebook) -snapshot_kind: text --- #@title Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/crates/ty/tests/cli/analysis_options.rs b/crates/ty/tests/cli/analysis_options.rs index 7f36b8909c..9967508c2b 100644 --- a/crates/ty/tests/cli/analysis_options.rs +++ b/crates/ty/tests/cli/analysis_options.rs @@ -13,7 +13,7 @@ fn respect_type_ignore_comments_is_turned_off() -> anyhow::Result<()> { )?; // Assert that there's an `unresolved-reference` diagnostic (error). - assert_cmd_snapshot!(case.command(), @r" + assert_cmd_snapshot!(case.command(), @" success: true exit_code: 0 ----- stdout ----- @@ -22,7 +22,7 @@ fn respect_type_ignore_comments_is_turned_off() -> anyhow::Result<()> { ----- stderr ----- "); - assert_cmd_snapshot!(case.command().arg("--config").arg("analysis.respect-type-ignore-comments=false"), @r" + assert_cmd_snapshot!(case.command().arg("--config").arg("analysis.respect-type-ignore-comments=false"), @" success: false exit_code: 1 ----- stdout ----- diff --git a/crates/ty/tests/cli/config_option.rs b/crates/ty/tests/cli/config_option.rs index b421ad5d6a..e088d4830a 100644 --- a/crates/ty/tests/cli/config_option.rs +++ b/crates/ty/tests/cli/config_option.rs @@ -7,7 +7,7 @@ fn cli_config_args_toml_string_basic() -> anyhow::Result<()> { let case = CliTest::with_file("test.py", r"print(x) # [unresolved-reference]")?; // Long flag - assert_cmd_snapshot!(case.command().arg("--warn").arg("unresolved-reference").arg("--config").arg("terminal.error-on-warning=true"), @r###" + assert_cmd_snapshot!(case.command().arg("--warn").arg("unresolved-reference").arg("--config").arg("terminal.error-on-warning=true"), @" success: false exit_code: 1 ----- stdout ----- @@ -22,10 +22,10 @@ fn cli_config_args_toml_string_basic() -> anyhow::Result<()> { Found 1 diagnostic ----- stderr ----- - "###); + "); // Short flag - assert_cmd_snapshot!(case.command().arg("-c").arg("terminal.error-on-warning=true"), @r###" + assert_cmd_snapshot!(case.command().arg("-c").arg("terminal.error-on-warning=true"), @" success: false exit_code: 1 ----- stdout ----- @@ -40,7 +40,7 @@ fn cli_config_args_toml_string_basic() -> anyhow::Result<()> { Found 1 diagnostic ----- stderr ----- - "###); + "); Ok(()) } @@ -59,7 +59,7 @@ fn cli_config_args_overrides_ty_toml() -> anyhow::Result<()> { ])?; // Exit code of 1 due to the setting in `ty.toml` - assert_cmd_snapshot!(case.command().arg("--warn").arg("unresolved-reference"), @r###" + assert_cmd_snapshot!(case.command().arg("--warn").arg("unresolved-reference"), @" success: false exit_code: 1 ----- stdout ----- @@ -74,10 +74,10 @@ fn cli_config_args_overrides_ty_toml() -> anyhow::Result<()> { Found 1 diagnostic ----- stderr ----- - "###); + "); // Exit code of 0 because the `ty.toml` setting is overwritten by `--config` - assert_cmd_snapshot!(case.command().arg("--warn").arg("unresolved-reference").arg("--config").arg("terminal.error-on-warning=false"), @r###" + assert_cmd_snapshot!(case.command().arg("--warn").arg("unresolved-reference").arg("--config").arg("terminal.error-on-warning=false"), @" success: true exit_code: 0 ----- stdout ----- @@ -92,7 +92,7 @@ fn cli_config_args_overrides_ty_toml() -> anyhow::Result<()> { Found 1 diagnostic ----- stderr ----- - "###); + "); Ok(()) } @@ -100,7 +100,7 @@ fn cli_config_args_overrides_ty_toml() -> anyhow::Result<()> { #[test] fn cli_config_args_later_overrides_earlier() -> anyhow::Result<()> { let case = CliTest::with_file("test.py", r"print(x) # [unresolved-reference]")?; - assert_cmd_snapshot!(case.command().arg("--warn").arg("unresolved-reference").arg("--config").arg("terminal.error-on-warning=true").arg("--config").arg("terminal.error-on-warning=false"), @r###" + assert_cmd_snapshot!(case.command().arg("--warn").arg("unresolved-reference").arg("--config").arg("terminal.error-on-warning=true").arg("--config").arg("terminal.error-on-warning=false"), @" success: true exit_code: 0 ----- stdout ----- @@ -115,7 +115,7 @@ fn cli_config_args_later_overrides_earlier() -> anyhow::Result<()> { Found 1 diagnostic ----- stderr ----- - "###); + "); Ok(()) } @@ -123,7 +123,7 @@ fn cli_config_args_later_overrides_earlier() -> anyhow::Result<()> { #[test] fn cli_config_args_invalid_option() -> anyhow::Result<()> { let case = CliTest::with_file("test.py", r"print(1)")?; - assert_cmd_snapshot!(case.command().arg("--config").arg("bad-option=true"), @r" + assert_cmd_snapshot!(case.command().arg("--config").arg("bad-option=true"), @" success: false exit_code: 2 ----- stdout ----- @@ -160,7 +160,7 @@ fn config_file_override() -> anyhow::Result<()> { ])?; // Ensure flag works via CLI arg - assert_cmd_snapshot!(case.command().arg("--warn").arg("unresolved-reference").arg("--config-file").arg("ty-override.toml"), @r###" + assert_cmd_snapshot!(case.command().arg("--warn").arg("unresolved-reference").arg("--config-file").arg("ty-override.toml"), @" success: false exit_code: 1 ----- stdout ----- @@ -175,10 +175,10 @@ fn config_file_override() -> anyhow::Result<()> { Found 1 diagnostic ----- stderr ----- - "###); + "); // Ensure the flag works via an environment variable - assert_cmd_snapshot!(case.command().arg("--warn").arg("unresolved-reference").env("TY_CONFIG_FILE", "ty-override.toml"), @r###" + assert_cmd_snapshot!(case.command().arg("--warn").arg("unresolved-reference").env("TY_CONFIG_FILE", "ty-override.toml"), @" success: false exit_code: 1 ----- stdout ----- @@ -193,7 +193,7 @@ fn config_file_override() -> anyhow::Result<()> { Found 1 diagnostic ----- stderr ----- - "###); + "); Ok(()) } diff --git a/crates/ty/tests/cli/exit_code.rs b/crates/ty/tests/cli/exit_code.rs index 35e4f50ad0..d51f83a631 100644 --- a/crates/ty/tests/cli/exit_code.rs +++ b/crates/ty/tests/cli/exit_code.rs @@ -6,7 +6,7 @@ use crate::CliTest; fn only_warnings() -> anyhow::Result<()> { let case = CliTest::with_file("test.py", r"print(x) # [unresolved-reference]")?; - assert_cmd_snapshot!(case.command().arg("--warn").arg("unresolved-reference"), @r###" + assert_cmd_snapshot!(case.command().arg("--warn").arg("unresolved-reference"), @" success: true exit_code: 0 ----- stdout ----- @@ -21,7 +21,7 @@ fn only_warnings() -> anyhow::Result<()> { Found 1 diagnostic ----- stderr ----- - "###); + "); Ok(()) } @@ -36,7 +36,7 @@ fn only_info() -> anyhow::Result<()> { "#, )?; - assert_cmd_snapshot!(case.command(), @r###" + assert_cmd_snapshot!(case.command(), @" success: true exit_code: 0 ----- stdout ----- @@ -51,7 +51,7 @@ fn only_info() -> anyhow::Result<()> { Found 1 diagnostic ----- stderr ----- - "###); + "); Ok(()) } @@ -66,7 +66,7 @@ fn only_info_and_error_on_warning_is_true() -> anyhow::Result<()> { "#, )?; - assert_cmd_snapshot!(case.command().arg("--error-on-warning"), @r###" + assert_cmd_snapshot!(case.command().arg("--error-on-warning"), @" success: true exit_code: 0 ----- stdout ----- @@ -81,7 +81,7 @@ fn only_info_and_error_on_warning_is_true() -> anyhow::Result<()> { Found 1 diagnostic ----- stderr ----- - "###); + "); Ok(()) } @@ -90,7 +90,7 @@ fn only_info_and_error_on_warning_is_true() -> anyhow::Result<()> { fn no_errors_but_error_on_warning_is_true() -> anyhow::Result<()> { let case = CliTest::with_file("test.py", r"print(x) # [unresolved-reference]")?; - assert_cmd_snapshot!(case.command().arg("--error-on-warning").arg("--warn").arg("unresolved-reference"), @r###" + assert_cmd_snapshot!(case.command().arg("--error-on-warning").arg("--warn").arg("unresolved-reference"), @" success: false exit_code: 1 ----- stdout ----- @@ -105,7 +105,7 @@ fn no_errors_but_error_on_warning_is_true() -> anyhow::Result<()> { Found 1 diagnostic ----- stderr ----- - "###); + "); Ok(()) } @@ -123,7 +123,7 @@ fn no_errors_but_error_on_warning_is_enabled_in_configuration() -> anyhow::Resul ), ])?; - assert_cmd_snapshot!(case.command().arg("--warn").arg("unresolved-reference"), @r###" + assert_cmd_snapshot!(case.command().arg("--warn").arg("unresolved-reference"), @" success: false exit_code: 1 ----- stdout ----- @@ -138,7 +138,7 @@ fn no_errors_but_error_on_warning_is_enabled_in_configuration() -> anyhow::Resul Found 1 diagnostic ----- stderr ----- - "###); + "); Ok(()) } @@ -153,7 +153,7 @@ fn both_warnings_and_errors() -> anyhow::Result<()> { "#, )?; - assert_cmd_snapshot!(case.command().arg("--warn").arg("unresolved-reference"), @r" + assert_cmd_snapshot!(case.command().arg("--warn").arg("unresolved-reference"), @" success: false exit_code: 1 ----- stdout ----- @@ -193,7 +193,7 @@ fn both_warnings_and_errors_and_error_on_warning_is_true() -> anyhow::Result<()> "###, )?; - assert_cmd_snapshot!(case.command().arg("--warn").arg("unresolved-reference").arg("--error-on-warning"), @r" + assert_cmd_snapshot!(case.command().arg("--warn").arg("unresolved-reference").arg("--error-on-warning"), @" success: false exit_code: 1 ----- stdout ----- @@ -233,7 +233,7 @@ fn exit_zero_is_true() -> anyhow::Result<()> { "#, )?; - assert_cmd_snapshot!(case.command().arg("--exit-zero").arg("--warn").arg("unresolved-reference"), @r" + assert_cmd_snapshot!(case.command().arg("--exit-zero").arg("--warn").arg("unresolved-reference"), @" success: true exit_code: 0 ----- stdout ----- diff --git a/crates/ty/tests/cli/file_selection.rs b/crates/ty/tests/cli/file_selection.rs index 683790f443..36835f2634 100644 --- a/crates/ty/tests/cli/file_selection.rs +++ b/crates/ty/tests/cli/file_selection.rs @@ -27,7 +27,7 @@ fn exclude_argument() -> anyhow::Result<()> { ])?; // Test that exclude argument is recognized and works - assert_cmd_snapshot!(case.command().arg("--exclude").arg("tests/"), @r###" + assert_cmd_snapshot!(case.command().arg("--exclude").arg("tests/"), @" success: false exit_code: 1 ----- stdout ----- @@ -50,10 +50,10 @@ fn exclude_argument() -> anyhow::Result<()> { Found 2 diagnostics ----- stderr ----- - "###); + "); // Test multiple exclude patterns - assert_cmd_snapshot!(case.command().arg("--exclude").arg("tests/").arg("--exclude").arg("temp_*.py"), @r###" + assert_cmd_snapshot!(case.command().arg("--exclude").arg("tests/").arg("--exclude").arg("temp_*.py"), @" success: false exit_code: 1 ----- stdout ----- @@ -68,7 +68,7 @@ fn exclude_argument() -> anyhow::Result<()> { Found 1 diagnostic ----- stderr ----- - "###); + "); Ok(()) } @@ -106,7 +106,7 @@ fn configuration_include() -> anyhow::Result<()> { "#, )?; - assert_cmd_snapshot!(case.command(), @r###" + assert_cmd_snapshot!(case.command(), @" success: false exit_code: 1 ----- stdout ----- @@ -121,7 +121,7 @@ fn configuration_include() -> anyhow::Result<()> { Found 1 diagnostic ----- stderr ----- - "###); + "); // Test multiple include patterns via configuration case.write_file( @@ -132,7 +132,7 @@ fn configuration_include() -> anyhow::Result<()> { "#, )?; - assert_cmd_snapshot!(case.command(), @r###" + assert_cmd_snapshot!(case.command(), @" success: false exit_code: 1 ----- stdout ----- @@ -155,7 +155,7 @@ fn configuration_include() -> anyhow::Result<()> { Found 2 diagnostics ----- stderr ----- - "###); + "); Ok(()) } @@ -193,7 +193,7 @@ fn configuration_exclude() -> anyhow::Result<()> { "#, )?; - assert_cmd_snapshot!(case.command(), @r###" + assert_cmd_snapshot!(case.command(), @" success: false exit_code: 1 ----- stdout ----- @@ -216,7 +216,7 @@ fn configuration_exclude() -> anyhow::Result<()> { Found 2 diagnostics ----- stderr ----- - "###); + "); // Test multiple exclude patterns via configuration case.write_file( @@ -227,7 +227,7 @@ fn configuration_exclude() -> anyhow::Result<()> { "#, )?; - assert_cmd_snapshot!(case.command(), @r###" + assert_cmd_snapshot!(case.command(), @" success: false exit_code: 1 ----- stdout ----- @@ -242,7 +242,7 @@ fn configuration_exclude() -> anyhow::Result<()> { Found 1 diagnostic ----- stderr ----- - "###); + "); Ok(()) } @@ -281,7 +281,7 @@ fn exclude_precedence_over_include() -> anyhow::Result<()> { "#, )?; - assert_cmd_snapshot!(case.command(), @r###" + assert_cmd_snapshot!(case.command(), @" success: false exit_code: 1 ----- stdout ----- @@ -296,7 +296,7 @@ fn exclude_precedence_over_include() -> anyhow::Result<()> { Found 1 diagnostic ----- stderr ----- - "###); + "); Ok(()) } @@ -334,7 +334,7 @@ fn exclude_argument_precedence_include_argument() -> anyhow::Result<()> { "#, )?; - assert_cmd_snapshot!(case.command().arg("--exclude").arg("tests/"), @r###" + assert_cmd_snapshot!(case.command().arg("--exclude").arg("tests/"), @" success: false exit_code: 1 ----- stdout ----- @@ -349,7 +349,7 @@ fn exclude_argument_precedence_include_argument() -> anyhow::Result<()> { Found 1 diagnostic ----- stderr ----- - "###); + "); Ok(()) } @@ -373,7 +373,7 @@ fn remove_default_exclude() -> anyhow::Result<()> { ])?; // By default, 'dist' directory should be excluded (see default excludes) - assert_cmd_snapshot!(case.command(), @r###" + assert_cmd_snapshot!(case.command(), @" success: false exit_code: 1 ----- stdout ----- @@ -388,7 +388,7 @@ fn remove_default_exclude() -> anyhow::Result<()> { Found 1 diagnostic ----- stderr ----- - "###); + "); // Now override the default exclude by using a negated pattern to re-include 'dist' case.write_file( @@ -399,7 +399,7 @@ fn remove_default_exclude() -> anyhow::Result<()> { "#, )?; - assert_cmd_snapshot!(case.command(), @r###" + assert_cmd_snapshot!(case.command(), @" success: false exit_code: 1 ----- stdout ----- @@ -422,7 +422,7 @@ fn remove_default_exclude() -> anyhow::Result<()> { Found 2 diagnostics ----- stderr ----- - "###); + "); Ok(()) } @@ -455,7 +455,7 @@ fn cli_removes_config_exclude() -> anyhow::Result<()> { )?; // Verify that build/ is excluded by configuration - assert_cmd_snapshot!(case.command(), @r###" + assert_cmd_snapshot!(case.command(), @" success: false exit_code: 1 ----- stdout ----- @@ -470,10 +470,10 @@ fn cli_removes_config_exclude() -> anyhow::Result<()> { Found 1 diagnostic ----- stderr ----- - "###); + "); // Now remove the configuration exclude via CLI negation - assert_cmd_snapshot!(case.command().arg("--exclude").arg("!build/"), @r###" + assert_cmd_snapshot!(case.command().arg("--exclude").arg("!build/"), @" success: false exit_code: 1 ----- stdout ----- @@ -496,7 +496,7 @@ fn cli_removes_config_exclude() -> anyhow::Result<()> { Found 2 diagnostics ----- stderr ----- - "###); + "); Ok(()) } @@ -533,7 +533,7 @@ fn explicit_path_overrides_exclude() -> anyhow::Result<()> { ])?; // dist is excluded by default and `tests/generated` is excluded in the project, so only src/main.py should be checked - assert_cmd_snapshot!(case.command(), @r###" + assert_cmd_snapshot!(case.command(), @" success: false exit_code: 1 ----- stdout ----- @@ -548,10 +548,10 @@ fn explicit_path_overrides_exclude() -> anyhow::Result<()> { Found 1 diagnostic ----- stderr ----- - "###); + "); // Explicitly checking a file in an excluded directory should still check that file - assert_cmd_snapshot!(case.command().arg("tests/generated.py"), @r###" + assert_cmd_snapshot!(case.command().arg("tests/generated.py"), @" success: false exit_code: 1 ----- stdout ----- @@ -566,10 +566,10 @@ fn explicit_path_overrides_exclude() -> anyhow::Result<()> { Found 1 diagnostic ----- stderr ----- - "###); + "); // Explicitly checking the entire excluded directory should check all files in it - assert_cmd_snapshot!(case.command().arg("dist/"), @r###" + assert_cmd_snapshot!(case.command().arg("dist/"), @" success: false exit_code: 1 ----- stdout ----- @@ -584,7 +584,7 @@ fn explicit_path_overrides_exclude() -> anyhow::Result<()> { Found 1 diagnostic ----- stderr ----- - "###); + "); Ok(()) } @@ -621,7 +621,7 @@ fn explicit_path_overrides_exclude_force_exclude() -> anyhow::Result<()> { ])?; // Explicitly checking a file in an excluded directory should still check that file - assert_cmd_snapshot!(case.command().arg("tests/generated.py").arg("src/main.py"), @r" + assert_cmd_snapshot!(case.command().arg("tests/generated.py").arg("src/main.py"), @" success: false exit_code: 1 ----- stdout ----- @@ -647,7 +647,7 @@ fn explicit_path_overrides_exclude_force_exclude() -> anyhow::Result<()> { "); // Except when `--force-exclude` is set. - assert_cmd_snapshot!(case.command().arg("tests/generated.py").arg("src/main.py").arg("--force-exclude"), @r" + assert_cmd_snapshot!(case.command().arg("tests/generated.py").arg("src/main.py").arg("--force-exclude"), @" success: false exit_code: 1 ----- stdout ----- @@ -665,7 +665,7 @@ fn explicit_path_overrides_exclude_force_exclude() -> anyhow::Result<()> { "); // Explicitly checking the entire excluded directory should check all files in it - assert_cmd_snapshot!(case.command().arg("dist/").arg("src/main.py"), @r" + assert_cmd_snapshot!(case.command().arg("dist/").arg("src/main.py"), @" success: false exit_code: 1 ----- stdout ----- @@ -691,7 +691,7 @@ fn explicit_path_overrides_exclude_force_exclude() -> anyhow::Result<()> { "); // Except when using `--force-exclude` - assert_cmd_snapshot!(case.command().arg("dist/").arg("src/main.py").arg("--force-exclude"), @r" + assert_cmd_snapshot!(case.command().arg("dist/").arg("src/main.py").arg("--force-exclude"), @" success: false exit_code: 1 ----- stdout ----- @@ -741,7 +741,7 @@ fn cli_and_configuration_exclude() -> anyhow::Result<()> { ), ])?; - assert_cmd_snapshot!(case.command(), @r" + assert_cmd_snapshot!(case.command(), @" success: false exit_code: 1 ----- stdout ----- @@ -766,7 +766,7 @@ fn cli_and_configuration_exclude() -> anyhow::Result<()> { ----- stderr ----- "); - assert_cmd_snapshot!(case.command().arg("--exclude").arg("my_dist/"), @r" + assert_cmd_snapshot!(case.command().arg("--exclude").arg("my_dist/"), @" success: false exit_code: 1 ----- stdout ----- @@ -807,7 +807,7 @@ fn invalid_include_pattern() -> anyhow::Result<()> { ])?; // By default, dist/ is excluded, so only src/main.py should be checked - assert_cmd_snapshot!(case.command(), @r###" + assert_cmd_snapshot!(case.command(), @r#" success: false exit_code: 2 ----- stdout ----- @@ -823,7 +823,7 @@ fn invalid_include_pattern() -> anyhow::Result<()> { | ^^^^^^^^^^^^^ Too many stars at position 5 5 | ] | - "###); + "#); Ok(()) } @@ -849,7 +849,7 @@ fn invalid_include_pattern_concise_output() -> anyhow::Result<()> { ])?; // By default, dist/ is excluded, so only src/main.py should be checked - assert_cmd_snapshot!(case.command().arg("--output-format").arg("concise"), @r###" + assert_cmd_snapshot!(case.command().arg("--output-format").arg("concise"), @" success: false exit_code: 2 ----- stdout ----- @@ -857,7 +857,7 @@ fn invalid_include_pattern_concise_output() -> anyhow::Result<()> { ----- stderr ----- ty failed Cause: ty.toml:4:5: error[invalid-glob] Invalid include pattern: Too many stars at position 5 - "###); + "); Ok(()) } @@ -883,7 +883,7 @@ fn invalid_exclude_pattern() -> anyhow::Result<()> { ])?; // By default, dist/ is excluded, so only src/main.py should be checked - assert_cmd_snapshot!(case.command(), @r###" + assert_cmd_snapshot!(case.command(), @r#" success: false exit_code: 2 ----- stdout ----- @@ -899,7 +899,7 @@ fn invalid_exclude_pattern() -> anyhow::Result<()> { | ^^^^^^^^ The parent directory operator (`..`) at position 1 is not allowed 5 | ] | - "###); + "#); Ok(()) } @@ -951,7 +951,7 @@ print(other_undefined) # error: unresolved-reference // Change to the bazel-out directory and run ty from there // The symlinks should be followed and errors should be found - assert_cmd_snapshot!(case.command().current_dir(case.project_dir.join("bazel-out/k8-fastbuild/bin")), @r###" + assert_cmd_snapshot!(case.command().current_dir(case.project_dir.join("bazel-out/k8-fastbuild/bin")), @" success: false exit_code: 1 ----- stdout ----- @@ -976,10 +976,10 @@ print(other_undefined) # error: unresolved-reference Found 2 diagnostics ----- stderr ----- - "###); + "); // Test that when checking a specific symlinked file from the bazel-out directory, it works correctly - assert_cmd_snapshot!(case.command().current_dir(case.project_dir.join("bazel-out/k8-fastbuild/bin")).arg("main.py"), @r###" + assert_cmd_snapshot!(case.command().current_dir(case.project_dir.join("bazel-out/k8-fastbuild/bin")).arg("main.py"), @" success: false exit_code: 1 ----- stdout ----- @@ -995,7 +995,7 @@ print(other_undefined) # error: unresolved-reference Found 1 diagnostic ----- stderr ----- - "###); + "); Ok(()) } @@ -1034,7 +1034,7 @@ print(regular_undefined) # error: unresolved-reference case.write_symlink("src/utils.py", "generated_utils.py")?; // Exclude pattern should match on the symlink name (generated_*), not the target name - assert_cmd_snapshot!(case.command().arg("--exclude").arg("generated_*.py"), @r###" + assert_cmd_snapshot!(case.command().arg("--exclude").arg("generated_*.py"), @" success: false exit_code: 1 ----- stdout ----- @@ -1067,10 +1067,10 @@ print(regular_undefined) # error: unresolved-reference Found 3 diagnostics ----- stderr ----- - "###); + "); // Exclude pattern on target path should not affect symlinks with different names - assert_cmd_snapshot!(case.command().arg("--exclude").arg("src/*.py"), @r###" + assert_cmd_snapshot!(case.command().arg("--exclude").arg("src/*.py"), @" success: false exit_code: 1 ----- stdout ----- @@ -1103,10 +1103,10 @@ print(regular_undefined) # error: unresolved-reference Found 3 diagnostics ----- stderr ----- - "###); + "); // Test that explicitly passing a symlink always checks it, even if excluded - assert_cmd_snapshot!(case.command().arg("--exclude").arg("generated_*.py").arg("generated_module.py"), @r###" + assert_cmd_snapshot!(case.command().arg("--exclude").arg("generated_*.py").arg("generated_module.py"), @" success: false exit_code: 1 ----- stdout ----- @@ -1122,7 +1122,7 @@ print(regular_undefined) # error: unresolved-reference Found 1 diagnostic ----- stderr ----- - "###); + "); Ok(()) } diff --git a/crates/ty/tests/cli/main.rs b/crates/ty/tests/cli/main.rs index d50ca21c72..e08f251720 100644 --- a/crates/ty/tests/cli/main.rs +++ b/crates/ty/tests/cli/main.rs @@ -21,17 +21,17 @@ fn test_quiet_output() -> anyhow::Result<()> { let case = CliTest::with_file("test.py", "x: int = 1")?; // By default, we emit an "all checks passed" message - assert_cmd_snapshot!(case.command(), @r###" + assert_cmd_snapshot!(case.command(), @" success: true exit_code: 0 ----- stdout ----- All checks passed! ----- stderr ----- - "###); + "); // With `quiet`, the message is not displayed - assert_cmd_snapshot!(case.command().arg("--quiet"), @r" + assert_cmd_snapshot!(case.command().arg("--quiet"), @" success: true exit_code: 0 ----- stdout ----- @@ -62,7 +62,7 @@ fn test_quiet_output() -> anyhow::Result<()> { "#); // With `quiet`, the diagnostic is not displayed, just the summary message - assert_cmd_snapshot!(case.command().arg("--quiet"), @r" + assert_cmd_snapshot!(case.command().arg("--quiet"), @" success: false exit_code: 1 ----- stdout ----- @@ -72,7 +72,7 @@ fn test_quiet_output() -> anyhow::Result<()> { "); // We allow `-q` - assert_cmd_snapshot!(case.command().arg("-q"), @r" + assert_cmd_snapshot!(case.command().arg("-q"), @" success: false exit_code: 1 ----- stdout ----- @@ -82,7 +82,7 @@ fn test_quiet_output() -> anyhow::Result<()> { "); // And repeated `-qq` - assert_cmd_snapshot!(case.command().arg("-qq"), @r" + assert_cmd_snapshot!(case.command().arg("-qq"), @" success: false exit_code: 1 ----- stdout ----- @@ -96,7 +96,7 @@ fn test_quiet_output() -> anyhow::Result<()> { #[test] fn test_run_in_sub_directory() -> anyhow::Result<()> { let case = CliTest::with_files([("test.py", "~"), ("subdir/nothing", "")])?; - assert_cmd_snapshot!(case.command().current_dir(case.root().join("subdir")).arg(".."), @r" + assert_cmd_snapshot!(case.command().current_dir(case.root().join("subdir")).arg(".."), @" success: false exit_code: 1 ----- stdout ----- @@ -117,7 +117,7 @@ fn test_run_in_sub_directory() -> anyhow::Result<()> { #[test] fn test_include_hidden_files_by_default() -> anyhow::Result<()> { let case = CliTest::with_files([(".test.py", "~")])?; - assert_cmd_snapshot!(case.command(), @r" + assert_cmd_snapshot!(case.command(), @" success: false exit_code: 1 ----- stdout ----- @@ -139,7 +139,7 @@ fn test_include_hidden_files_by_default() -> anyhow::Result<()> { fn test_respect_ignore_files() -> anyhow::Result<()> { // First test that the default option works correctly (the file is skipped) let case = CliTest::with_files([(".ignore", "test.py"), ("test.py", "~")])?; - assert_cmd_snapshot!(case.command(), @r###" + assert_cmd_snapshot!(case.command(), @" success: true exit_code: 0 ----- stdout ----- @@ -147,10 +147,10 @@ fn test_respect_ignore_files() -> anyhow::Result<()> { ----- stderr ----- WARN No python files found under the given path(s) - "###); + "); // Test that we can set to false via CLI - assert_cmd_snapshot!(case.command().arg("--no-respect-ignore-files"), @r" + assert_cmd_snapshot!(case.command().arg("--no-respect-ignore-files"), @" success: false exit_code: 1 ----- stdout ----- @@ -168,7 +168,7 @@ fn test_respect_ignore_files() -> anyhow::Result<()> { // Test that we can set to false via config file case.write_file("ty.toml", "src.respect-ignore-files = false")?; - assert_cmd_snapshot!(case.command(), @r" + assert_cmd_snapshot!(case.command(), @" success: false exit_code: 1 ----- stdout ----- @@ -186,7 +186,7 @@ fn test_respect_ignore_files() -> anyhow::Result<()> { // Ensure CLI takes precedence case.write_file("ty.toml", "src.respect-ignore-files = true")?; - assert_cmd_snapshot!(case.command().arg("--no-respect-ignore-files"), @r" + assert_cmd_snapshot!(case.command().arg("--no-respect-ignore-files"), @" success: false exit_code: 1 ----- stdout ----- @@ -247,7 +247,7 @@ fn cli_arguments_are_relative_to_the_current_directory() -> anyhow::Result<()> { ])?; // Make sure that the CLI fails when the `libs` directory is not in the search path. - assert_cmd_snapshot!(case.command().current_dir(case.root().join("child")), @r###" + assert_cmd_snapshot!(case.command().current_dir(case.root().join("child")), @" success: false exit_code: 1 ----- stdout ----- @@ -268,16 +268,16 @@ fn cli_arguments_are_relative_to_the_current_directory() -> anyhow::Result<()> { Found 1 diagnostic ----- stderr ----- - "###); + "); - assert_cmd_snapshot!(case.command().current_dir(case.root().join("child")).arg("--extra-search-path").arg("../libs"), @r###" + assert_cmd_snapshot!(case.command().current_dir(case.root().join("child")).arg("--extra-search-path").arg("../libs"), @" success: true exit_code: 0 ----- stdout ----- All checks passed! ----- stderr ----- - "###); + "); Ok(()) } @@ -323,14 +323,14 @@ fn paths_in_configuration_files_are_relative_to_the_project_root() -> anyhow::Re ), ])?; - assert_cmd_snapshot!(case.command().current_dir(case.root().join("child")), @r###" + assert_cmd_snapshot!(case.command().current_dir(case.root().join("child")), @" success: true exit_code: 0 ----- stdout ----- All checks passed! ----- stderr ----- - "###); + "); Ok(()) } @@ -367,7 +367,7 @@ fn user_configuration() -> anyhow::Result<()> { assert_cmd_snapshot!( case.command().current_dir(case.root().join("project")).env(config_env_var, config_directory.as_os_str()), - @r###" + @" success: false exit_code: 1 ----- stdout ----- @@ -394,7 +394,7 @@ fn user_configuration() -> anyhow::Result<()> { Found 2 diagnostics ----- stderr ----- - "### + " ); // The user-level configuration sets the severity for `unresolved-reference` to warn. @@ -411,7 +411,7 @@ fn user_configuration() -> anyhow::Result<()> { assert_cmd_snapshot!( case.command().current_dir(case.root().join("project")).env(config_env_var, config_directory.as_os_str()), - @r###" + @" success: true exit_code: 0 ----- stdout ----- @@ -438,7 +438,7 @@ fn user_configuration() -> anyhow::Result<()> { Found 2 diagnostics ----- stderr ----- - "### + " ); Ok(()) @@ -471,7 +471,7 @@ fn check_specific_paths() -> anyhow::Result<()> { assert_cmd_snapshot!( case.command(), - @r###" + @" success: false exit_code: 1 ----- stdout ----- @@ -504,14 +504,14 @@ fn check_specific_paths() -> anyhow::Result<()> { Found 2 diagnostics ----- stderr ----- - "### + " ); // Now check only the `tests` and `other.py` files. // We should no longer see any diagnostics related to `main.py`. assert_cmd_snapshot!( case.command().arg("project/tests").arg("project/other.py"), - @r###" + @" success: false exit_code: 1 ----- stdout ----- @@ -544,7 +544,7 @@ fn check_specific_paths() -> anyhow::Result<()> { Found 2 diagnostics ----- stderr ----- - "### + " ); Ok(()) @@ -563,7 +563,7 @@ fn check_non_existing_path() -> anyhow::Result<()> { assert_cmd_snapshot!( case.command().arg("project/main.py").arg("project/tests"), - @r" + @" success: false exit_code: 2 ----- stdout ----- @@ -587,7 +587,7 @@ fn check_file_without_extension() -> anyhow::Result<()> { assert_cmd_snapshot!( case.command().arg("main"), - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -614,7 +614,7 @@ fn check_file_without_extension_in_subfolder() -> anyhow::Result<()> { assert_cmd_snapshot!( case.command().arg("src"), - @r" + @" success: true exit_code: 0 ----- stdout ----- @@ -638,7 +638,7 @@ fn concise_diagnostics() -> anyhow::Result<()> { "#, )?; - assert_cmd_snapshot!(case.command().arg("--output-format=concise").arg("--warn").arg("unresolved-reference"), @r###" + assert_cmd_snapshot!(case.command().arg("--output-format=concise").arg("--warn").arg("unresolved-reference"), @" success: false exit_code: 1 ----- stdout ----- @@ -647,7 +647,7 @@ fn concise_diagnostics() -> anyhow::Result<()> { Found 2 diagnostics ----- stderr ----- - "###); + "); Ok(()) } @@ -750,7 +750,7 @@ fn github_diagnostics() -> anyhow::Result<()> { "#, )?; - assert_cmd_snapshot!(case.command().arg("--output-format=github").arg("--warn").arg("unresolved-reference"), @r" + assert_cmd_snapshot!(case.command().arg("--output-format=github").arg("--warn").arg("unresolved-reference"), @" success: false exit_code: 1 ----- stdout ----- @@ -784,7 +784,7 @@ fn concise_revealed_type() -> anyhow::Result<()> { "#, )?; - assert_cmd_snapshot!(case.command().arg("--output-format=concise"), @r###" + assert_cmd_snapshot!(case.command().arg("--output-format=concise"), @r#" success: true exit_code: 0 ----- stdout ----- @@ -792,7 +792,7 @@ fn concise_revealed_type() -> anyhow::Result<()> { Found 1 diagnostic ----- stderr ----- - "###); + "#); Ok(()) } @@ -812,7 +812,7 @@ fn can_handle_large_binop_expressions() -> anyhow::Result<()> { let case = CliTest::with_file("test.py", &ruff_python_trivia::textwrap::dedent(&content))?; - assert_cmd_snapshot!(case.command(), @r###" + assert_cmd_snapshot!(case.command(), @" success: true exit_code: 0 ----- stdout ----- @@ -828,7 +828,7 @@ fn can_handle_large_binop_expressions() -> anyhow::Result<()> { Found 1 diagnostic ----- stderr ----- - "###); + "); Ok(()) } diff --git a/crates/ty/tests/cli/python_environment.rs b/crates/ty/tests/cli/python_environment.rs index 5be56716b3..d8240fd034 100644 --- a/crates/ty/tests/cli/python_environment.rs +++ b/crates/ty/tests/cli/python_environment.rs @@ -52,14 +52,14 @@ fn config_override_python_version() -> anyhow::Result<()> { ----- stderr ----- "#); - assert_cmd_snapshot!(case.command().arg("--python-version").arg("3.12"), @r###" + assert_cmd_snapshot!(case.command().arg("--python-version").arg("3.12"), @" success: true exit_code: 0 ----- stdout ----- All checks passed! ----- stderr ----- - "###); + "); Ok(()) } @@ -86,7 +86,7 @@ fn config_override_python_platform() -> anyhow::Result<()> { ), ])?; - assert_cmd_snapshot!(case.command(), @r###" + assert_cmd_snapshot!(case.command(), @r#" success: true exit_code: 0 ----- stdout ----- @@ -102,9 +102,9 @@ fn config_override_python_platform() -> anyhow::Result<()> { Found 1 diagnostic ----- stderr ----- - "###); + "#); - assert_cmd_snapshot!(case.command().arg("--python-platform").arg("all"), @r###" + assert_cmd_snapshot!(case.command().arg("--python-platform").arg("all"), @" success: true exit_code: 0 ----- stdout ----- @@ -120,7 +120,7 @@ fn config_override_python_platform() -> anyhow::Result<()> { Found 1 diagnostic ----- stderr ----- - "###); + "); Ok(()) } @@ -168,7 +168,7 @@ fn config_file_annotation_showing_where_python_version_set_typing_error() -> any ----- stderr ----- "#); - assert_cmd_snapshot!(case.command().arg("--python-version=3.9"), @r###" + assert_cmd_snapshot!(case.command().arg("--python-version=3.9"), @" success: false exit_code: 1 ----- stdout ----- @@ -185,7 +185,7 @@ fn config_file_annotation_showing_where_python_version_set_typing_error() -> any Found 1 diagnostic ----- stderr ----- - "###); + "); Ok(()) } @@ -203,7 +203,7 @@ fn src_subdirectory_takes_precedence_over_repo_root() -> anyhow::Result<()> { // If `./src` didn't take priority over `.` here, we would report // "Module `src.package` has no member `nonexistent_submodule`" // instead of "Module `package` has no member `nonexistent_submodule`". - assert_cmd_snapshot!(case.command(), @r###" + assert_cmd_snapshot!(case.command(), @" success: false exit_code: 1 ----- stdout ----- @@ -218,7 +218,7 @@ fn src_subdirectory_takes_precedence_over_repo_root() -> anyhow::Result<()> { Found 1 diagnostic ----- stderr ----- - "###); + "); Ok(()) } @@ -243,7 +243,7 @@ fn python_version_inferred_from_system_installation() -> anyhow::Result<()> { ("test.py", "aiter"), ])?; - assert_cmd_snapshot!(cpython_case.command().arg("--python").arg("pythons/Python3.8/bin/python"), @r###" + assert_cmd_snapshot!(cpython_case.command().arg("--python").arg("pythons/Python3.8/bin/python"), @" success: false exit_code: 1 ----- stdout ----- @@ -262,7 +262,7 @@ fn python_version_inferred_from_system_installation() -> anyhow::Result<()> { Found 1 diagnostic ----- stderr ----- - "###); + "); let pypy_case = CliTest::with_files([ ("pythons/pypy3.8/bin/python", ""), @@ -270,7 +270,7 @@ fn python_version_inferred_from_system_installation() -> anyhow::Result<()> { ("test.py", "aiter"), ])?; - assert_cmd_snapshot!(pypy_case.command().arg("--python").arg("pythons/pypy3.8/bin/python"), @r###" + assert_cmd_snapshot!(pypy_case.command().arg("--python").arg("pythons/pypy3.8/bin/python"), @" success: false exit_code: 1 ----- stdout ----- @@ -289,7 +289,7 @@ fn python_version_inferred_from_system_installation() -> anyhow::Result<()> { Found 1 diagnostic ----- stderr ----- - "###); + "); let free_threaded_case = CliTest::with_files([ ("pythons/Python3.13t/bin/python", ""), @@ -300,7 +300,7 @@ fn python_version_inferred_from_system_installation() -> anyhow::Result<()> { ("test.py", "import string.templatelib"), ])?; - assert_cmd_snapshot!(free_threaded_case.command().arg("--python").arg("pythons/Python3.13t/bin/python"), @r###" + assert_cmd_snapshot!(free_threaded_case.command().arg("--python").arg("pythons/Python3.13t/bin/python"), @" success: false exit_code: 1 ----- stdout ----- @@ -319,7 +319,7 @@ fn python_version_inferred_from_system_installation() -> anyhow::Result<()> { Found 1 diagnostic ----- stderr ----- - "###); + "); Ok(()) } @@ -384,7 +384,7 @@ import colorama // Try all 4 pythons with absolute paths to our fauxbrew install assert_cmd_snapshot!(case.command() .current_dir(case.root().join("project")) - .arg("--python").arg(case.root().join("opt/homebrew/bin/python3")), @r" + .arg("--python").arg(case.root().join("opt/homebrew/bin/python3")), @" success: false exit_code: 1 ----- stdout ----- @@ -425,7 +425,7 @@ import colorama assert_cmd_snapshot!(case.command() .current_dir(case.root().join("project")) - .arg("--python").arg(case.root().join("opt/homebrew/Cellar/python@3.13/3.13.5/bin/python3")), @r" + .arg("--python").arg(case.root().join("opt/homebrew/Cellar/python@3.13/3.13.5/bin/python3")), @" success: false exit_code: 1 ----- stdout ----- @@ -466,7 +466,7 @@ import colorama assert_cmd_snapshot!(case.command() .current_dir(case.root().join("project")) - .arg("--python").arg(case.root().join("opt/homebrew/Cellar/python@3.13/3.13.5/Frameworks/Python.framework/Versions/3.13/bin/python3")), @r" + .arg("--python").arg(case.root().join("opt/homebrew/Cellar/python@3.13/3.13.5/Frameworks/Python.framework/Versions/3.13/bin/python3")), @" success: false exit_code: 1 ----- stdout ----- @@ -507,7 +507,7 @@ import colorama assert_cmd_snapshot!(case.command() .current_dir(case.root().join("project")) - .arg("--python").arg(case.root().join("opt/homebrew/Cellar/python@3.13/3.13.5/Frameworks/Python.framework/Versions/3.13/bin/python3.13")), @r" + .arg("--python").arg(case.root().join("opt/homebrew/Cellar/python@3.13/3.13.5/Frameworks/Python.framework/Versions/3.13/bin/python3.13")), @" success: false exit_code: 1 ----- stdout ----- @@ -579,7 +579,7 @@ import bar", "strange-venv-location/bin/python", )?; - assert_cmd_snapshot!(case.command().arg("--python").arg("strange-venv-location/bin/python"), @r###" + assert_cmd_snapshot!(case.command().arg("--python").arg("strange-venv-location/bin/python"), @" success: false exit_code: 1 ----- stdout ----- @@ -600,7 +600,7 @@ import bar", Found 1 diagnostic ----- stderr ----- - "###); + "); Ok(()) } @@ -628,7 +628,7 @@ fn lib64_site_packages_directory_on_unix() -> anyhow::Result<()> { ("test.py", "import foo, bar, baz"), ])?; - assert_cmd_snapshot!(case.command().arg("--python").arg(".venv"), @r###" + assert_cmd_snapshot!(case.command().arg("--python").arg(".venv"), @" success: false exit_code: 1 ----- stdout ----- @@ -649,7 +649,7 @@ fn lib64_site_packages_directory_on_unix() -> anyhow::Result<()> { Found 1 diagnostic ----- stderr ----- - "###); + "); Ok(()) } @@ -675,7 +675,7 @@ fn many_search_paths() -> anyhow::Result<()> { .arg("--extra-search-path").arg("extra4") .arg("--extra-search-path").arg("extra5") .arg("--extra-search-path").arg("extra6"), - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -711,7 +711,7 @@ fn many_search_paths() -> anyhow::Result<()> { .arg("--extra-search-path").arg("extra5") .arg("--extra-search-path").arg("extra6") .arg("-v"), - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -772,7 +772,7 @@ fn pyvenv_cfg_file_annotation_showing_where_python_version_set() -> anyhow::Resu ("test.py", "aiter"), ])?; - assert_cmd_snapshot!(case.command(), @r" + assert_cmd_snapshot!(case.command(), @" success: false exit_code: 1 ----- stdout ----- @@ -831,7 +831,7 @@ fn pyvenv_cfg_file_annotation_no_trailing_newline() -> anyhow::Result<()> { ("test.py", "aiter"), ])?; - assert_cmd_snapshot!(case.command(), @r" + assert_cmd_snapshot!(case.command(), @" success: false exit_code: 1 ----- stdout ----- @@ -906,7 +906,7 @@ fn config_file_annotation_showing_where_python_version_set_syntax_error() -> any ----- stderr ----- "#); - assert_cmd_snapshot!(case.command().arg("--python-version=3.9"), @r" + assert_cmd_snapshot!(case.command().arg("--python-version=3.9"), @" success: false exit_code: 1 ----- stdout ----- @@ -953,27 +953,27 @@ fn python_cli_argument_virtual_environment() -> anyhow::Result<()> { ])?; // Passing a path to the installation works - assert_cmd_snapshot!(case.command().arg("--python").arg("my-venv"), @r###" + assert_cmd_snapshot!(case.command().arg("--python").arg("my-venv"), @" success: true exit_code: 0 ----- stdout ----- All checks passed! ----- stderr ----- - "###); + "); // And so does passing a path to the executable inside the installation - assert_cmd_snapshot!(case.command().arg("--python").arg(path_to_executable), @r###" + assert_cmd_snapshot!(case.command().arg("--python").arg(path_to_executable), @" success: true exit_code: 0 ----- stdout ----- All checks passed! ----- stderr ----- - "###); + "); // But random other paths inside the installation are rejected - assert_cmd_snapshot!(case.command().arg("--python").arg(other_venv_path), @r###" + assert_cmd_snapshot!(case.command().arg("--python").arg(other_venv_path), @" success: false exit_code: 2 ----- stdout ----- @@ -981,10 +981,10 @@ fn python_cli_argument_virtual_environment() -> anyhow::Result<()> { ----- stderr ----- ty failed Cause: Invalid `--python` argument `/my-venv/foo/some_other_file.txt`: does not point to a Python executable or a directory on disk - "###); + "); // And so are paths that do not exist on disk - assert_cmd_snapshot!(case.command().arg("--python").arg("not-a-directory-or-executable"), @r###" + assert_cmd_snapshot!(case.command().arg("--python").arg("not-a-directory-or-executable"), @" success: false exit_code: 2 ----- stdout ----- @@ -993,7 +993,7 @@ fn python_cli_argument_virtual_environment() -> anyhow::Result<()> { ty failed Cause: Invalid `--python` argument `/not-a-directory-or-executable`: does not point to a Python executable or a directory on disk Cause: No such file or directory (os error 2) - "###); + "); Ok(()) } @@ -1020,24 +1020,24 @@ fn python_cli_argument_system_installation() -> anyhow::Result<()> { ])?; // Passing a path to the installation works - assert_cmd_snapshot!(case.command().arg("--python").arg("Python3.11"), @r###" + assert_cmd_snapshot!(case.command().arg("--python").arg("Python3.11"), @" success: true exit_code: 0 ----- stdout ----- All checks passed! ----- stderr ----- - "###); + "); // And so does passing a path to the executable inside the installation - assert_cmd_snapshot!(case.command().arg("--python").arg(path_to_executable), @r###" + assert_cmd_snapshot!(case.command().arg("--python").arg(path_to_executable), @" success: true exit_code: 0 ----- stdout ----- All checks passed! ----- stderr ----- - "###); + "); Ok(()) } @@ -1063,7 +1063,7 @@ fn config_file_broken_python_setting() -> anyhow::Result<()> { ("test.py", ""), ])?; - assert_cmd_snapshot!(case.command(), @r###" + assert_cmd_snapshot!(case.command(), @r#" success: false exit_code: 2 ----- stdout ----- @@ -1081,7 +1081,7 @@ fn config_file_broken_python_setting() -> anyhow::Result<()> { | Cause: No such file or directory (os error 2) - "###); + "#); Ok(()) } @@ -1100,7 +1100,7 @@ fn config_file_python_setting_directory_with_no_site_packages() -> anyhow::Resul ("test.py", ""), ])?; - assert_cmd_snapshot!(case.command(), @r###" + assert_cmd_snapshot!(case.command(), @r#" success: false exit_code: 2 ----- stdout ----- @@ -1117,7 +1117,7 @@ fn config_file_python_setting_directory_with_no_site_packages() -> anyhow::Resul 3 | python = "directory-but-no-site-packages" | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Could not find a `site-packages` directory for this Python installation/executable | - "###); + "#); Ok(()) } @@ -1138,7 +1138,7 @@ fn unix_system_installation_with_no_lib_directory() -> anyhow::Result<()> { ("test.py", ""), ])?; - assert_cmd_snapshot!(case.command(), @r###" + assert_cmd_snapshot!(case.command(), @r#" success: false exit_code: 2 ----- stdout ----- @@ -1155,7 +1155,7 @@ fn unix_system_installation_with_no_lib_directory() -> anyhow::Result<()> { 3 | python = "directory-but-no-site-packages" | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | - "###); + "#); Ok(()) } @@ -1256,14 +1256,14 @@ fn defaults_to_a_new_python_version() -> anyhow::Result<()> { ), ])?; - assert_cmd_snapshot!(case.command(), @r###" + assert_cmd_snapshot!(case.command(), @" success: true exit_code: 0 ----- stdout ----- All checks passed! ----- stderr ----- - "###); + "); Ok(()) } @@ -1417,7 +1417,7 @@ home = ./ // Run with nothing set, should find the working venv assert_cmd_snapshot!(case.command() - .current_dir(case.root().join("project")), @r###" + .current_dir(case.root().join("project")), @" success: false exit_code: 1 ----- stdout ----- @@ -1435,12 +1435,12 @@ home = ./ Found 1 diagnostic ----- stderr ----- - "###); + "); // Run with VIRTUAL_ENV set, should find the active venv assert_cmd_snapshot!(case.command() .current_dir(case.root().join("project")) - .env("VIRTUAL_ENV", case.root().join("myvenv")), @r###" + .env("VIRTUAL_ENV", case.root().join("myvenv")), @" success: false exit_code: 1 ----- stdout ----- @@ -1457,12 +1457,12 @@ home = ./ Found 1 diagnostic ----- stderr ----- - "###); + "); // run with CONDA_PREFIX set, should find the child conda assert_cmd_snapshot!(case.command() .current_dir(case.root().join("project")) - .env("CONDA_PREFIX", case.root().join("conda/envs/conda-env")), @r###" + .env("CONDA_PREFIX", case.root().join("conda/envs/conda-env")), @" success: false exit_code: 1 ----- stdout ----- @@ -1480,13 +1480,13 @@ home = ./ Found 1 diagnostic ----- stderr ----- - "###); + "); // run with CONDA_PREFIX and CONDA_DEFAULT_ENV set (unequal), should find working venv assert_cmd_snapshot!(case.command() .current_dir(case.root().join("project")) .env("CONDA_PREFIX", case.root().join("conda")) - .env("CONDA_DEFAULT_ENV", "base"), @r###" + .env("CONDA_DEFAULT_ENV", "base"), @" success: false exit_code: 1 ----- stdout ----- @@ -1504,7 +1504,7 @@ home = ./ Found 1 diagnostic ----- stderr ----- - "###); + "); // run with CONDA_PREFIX and CONDA_DEFAULT_ENV (unequal) and VIRTUAL_ENV set, // should find child active venv @@ -1512,7 +1512,7 @@ home = ./ .current_dir(case.root().join("project")) .env("CONDA_PREFIX", case.root().join("conda")) .env("CONDA_DEFAULT_ENV", "base") - .env("VIRTUAL_ENV", case.root().join("myvenv")), @r###" + .env("VIRTUAL_ENV", case.root().join("myvenv")), @" success: false exit_code: 1 ----- stdout ----- @@ -1529,13 +1529,13 @@ home = ./ Found 1 diagnostic ----- stderr ----- - "###); + "); // run with CONDA_PREFIX and CONDA_DEFAULT_ENV (equal!) set, should find ChildConda assert_cmd_snapshot!(case.command() .current_dir(case.root().join("project")) .env("CONDA_PREFIX", case.root().join("conda/envs/conda-env")) - .env("CONDA_DEFAULT_ENV", "conda-env"), @r###" + .env("CONDA_DEFAULT_ENV", "conda-env"), @" success: false exit_code: 1 ----- stdout ----- @@ -1553,13 +1553,13 @@ home = ./ Found 1 diagnostic ----- stderr ----- - "###); + "); // run with _CONDA_ROOT and CONDA_PREFIX (unequal!) set, should find ChildConda assert_cmd_snapshot!(case.command() .current_dir(case.root().join("project")) .env("CONDA_PREFIX", case.root().join("conda/envs/conda-env")) - .env("_CONDA_ROOT", "conda"), @r###" + .env("_CONDA_ROOT", "conda"), @" success: false exit_code: 1 ----- stdout ----- @@ -1577,13 +1577,13 @@ home = ./ Found 1 diagnostic ----- stderr ----- - "###); + "); // run with _CONDA_ROOT and CONDA_PREFIX (equal!) set, should find BaseConda assert_cmd_snapshot!(case.command() .current_dir(case.root().join("project")) .env("CONDA_PREFIX", case.root().join("conda")) - .env("_CONDA_ROOT", "conda"), @r###" + .env("_CONDA_ROOT", "conda"), @" success: false exit_code: 1 ----- stdout ----- @@ -1600,7 +1600,7 @@ home = ./ Found 1 diagnostic ----- stderr ----- - "###); + "); Ok(()) } @@ -1673,7 +1673,7 @@ home = ./ // Run with nothing set, should fail to find anything assert_cmd_snapshot!(case.command() - .current_dir(case.root().join("project")), @r###" + .current_dir(case.root().join("project")), @" success: false exit_code: 1 ----- stdout ----- @@ -1738,12 +1738,12 @@ home = ./ Found 4 diagnostics ----- stderr ----- - "###); + "); // Run with VIRTUAL_ENV set, should find the active venv assert_cmd_snapshot!(case.command() .current_dir(case.root().join("project")) - .env("VIRTUAL_ENV", case.root().join("myvenv")), @r###" + .env("VIRTUAL_ENV", case.root().join("myvenv")), @" success: false exit_code: 1 ----- stdout ----- @@ -1760,12 +1760,12 @@ home = ./ Found 1 diagnostic ----- stderr ----- - "###); + "); // run with CONDA_PREFIX set, should find the child conda assert_cmd_snapshot!(case.command() .current_dir(case.root().join("project")) - .env("CONDA_PREFIX", case.root().join("conda/envs/conda-env")), @r###" + .env("CONDA_PREFIX", case.root().join("conda/envs/conda-env")), @" success: false exit_code: 1 ----- stdout ----- @@ -1783,13 +1783,13 @@ home = ./ Found 1 diagnostic ----- stderr ----- - "###); + "); // run with CONDA_PREFIX and CONDA_DEFAULT_ENV set (unequal), should find base conda assert_cmd_snapshot!(case.command() .current_dir(case.root().join("project")) .env("CONDA_PREFIX", case.root().join("conda")) - .env("CONDA_DEFAULT_ENV", "base"), @r###" + .env("CONDA_DEFAULT_ENV", "base"), @" success: false exit_code: 1 ----- stdout ----- @@ -1806,7 +1806,7 @@ home = ./ Found 1 diagnostic ----- stderr ----- - "###); + "); // run with CONDA_PREFIX and CONDA_DEFAULT_ENV (unequal) and VIRTUAL_ENV set, // should find child active venv @@ -1814,7 +1814,7 @@ home = ./ .current_dir(case.root().join("project")) .env("CONDA_PREFIX", case.root().join("conda")) .env("CONDA_DEFAULT_ENV", "base") - .env("VIRTUAL_ENV", case.root().join("myvenv")), @r###" + .env("VIRTUAL_ENV", case.root().join("myvenv")), @" success: false exit_code: 1 ----- stdout ----- @@ -1831,13 +1831,13 @@ home = ./ Found 1 diagnostic ----- stderr ----- - "###); + "); // run with CONDA_PREFIX and CONDA_DEFAULT_ENV (unequal!) set, should find base conda assert_cmd_snapshot!(case.command() .current_dir(case.root().join("project")) .env("CONDA_PREFIX", case.root().join("conda")) - .env("CONDA_DEFAULT_ENV", "base"), @r###" + .env("CONDA_DEFAULT_ENV", "base"), @" success: false exit_code: 1 ----- stdout ----- @@ -1854,13 +1854,13 @@ home = ./ Found 1 diagnostic ----- stderr ----- - "###); + "); // run with _CONDA_ROOT and CONDA_PREFIX (unequal!) set, should find ChildConda assert_cmd_snapshot!(case.command() .current_dir(case.root().join("project")) .env("CONDA_PREFIX", case.root().join("conda/envs/conda-env")) - .env("_CONDA_ROOT", "conda"), @r###" + .env("_CONDA_ROOT", "conda"), @" success: false exit_code: 1 ----- stdout ----- @@ -1878,13 +1878,13 @@ home = ./ Found 1 diagnostic ----- stderr ----- - "###); + "); // run with _CONDA_ROOT and CONDA_PREFIX (equal!) set, should find BaseConda assert_cmd_snapshot!(case.command() .current_dir(case.root().join("project")) .env("CONDA_PREFIX", case.root().join("conda")) - .env("_CONDA_ROOT", "conda"), @r###" + .env("_CONDA_ROOT", "conda"), @" success: false exit_code: 1 ----- stdout ----- @@ -1901,7 +1901,7 @@ home = ./ Found 1 diagnostic ----- stderr ----- - "###); + "); Ok(()) } @@ -1941,14 +1941,14 @@ fn ty_environment_is_only_environment() -> anyhow::Result<()> { ])?; let case = case.with_ty_at(ty_executable_path)?; - assert_cmd_snapshot!(case.command(), @r###" + assert_cmd_snapshot!(case.command(), @" success: true exit_code: 0 ----- stdout ----- All checks passed! ----- stderr ----- - "###); + "); Ok(()) } @@ -2019,7 +2019,7 @@ fn ty_environment_and_discovered_venv() -> anyhow::Result<()> { ])? .with_ty_at(ty_executable_path)?; - assert_cmd_snapshot!(case.command(), @r###" + assert_cmd_snapshot!(case.command(), @" success: false exit_code: 1 ----- stdout ----- @@ -2036,7 +2036,7 @@ fn ty_environment_and_discovered_venv() -> anyhow::Result<()> { Found 1 diagnostic ----- stderr ----- - "###); + "); Ok(()) } @@ -2096,7 +2096,7 @@ fn ty_environment_and_active_environment() -> anyhow::Result<()> { assert_cmd_snapshot!( case.command() .env("VIRTUAL_ENV", case.root().join("active-venv")), - @r" + @" success: false exit_code: 1 ----- stdout ----- @@ -2154,7 +2154,7 @@ fn ty_environment_is_system_not_virtual() -> anyhow::Result<()> { ])? .with_ty_at(ty_executable_path)?; - assert_cmd_snapshot!(case.command(), @r###" + assert_cmd_snapshot!(case.command(), @" success: false exit_code: 1 ----- stdout ----- @@ -2173,7 +2173,7 @@ fn ty_environment_is_system_not_virtual() -> anyhow::Result<()> { Found 1 diagnostic ----- stderr ----- - "###); + "); Ok(()) } @@ -2191,7 +2191,7 @@ fn src_root_deprecation_warning() -> anyhow::Result<()> { ("src/test.py", ""), ])?; - assert_cmd_snapshot!(case.command(), @r###" + assert_cmd_snapshot!(case.command(), @r#" success: true exit_code: 0 ----- stdout ----- @@ -2206,7 +2206,7 @@ fn src_root_deprecation_warning() -> anyhow::Result<()> { Found 1 diagnostic ----- stderr ----- - "###); + "#); Ok(()) } @@ -2227,7 +2227,7 @@ fn src_root_deprecation_warning_with_environment_root() -> anyhow::Result<()> { ("app/test.py", ""), ])?; - assert_cmd_snapshot!(case.command(), @r###" + assert_cmd_snapshot!(case.command(), @r#" success: true exit_code: 0 ----- stdout ----- @@ -2245,7 +2245,7 @@ fn src_root_deprecation_warning_with_environment_root() -> anyhow::Result<()> { Found 1 diagnostic ----- stderr ----- - "###); + "#); Ok(()) } @@ -2272,7 +2272,7 @@ fn environment_root_takes_precedence_over_src_root() -> anyhow::Result<()> { // The test should pass because environment.root points to ./app where my_module.py exists // If src.root took precedence, it would fail because my_module.py doesn't exist in ./src - assert_cmd_snapshot!(case.command(), @r###" + assert_cmd_snapshot!(case.command(), @r#" success: true exit_code: 0 ----- stdout ----- @@ -2290,7 +2290,7 @@ fn environment_root_takes_precedence_over_src_root() -> anyhow::Result<()> { Found 1 diagnostic ----- stderr ----- - "###); + "#); Ok(()) } @@ -2311,14 +2311,14 @@ fn default_root_src_layout() -> anyhow::Result<()> { ), ])?; - assert_cmd_snapshot!(case.command(), @r###" + assert_cmd_snapshot!(case.command(), @" success: true exit_code: 0 ----- stdout ----- All checks passed! ----- stderr ----- - "###); + "); Ok(()) } @@ -2346,14 +2346,14 @@ fn default_root_project_name_folder() -> anyhow::Result<()> { ), ])?; - assert_cmd_snapshot!(case.command(), @r###" + assert_cmd_snapshot!(case.command(), @" success: true exit_code: 0 ----- stdout ----- All checks passed! ----- stderr ----- - "###); + "); Ok(()) } @@ -2374,14 +2374,14 @@ fn default_root_flat_layout() -> anyhow::Result<()> { ), ])?; - assert_cmd_snapshot!(case.command(), @r###" + assert_cmd_snapshot!(case.command(), @" success: true exit_code: 0 ----- stdout ----- All checks passed! ----- stderr ----- - "###); + "); Ok(()) } @@ -2402,14 +2402,14 @@ fn default_root_tests_folder() -> anyhow::Result<()> { ), ])?; - assert_cmd_snapshot!(case.command(), @r###" + assert_cmd_snapshot!(case.command(), @" success: true exit_code: 0 ----- stdout ----- All checks passed! ----- stderr ----- - "###); + "); Ok(()) } @@ -2432,7 +2432,7 @@ fn default_root_tests_package() -> anyhow::Result<()> { ), ])?; - assert_cmd_snapshot!(case.command(), @r###" + assert_cmd_snapshot!(case.command(), @r#" success: false exit_code: 1 ----- stdout ----- @@ -2455,7 +2455,7 @@ fn default_root_tests_package() -> anyhow::Result<()> { Found 1 diagnostic ----- stderr ----- - "###); + "#); Ok(()) } @@ -2476,14 +2476,14 @@ fn default_root_python_folder() -> anyhow::Result<()> { ), ])?; - assert_cmd_snapshot!(case.command(), @r###" + assert_cmd_snapshot!(case.command(), @" success: true exit_code: 0 ----- stdout ----- All checks passed! ----- stderr ----- - "###); + "); Ok(()) } @@ -2506,7 +2506,7 @@ fn default_root_python_package() -> anyhow::Result<()> { ), ])?; - assert_cmd_snapshot!(case.command(), @r###" + assert_cmd_snapshot!(case.command(), @r#" success: false exit_code: 1 ----- stdout ----- @@ -2529,7 +2529,7 @@ fn default_root_python_package() -> anyhow::Result<()> { Found 1 diagnostic ----- stderr ----- - "###); + "#); Ok(()) } @@ -2552,7 +2552,7 @@ fn default_root_python_package_pyi() -> anyhow::Result<()> { ), ])?; - assert_cmd_snapshot!(case.command(), @r###" + assert_cmd_snapshot!(case.command(), @r#" success: false exit_code: 1 ----- stdout ----- @@ -2575,7 +2575,7 @@ fn default_root_python_package_pyi() -> anyhow::Result<()> { Found 1 diagnostic ----- stderr ----- - "###); + "#); Ok(()) } @@ -2594,7 +2594,7 @@ fn pythonpath_is_respected() -> anyhow::Result<()> { ])?; assert_cmd_snapshot!(case.command(), - @r###" + @r#" success: false exit_code: 1 ----- stdout ----- @@ -2615,18 +2615,18 @@ fn pythonpath_is_respected() -> anyhow::Result<()> { Found 1 diagnostic ----- stderr ----- - "###); + "#); assert_cmd_snapshot!(case.command() .env("PYTHONPATH", case.root().join("baz-dir")), - @r###" + @" success: true exit_code: 0 ----- stdout ----- All checks passed! ----- stderr ----- - "###); + "); Ok(()) } @@ -2649,7 +2649,7 @@ fn pythonpath_multiple_dirs_is_respected() -> anyhow::Result<()> { ])?; assert_cmd_snapshot!(case.command(), - @r###" + @r#" success: false exit_code: 1 ----- stdout ----- @@ -2686,20 +2686,20 @@ fn pythonpath_multiple_dirs_is_respected() -> anyhow::Result<()> { Found 2 diagnostics ----- stderr ----- - "###); + "#); let pythonpath = std::env::join_paths([case.root().join("baz-dir"), case.root().join("foo-dir")])?; assert_cmd_snapshot!(case.command() .env("PYTHONPATH", pythonpath), - @r###" + @" success: true exit_code: 0 ----- stdout ----- All checks passed! ----- stderr ----- - "###); + "); Ok(()) } @@ -2737,7 +2737,7 @@ home = ./ assert_cmd_snapshot!(case.command() .current_dir(case.root().join("project")) - .env("VIRTUAL_ENV", case.root().join("nonexistent-venv")), @r" + .env("VIRTUAL_ENV", case.root().join("nonexistent-venv")), @" success: false exit_code: 2 ----- stdout ----- diff --git a/crates/ty/tests/cli/rule_selection.rs b/crates/ty/tests/cli/rule_selection.rs index 4a4c26b69c..e0968bdd19 100644 --- a/crates/ty/tests/cli/rule_selection.rs +++ b/crates/ty/tests/cli/rule_selection.rs @@ -18,7 +18,7 @@ fn configuration_rule_severity() -> anyhow::Result<()> { )?; // Assert that there's an `unresolved-reference` diagnostic (error). - assert_cmd_snapshot!(case.command(), @r###" + assert_cmd_snapshot!(case.command(), @" success: false exit_code: 1 ----- stdout ----- @@ -35,7 +35,7 @@ fn configuration_rule_severity() -> anyhow::Result<()> { Found 1 diagnostic ----- stderr ----- - "###); + "); case.write_file( "pyproject.toml", @@ -46,7 +46,7 @@ fn configuration_rule_severity() -> anyhow::Result<()> { "#, )?; - assert_cmd_snapshot!(case.command(), @r###" + assert_cmd_snapshot!(case.command(), @" success: true exit_code: 0 ----- stdout ----- @@ -63,7 +63,7 @@ fn configuration_rule_severity() -> anyhow::Result<()> { Found 1 diagnostic ----- stderr ----- - "###); + "); Ok(()) } @@ -87,7 +87,7 @@ fn cli_rule_severity() -> anyhow::Result<()> { // Assert that there's an `unresolved-reference` diagnostic (error) // and an unresolved-import (error) diagnostic by default. - assert_cmd_snapshot!(case.command(), @r###" + assert_cmd_snapshot!(case.command(), @" success: false exit_code: 1 ----- stdout ----- @@ -118,7 +118,7 @@ fn cli_rule_severity() -> anyhow::Result<()> { Found 2 diagnostics ----- stderr ----- - "###); + "); assert_cmd_snapshot!( case @@ -129,7 +129,7 @@ fn cli_rule_severity() -> anyhow::Result<()> { .arg("division-by-zero") .arg("--warn") .arg("unresolved-import"), - @r###" + @" success: true exit_code: 0 ----- stdout ----- @@ -162,7 +162,7 @@ fn cli_rule_severity() -> anyhow::Result<()> { Found 2 diagnostics ----- stderr ----- - "### + " ); Ok(()) @@ -185,7 +185,7 @@ fn cli_rule_severity_precedence() -> anyhow::Result<()> { )?; // Assert that there's a `unresolved-reference` diagnostic (error) by default. - assert_cmd_snapshot!(case.command(), @r###" + assert_cmd_snapshot!(case.command(), @" success: false exit_code: 1 ----- stdout ----- @@ -202,7 +202,7 @@ fn cli_rule_severity_precedence() -> anyhow::Result<()> { Found 1 diagnostic ----- stderr ----- - "###); + "); assert_cmd_snapshot!( case @@ -213,7 +213,7 @@ fn cli_rule_severity_precedence() -> anyhow::Result<()> { .arg("division-by-zero") .arg("--ignore") .arg("unresolved-reference"), - @r###" + @" success: true exit_code: 0 ----- stdout ----- @@ -230,7 +230,7 @@ fn cli_rule_severity_precedence() -> anyhow::Result<()> { Found 1 diagnostic ----- stderr ----- - "### + " ); Ok(()) @@ -275,7 +275,7 @@ fn configuration_unknown_rules() -> anyhow::Result<()> { fn cli_unknown_rules() -> anyhow::Result<()> { let case = CliTest::with_file("test.py", "print(10)")?; - assert_cmd_snapshot!(case.command().arg("--ignore").arg("division-by-zer"), @r" + assert_cmd_snapshot!(case.command().arg("--ignore").arg("division-by-zer"), @" success: true exit_code: 0 ----- stdout ----- @@ -326,7 +326,7 @@ fn overrides_basic() -> anyhow::Result<()> { ), ])?; - assert_cmd_snapshot!(case.command(), @r###" + assert_cmd_snapshot!(case.command(), @" success: false exit_code: 1 ----- stdout ----- @@ -363,7 +363,7 @@ fn overrides_basic() -> anyhow::Result<()> { Found 3 diagnostics ----- stderr ----- - "###); + "); Ok(()) } @@ -405,7 +405,7 @@ fn overrides_precedence() -> anyhow::Result<()> { ), ])?; - assert_cmd_snapshot!(case.command(), @r###" + assert_cmd_snapshot!(case.command(), @" success: true exit_code: 0 ----- stdout ----- @@ -420,7 +420,7 @@ fn overrides_precedence() -> anyhow::Result<()> { Found 1 diagnostic ----- stderr ----- - "###); + "); Ok(()) } @@ -456,7 +456,7 @@ fn overrides_exclude() -> anyhow::Result<()> { ), ])?; - assert_cmd_snapshot!(case.command(), @r###" + assert_cmd_snapshot!(case.command(), @" success: false exit_code: 1 ----- stdout ----- @@ -479,7 +479,7 @@ fn overrides_exclude() -> anyhow::Result<()> { Found 2 diagnostics ----- stderr ----- - "###); + "); Ok(()) } @@ -519,7 +519,7 @@ fn overrides_inherit_global() -> anyhow::Result<()> { ), ])?; - assert_cmd_snapshot!(case.command(), @r###" + assert_cmd_snapshot!(case.command(), @" success: false exit_code: 1 ----- stdout ----- @@ -553,7 +553,7 @@ fn overrides_inherit_global() -> anyhow::Result<()> { Found 3 diagnostics ----- stderr ----- - "###); + "); Ok(()) } @@ -582,7 +582,7 @@ fn overrides_invalid_include_glob() -> anyhow::Result<()> { ), ])?; - assert_cmd_snapshot!(case.command(), @r###" + assert_cmd_snapshot!(case.command(), @r#" success: false exit_code: 2 ----- stdout ----- @@ -598,7 +598,7 @@ fn overrides_invalid_include_glob() -> anyhow::Result<()> { 7 | [tool.ty.overrides.rules] 8 | division-by-zero = "warn" | - "###); + "#); Ok(()) } @@ -628,7 +628,7 @@ fn overrides_invalid_exclude_glob() -> anyhow::Result<()> { ), ])?; - assert_cmd_snapshot!(case.command(), @r###" + assert_cmd_snapshot!(case.command(), @r#" success: false exit_code: 2 ----- stdout ----- @@ -645,7 +645,7 @@ fn overrides_invalid_exclude_glob() -> anyhow::Result<()> { 8 | [tool.ty.overrides.rules] 9 | division-by-zero = "warn" | - "###); + "#); Ok(()) } @@ -674,7 +674,7 @@ fn overrides_missing_include_exclude() -> anyhow::Result<()> { ), ])?; - assert_cmd_snapshot!(case.command(), @r###" + assert_cmd_snapshot!(case.command(), @r#" success: true exit_code: 0 ----- stdout ----- @@ -703,7 +703,7 @@ fn overrides_missing_include_exclude() -> anyhow::Result<()> { Found 2 diagnostics ----- stderr ----- - "###); + "#); Ok(()) } @@ -732,7 +732,7 @@ fn overrides_empty_include() -> anyhow::Result<()> { ), ])?; - assert_cmd_snapshot!(case.command(), @r###" + assert_cmd_snapshot!(case.command(), @r#" success: false exit_code: 1 ----- stdout ----- @@ -758,7 +758,7 @@ fn overrides_empty_include() -> anyhow::Result<()> { Found 2 diagnostics ----- stderr ----- - "###); + "#); Ok(()) } @@ -786,7 +786,7 @@ fn overrides_no_actual_overrides() -> anyhow::Result<()> { ), ])?; - assert_cmd_snapshot!(case.command(), @r###" + assert_cmd_snapshot!(case.command(), @r#" success: false exit_code: 1 ----- stdout ----- @@ -815,7 +815,7 @@ fn overrides_no_actual_overrides() -> anyhow::Result<()> { Found 2 diagnostics ----- stderr ----- - "###); + "#); Ok(()) } diff --git a/crates/ty/tests/file_watching.rs b/crates/ty/tests/file_watching.rs index 0f45e5688c..098a397acb 100644 --- a/crates/ty/tests/file_watching.rs +++ b/crates/ty/tests/file_watching.rs @@ -1942,7 +1942,7 @@ fn submodule_cache_invalidation_created() -> anyhow::Result<()> { insta::assert_snapshot!( case.sorted_submodule_names("bar").join("\n"), - @r" + @" bar.foo bar.wazoo ", @@ -1964,7 +1964,7 @@ fn submodule_cache_invalidation_deleted() -> anyhow::Result<()> { insta::assert_snapshot!( case.sorted_submodule_names("bar").join("\n"), - @r" + @" bar.foo bar.wazoo ", @@ -2029,7 +2029,7 @@ fn submodule_cache_invalidation_after_pyproject_created() -> anyhow::Result<()> insta::assert_snapshot!( case.sorted_submodule_names("bar").join("\n"), - @r" + @" bar.foo bar.wazoo ", diff --git a/crates/ty_ide/src/all_symbols.rs b/crates/ty_ide/src/all_symbols.rs index cc200377a5..b66607cb23 100644 --- a/crates/ty_ide/src/all_symbols.rs +++ b/crates/ty_ide/src/all_symbols.rs @@ -202,7 +202,7 @@ ABCDEFGHIJKLMNOP = 'https://api.example.com' ) .build(); - assert_snapshot!(test.all_symbols("acegikmo"), @r" + assert_snapshot!(test.all_symbols("acegikmo"), @" info[all-symbols]: AllSymbolInfo --> constants.py:2:1 | diff --git a/crates/ty_ide/src/code_action.rs b/crates/ty_ide/src/code_action.rs index dde9ed1900..6e470baba1 100644 --- a/crates/ty_ide/src/code_action.rs +++ b/crates/ty_ide/src/code_action.rs @@ -96,7 +96,7 @@ mod tests { fn add_ignore() { let test = CodeActionTest::with_source(r#"b = a / 10"#); - assert_snapshot!(test.code_actions(&UNRESOLVED_REFERENCE), @r" + assert_snapshot!(test.code_actions(&UNRESOLVED_REFERENCE), @" info[code-action]: Ignore 'unresolved-reference' for this line --> main.py:1:5 | @@ -112,7 +112,7 @@ mod tests { fn add_ignore_existing_comment() { let test = CodeActionTest::with_source(r#"b = a / 10 # fmt: off"#); - assert_snapshot!(test.code_actions(&UNRESOLVED_REFERENCE), @r" + assert_snapshot!(test.code_actions(&UNRESOLVED_REFERENCE), @" info[code-action]: Ignore 'unresolved-reference' for this line --> main.py:1:5 | @@ -128,7 +128,7 @@ mod tests { fn add_ignore_trailing_whitespace() { let test = CodeActionTest::with_source(r#"b = a / 10 "#); - assert_snapshot!(test.code_actions(&UNRESOLVED_REFERENCE), @r" + assert_snapshot!(test.code_actions(&UNRESOLVED_REFERENCE), @" info[code-action]: Ignore 'unresolved-reference' for this line --> main.py:1:5 | @@ -148,7 +148,7 @@ mod tests { "#, ); - assert_snapshot!(test.code_actions(&UNRESOLVED_REFERENCE), @r" + assert_snapshot!(test.code_actions(&UNRESOLVED_REFERENCE), @" info[code-action]: Ignore 'unresolved-reference' for this line --> main.py:2:5 | @@ -169,7 +169,7 @@ mod tests { "#, ); - assert_snapshot!(test.code_actions(&UNRESOLVED_REFERENCE), @r" + assert_snapshot!(test.code_actions(&UNRESOLVED_REFERENCE), @" info[code-action]: Ignore 'unresolved-reference' for this line --> main.py:2:5 | @@ -190,7 +190,7 @@ mod tests { "#, ); - assert_snapshot!(test.code_actions(&UNRESOLVED_REFERENCE), @r" + assert_snapshot!(test.code_actions(&UNRESOLVED_REFERENCE), @" info[code-action]: Ignore 'unresolved-reference' for this line --> main.py:2:5 | @@ -211,7 +211,7 @@ mod tests { "#, ); - assert_snapshot!(test.code_actions(&UNRESOLVED_REFERENCE), @r" + assert_snapshot!(test.code_actions(&UNRESOLVED_REFERENCE), @" info[code-action]: Ignore 'unresolved-reference' for this line --> main.py:2:5 | @@ -236,7 +236,7 @@ mod tests { "#, ); - assert_snapshot!(test.code_actions(&UNRESOLVED_REFERENCE), @r" + assert_snapshot!(test.code_actions(&UNRESOLVED_REFERENCE), @" info[code-action]: Ignore 'unresolved-reference' for this line --> main.py:3:9 | @@ -269,7 +269,7 @@ mod tests { "#, ); - assert_snapshot!(test.code_actions(&UNRESOLVED_REFERENCE), @r" + assert_snapshot!(test.code_actions(&UNRESOLVED_REFERENCE), @" info[code-action]: Ignore 'unresolved-reference' for this line --> main.py:3:9 | @@ -301,7 +301,7 @@ mod tests { "#, ); - assert_snapshot!(test.code_actions(&UNRESOLVED_REFERENCE), @r" + assert_snapshot!(test.code_actions(&UNRESOLVED_REFERENCE), @" info[code-action]: Ignore 'unresolved-reference' for this line --> main.py:3:9 | @@ -445,7 +445,7 @@ mod tests { "#, ); - assert_snapshot!(test.code_actions(&UNDEFINED_REVEAL), @r" + assert_snapshot!(test.code_actions(&UNDEFINED_REVEAL), @" info[code-action]: import typing.reveal_type --> main.py:2:1 | @@ -577,7 +577,7 @@ mod tests { "#, ); - assert_snapshot!(test.code_actions(&UNRESOLVED_REFERENCE), @r" + assert_snapshot!(test.code_actions(&UNRESOLVED_REFERENCE), @" info[code-action]: import importlib.abc.ExecutionLoader --> main.py:2:1 | @@ -614,7 +614,7 @@ mod tests { "#, ); - assert_snapshot!(test.code_actions(&UNRESOLVED_REFERENCE), @r" + assert_snapshot!(test.code_actions(&UNRESOLVED_REFERENCE), @" info[code-action]: import importlib.abc.ExecutionLoader --> main.py:3:1 | @@ -652,7 +652,7 @@ mod tests { "#, ); - assert_snapshot!(test.code_actions(&UNRESOLVED_REFERENCE), @r" + assert_snapshot!(test.code_actions(&UNRESOLVED_REFERENCE), @" info[code-action]: import importlib.abc.ExecutionLoader --> main.py:3:1 | diff --git a/crates/ty_ide/src/completion.rs b/crates/ty_ide/src/completion.rs index 593b1008bf..13afefe17b 100644 --- a/crates/ty_ide/src/completion.rs +++ b/crates/ty_ide/src/completion.rs @@ -2162,7 +2162,7 @@ mod tests { fn token_suffixes_match() { insta::assert_debug_snapshot!( token_suffix_by_kinds(&tokenize("foo.x"), [TokenKind::Newline]), - @r" + @" Some( [ Newline 5..5, @@ -2173,7 +2173,7 @@ mod tests { insta::assert_debug_snapshot!( token_suffix_by_kinds(&tokenize("foo.x"), [TokenKind::Name, TokenKind::Newline]), - @r" + @" Some( [ Name 4..5, @@ -2191,7 +2191,7 @@ mod tests { ]; insta::assert_debug_snapshot!( token_suffix_by_kinds(&tokenize("foo.x"), all), - @r" + @" Some( [ Name 0..3, @@ -2265,7 +2265,7 @@ mod tests { assert_snapshot!( test.skip_builtins().build().snapshot(), - @r" + @" and as assert @@ -2329,7 +2329,7 @@ type assert_snapshot!( test.type_signatures().skip_auto_import().build().snapshot(), - @r" + @" TypeError :: type :: ", @@ -2555,9 +2555,7 @@ def foo(): ... ", ); - assert_snapshot!(builder.skip_keywords().skip_builtins().build().snapshot(), @r" - foo - "); + assert_snapshot!(builder.skip_keywords().skip_builtins().build().snapshot(), @"foo"); } #[test] @@ -2588,9 +2586,7 @@ def foo(): ", ); - assert_snapshot!(builder.skip_keywords().skip_builtins().build().snapshot(), @r" - foo - "); + assert_snapshot!(builder.skip_keywords().skip_builtins().build().snapshot(), @"foo"); } #[test] @@ -2605,7 +2601,7 @@ def foo(): assert_snapshot!( builder.skip_keywords().skip_builtins().skip_auto_import().build().snapshot(), - @r" + @" foo foofoo "); @@ -2639,9 +2635,7 @@ def foo(): // matches the current cursor's indentation. This seems fraught // however. It's not clear to me that we can always assume a // correspondence between scopes and indentation level. - assert_snapshot!(builder.skip_keywords().skip_builtins().build().snapshot(), @r" - foo - "); + assert_snapshot!(builder.skip_keywords().skip_builtins().build().snapshot(), @"foo"); } #[test] @@ -2657,9 +2651,9 @@ def foo(): assert_snapshot!( builder.skip_keywords().skip_builtins().skip_auto_import().build().snapshot(), - @r" - foo - foofoo + @" + foo + foofoo "); } @@ -2675,9 +2669,9 @@ def foo(): assert_snapshot!( builder.skip_keywords().skip_builtins().skip_auto_import().build().snapshot(), - @r" - foo - foofoo + @" + foo + foofoo "); } @@ -2695,10 +2689,10 @@ def frob(): ... assert_snapshot!( builder.skip_keywords().skip_builtins().skip_auto_import().build().snapshot(), - @r" - foo - foofoo - frob + @" + foo + foofoo + frob "); } @@ -2716,9 +2710,9 @@ def frob(): ... assert_snapshot!( builder.skip_keywords().skip_builtins().skip_auto_import().build().snapshot(), - @r" - foo - frob + @" + foo + frob "); } @@ -2736,11 +2730,11 @@ def frob(): ... assert_snapshot!( builder.skip_keywords().skip_builtins().skip_auto_import().build().snapshot(), - @r" - foo - foofoo - foofoofoo - frob + @" + foo + foofoo + foofoofoo + frob "); } @@ -2764,9 +2758,7 @@ def foo(): // account for the indented whitespace, or some other technique // needs to be used to get the scope containing `foofoo` but not // `foofoofoo`. - assert_snapshot!(builder.skip_keywords().skip_builtins().build().snapshot(), @r" - foo - "); + assert_snapshot!(builder.skip_keywords().skip_builtins().build().snapshot(), @"foo"); } #[test] @@ -2780,9 +2772,7 @@ def foo(): ); // FIXME: Should include `foofoo` (but not `foofoofoo`). - assert_snapshot!(builder.skip_keywords().skip_builtins().build().snapshot(), @r" - foo - "); + assert_snapshot!(builder.skip_keywords().skip_builtins().build().snapshot(), @"foo"); } #[test] @@ -2798,7 +2788,7 @@ def frob(): ... ); // FIXME: Should include `foofoo` (but not `foofoofoo`). - assert_snapshot!(builder.skip_keywords().skip_builtins().build().snapshot(), @r" + assert_snapshot!(builder.skip_keywords().skip_builtins().build().snapshot(), @" foo frob "); @@ -2818,7 +2808,7 @@ def frob(): ... ); // FIXME: Should include `foofoo` (but not `foofoofoo`). - assert_snapshot!(builder.skip_keywords().skip_builtins().build().snapshot(), @r" + assert_snapshot!(builder.skip_keywords().skip_builtins().build().snapshot(), @" foo frob "); @@ -2839,7 +2829,7 @@ def frob(): ... ); // FIXME: Should include `foofoo` (but not `foofoofoo`). - assert_snapshot!(builder.skip_keywords().skip_builtins().build().snapshot(), @r" + assert_snapshot!(builder.skip_keywords().skip_builtins().build().snapshot(), @" foo frob "); @@ -3026,7 +3016,7 @@ class Foo: assert_snapshot!( builder.skip_keywords().skip_builtins().skip_auto_import().build().snapshot(), - @r" + @" bar frob ", @@ -3066,9 +3056,7 @@ class Foo: // // These don't work for similar reasons as other // tests above with the inside of whitespace. - assert_snapshot!(builder.skip_keywords().skip_builtins().build().snapshot(), @r" - Foo - "); + assert_snapshot!(builder.skip_keywords().skip_builtins().build().snapshot(), @"Foo"); } #[test] @@ -3085,9 +3073,7 @@ class Foo: // FIXME: Should include `bar`, `quux` and `frob`. // (Unclear if `Foo` should be included, but a false // positive isn't the end of the world.) - assert_snapshot!(builder.skip_keywords().skip_builtins().build().snapshot(), @r" - Foo - "); + assert_snapshot!(builder.skip_keywords().skip_builtins().build().snapshot(), @"Foo"); } #[test] @@ -3101,7 +3087,7 @@ class Foo(): ", ); - assert_snapshot!(builder.skip_keywords().skip_builtins().build().snapshot(), @r" + assert_snapshot!(builder.skip_keywords().skip_builtins().build().snapshot(), @" Bar Foo metaclass= @@ -3119,7 +3105,7 @@ class Bar: ... ", ); - assert_snapshot!(builder.skip_keywords().skip_builtins().build().snapshot(), @r" + assert_snapshot!(builder.skip_keywords().skip_builtins().build().snapshot(), @" Bar Foo metaclass= @@ -3137,7 +3123,7 @@ class Bar: ... ", ); - assert_snapshot!(builder.skip_keywords().skip_builtins().build().snapshot(), @r" + assert_snapshot!(builder.skip_keywords().skip_builtins().build().snapshot(), @" Bar Foo metaclass= @@ -3153,7 +3139,7 @@ class Bar: ... class Foo(", ); - assert_snapshot!(builder.skip_keywords().skip_builtins().build().snapshot(), @r" + assert_snapshot!(builder.skip_keywords().skip_builtins().build().snapshot(), @" Bar Foo metaclass= @@ -3325,7 +3311,7 @@ quux. ); assert_snapshot!( - builder.skip_keywords().skip_builtins().type_signatures().build().snapshot(), @r" + builder.skip_keywords().skip_builtins().type_signatures().build().snapshot(), @" bar :: Unknown | Literal[2] baz :: Unknown | Literal[3] foo :: Unknown | Literal[1] @@ -3371,7 +3357,7 @@ quux.b ); assert_snapshot!( - builder.skip_keywords().skip_builtins().type_signatures().build().snapshot(), @r" + builder.skip_keywords().skip_builtins().type_signatures().build().snapshot(), @" bar :: Unknown | Literal[2] baz :: Unknown | Literal[3] __getattribute__ :: bound method Quux.__getattribute__(name: str, /) -> Any @@ -3396,7 +3382,7 @@ C. ); assert_snapshot!( - builder.skip_keywords().skip_builtins().type_signatures().build().snapshot(), @r###" + builder.skip_keywords().skip_builtins().type_signatures().build().snapshot(), @" meta_attr :: int mro :: bound method .mro() -> list[type] __annotate__ :: (() -> dict[str, Any]) | None @@ -3442,7 +3428,7 @@ C. __text_signature__ :: str | None __type_params__ :: tuple[TypeVar | ParamSpec | TypeVarTuple, ...] __weakrefoffset__ :: int - "###); + "); } #[test] @@ -3468,7 +3454,7 @@ Meta. filters => [(r"(?m)\s*__(annotations|new|annotate)__.+$", "")]}, { assert_snapshot!( - builder.skip_keywords().skip_builtins().type_signatures().build().snapshot(), @r" + builder.skip_keywords().skip_builtins().type_signatures().build().snapshot(), @" meta_attr :: property mro :: def mro(self) -> list[type] __base__ :: type | None @@ -3529,7 +3515,7 @@ class Quux: ", ); - assert_snapshot!(builder.skip_keywords().skip_builtins().build().snapshot(), @r" + assert_snapshot!(builder.skip_keywords().skip_builtins().build().snapshot(), @" bar baz foo @@ -3591,7 +3577,7 @@ Quux. ); assert_snapshot!( - builder.skip_keywords().skip_builtins().type_signatures().build().snapshot(), @r###" + builder.skip_keywords().skip_builtins().type_signatures().build().snapshot(), @" mro :: bound method .mro() -> list[type] some_attribute :: int some_class_method :: bound method .some_class_method() -> int @@ -3641,7 +3627,7 @@ Quux. __text_signature__ :: str | None __type_params__ :: tuple[TypeVar | ParamSpec | TypeVarTuple, ...] __weakrefoffset__ :: int - "###); + "); } #[test] @@ -3664,7 +3650,7 @@ Answer. filters => [(r"(?m)\s*__(call|reduce_ex|annotate|signature)__.+$", "")]}, { assert_snapshot!( - builder.skip_keywords().skip_builtins().type_signatures().build().snapshot(), @r" + builder.skip_keywords().skip_builtins().type_signatures().build().snapshot(), @" NO :: Literal[Answer.NO] YES :: Literal[Answer.YES] mro :: bound method .mro() -> list[type] @@ -3752,7 +3738,7 @@ quux. ); assert_snapshot!( - builder.skip_keywords().skip_builtins().type_signatures().build().snapshot(), @r" + builder.skip_keywords().skip_builtins().type_signatures().build().snapshot(), @" count :: bound method Quux.count(value: Any, /) -> int index :: bound method Quux.index(value: Any, start: SupportsIndex = 0, stop: SupportsIndex = ..., /) -> int x :: int @@ -3817,7 +3803,7 @@ bar(o assert_snapshot!( builder.skip_keywords().skip_builtins().skip_auto_import().build().snapshot(), - @r" + @" foo okay= " @@ -3838,7 +3824,7 @@ bar(o assert_snapshot!( builder.skip_keywords().skip_builtins().skip_auto_import().build().snapshot(), - @r" + @" foo okay= " @@ -3857,7 +3843,7 @@ foo(b assert_snapshot!( builder.skip_keywords().skip_builtins().skip_auto_import().build().snapshot(), - @r" + @" bar= barbaz= baz= @@ -3953,7 +3939,7 @@ bar(o assert_snapshot!( builder.skip_keywords().skip_builtins().skip_auto_import().build().snapshot(), - @r" + @" foo okay= okay_abc= @@ -3974,7 +3960,7 @@ bar( ", ); - assert_snapshot!(builder.skip_keywords().skip_builtins().build().snapshot(), @r" + assert_snapshot!(builder.skip_keywords().skip_builtins().build().snapshot(), @" bar foo okay= @@ -4018,9 +4004,9 @@ class C: assert_snapshot!( builder.skip_keywords().skip_builtins().skip_auto_import().build().snapshot(), - @r" - foo - self + @" + foo + self "); } @@ -4054,7 +4040,7 @@ class C: // `self`. assert_snapshot!( builder.skip_keywords().skip_builtins().skip_auto_import().build().snapshot(), - @r" + @" foo self "); @@ -4276,9 +4262,7 @@ b.a. ); assert_snapshot!(builder.skip_dunders().build().snapshot(), - @r" - x - "); + @"x"); } #[test] @@ -4473,7 +4457,7 @@ q.foo.xyz ", ); - assert_snapshot!(builder.skip_keywords().skip_builtins().build().snapshot(), @r" + assert_snapshot!(builder.skip_keywords().skip_builtins().build().snapshot(), @" __annotations__ __class__ __delattr__ @@ -4534,7 +4518,7 @@ A. assert_snapshot!( builder.filter(|c| c.name.contains("FOO") || c.name.contains("foo")).build().snapshot(), - @r" + @" FOO foo __FOO__ @@ -4587,7 +4571,7 @@ def m(): pass ", ); - assert_snapshot!(builder.skip_keywords().skip_builtins().build().snapshot(), @r"m"); + assert_snapshot!(builder.skip_keywords().skip_builtins().build().snapshot(), @"m"); } // Ref: https://github.com/astral-sh/ty/issues/572 @@ -4777,7 +4761,7 @@ f = Foo() assert_snapshot!( builder.skip_keywords().skip_builtins().build().snapshot(), - @r"", + @"", ); } @@ -4966,7 +4950,7 @@ from ? import ); assert_snapshot!( builder.skip_keywords().skip_builtins().build().snapshot(), - @r"", + @"", ); } @@ -5302,7 +5286,7 @@ from os. .filter(|c| c.name.contains("Kadabra")) .build() .snapshot(); - assert_snapshot!(snapshot, @r" + assert_snapshot!(snapshot, @" Kadabra :: Literal[1] :: AbraKadabra :: Unavailable :: package "); @@ -7000,7 +6984,7 @@ if foo: // Even though long_namea is alphabetically before long_nameb, // long_nameb is currently imported and should be preferred. - assert_snapshot!(snapshot, @r" + assert_snapshot!(snapshot, @" long_nameb :: Literal[1] :: long_namea :: Unavailable :: foo "); @@ -7017,7 +7001,7 @@ if foo: // Here we favour `Protocol` over the other completions // because `Protocol` has been imported, and the other completions are builtin. - assert_snapshot!(snapshot, @r" + assert_snapshot!(snapshot, @" Protocol PendingDeprecationWarning PermissionError @@ -7127,9 +7111,7 @@ from . ", ) .completion_test_builder(); - assert_snapshot!(builder.build().snapshot(), @r" - import - "); + assert_snapshot!(builder.build().snapshot(), @"import"); } #[test] @@ -7145,9 +7127,7 @@ from .imp ", ) .completion_test_builder(); - assert_snapshot!(builder.build().snapshot(), @r" - import - "); + assert_snapshot!(builder.build().snapshot(), @"import"); } #[test] @@ -7168,7 +7148,7 @@ from .imp .source("package/foo.py", "") .source("package/sub1/sub2/bar.py", "from ...") .completion_test_builder(); - assert_snapshot!(builder.build().snapshot(), @r" + assert_snapshot!(builder.build().snapshot(), @" import foo "); @@ -7183,7 +7163,7 @@ from .imp .source("package/foo/baz.py", "") .source("package/sub1/sub2/bar.py", "from ...foo.") .completion_test_builder(); - assert_snapshot!(builder.build().snapshot(), @r" + assert_snapshot!(builder.build().snapshot(), @" bar baz "); @@ -7196,9 +7176,7 @@ from .imp .source("package/foo.py", "") .source("package/sub1/sub2/bar.py", "from.") .completion_test_builder(); - assert_snapshot!(builder.build().snapshot(), @r" - import - "); + assert_snapshot!(builder.build().snapshot(), @"import"); } #[test] @@ -7208,7 +7186,7 @@ from .imp .source("package/foo.py", "") .source("package/sub1/bar.py", "from ..") .completion_test_builder(); - assert_snapshot!(builder.build().snapshot(), @r" + assert_snapshot!(builder.build().snapshot(), @" import foo "); @@ -7233,7 +7211,7 @@ from .imp .source("package/foo/baz.py", "") .source("package/sub1/sub2/bar.py", "from ...foo.ba") .completion_test_builder(); - assert_snapshot!(builder.build().snapshot(), @r" + assert_snapshot!(builder.build().snapshot(), @" bar baz "); @@ -7247,7 +7225,7 @@ from .imp .source("package/imposition.py", "") .source("package/sub1/sub2/bar.py", "from ...im") .completion_test_builder(); - assert_snapshot!(builder.build().snapshot(), @r" + assert_snapshot!(builder.build().snapshot(), @" import imposition "); @@ -7262,7 +7240,7 @@ from .imp .source("package/sub1/imposition.py", "") .source("package/sub1/bar.py", "from ..sub1.") .completion_test_builder(); - assert_snapshot!(builder.build().snapshot(), @r" + assert_snapshot!(builder.build().snapshot(), @" bar foo imposition @@ -7288,7 +7266,7 @@ from .imp .source("foo.py", "from typing") .completion_test_builder() .module_names(); - assert_snapshot!(builder.build().snapshot(), @r" + assert_snapshot!(builder.build().snapshot(), @" typing :: typing_extensions :: "); @@ -7301,7 +7279,7 @@ from .imp .source("foo.py", "deprecated") .completion_test_builder() .module_names(); - assert_snapshot!(builder.build().snapshot(), @r" + assert_snapshot!(builder.build().snapshot(), @" deprecated :: typing_extensions deprecated :: warnings "); @@ -7313,7 +7291,7 @@ from .imp .source("foo.pyi", "from typing") .completion_test_builder() .module_names(); - assert_snapshot!(builder.build().snapshot(), @r" + assert_snapshot!(builder.build().snapshot(), @" typing :: typing_extensions :: "); @@ -7325,7 +7303,7 @@ from .imp .source("foo.pyi", "deprecated") .completion_test_builder() .module_names(); - assert_snapshot!(builder.build().snapshot(), @r" + assert_snapshot!(builder.build().snapshot(), @" deprecated :: typing_extensions deprecated :: warnings "); @@ -7406,7 +7384,7 @@ ZQ .module_names() .build() .snapshot(); - assert_snapshot!(snapshot, @r" + assert_snapshot!(snapshot, @" ZQZQ :: bar ZQZQ :: foo "); @@ -7435,9 +7413,7 @@ ZQ .snapshot(); // We specifically do not want `ZQZQ2` here, since // it is not part of `__all__`. - assert_snapshot!(snapshot, @r" - ZQZQ1 :: bar - "); + assert_snapshot!(snapshot, @"ZQZQ1 :: bar"); } // This test confirms current behavior (as of 2025-12-04), but @@ -7469,7 +7445,7 @@ bar.ZQ .snapshot(); // We specifically do not want `ZQZQ2` here, since // it is not part of `__all__`. - assert_snapshot!(snapshot, @r" + assert_snapshot!(snapshot, @" ZQZQ1 :: ZQZQ2 :: "); @@ -7519,7 +7495,7 @@ ZQ .module_names() .build() .snapshot(); - assert_snapshot!(snapshot, @r" + assert_snapshot!(snapshot, @" ZQZQ1 :: _foo ZQZQ1 :: bar "); @@ -7537,7 +7513,7 @@ multiprocess .completion_test_builder() .build() .snapshot(); - assert_snapshot!(snapshot, @r" + assert_snapshot!(snapshot, @" multiprocessing multiprocessing.connection multiprocessing.context @@ -7608,7 +7584,7 @@ def foo(): ); assert_snapshot!( builder.skip_auto_import().build().snapshot(), - @r" + @" variable_global variable_local ", @@ -7634,7 +7610,7 @@ def fun1(): ); assert_snapshot!( builder.skip_auto_import().build().snapshot(), - @r" + @" variable_1 variable_2 variable_3 @@ -7755,7 +7731,7 @@ TypedDi ); assert_snapshot!( builder.imports().build().snapshot(), - @r" + @" TypedDict :: , TypedDict is_typeddict :: , is_typeddict _FilterConfigurationTypedDict :: from logging.config import _FilterConfigurationTypedDict diff --git a/crates/ty_ide/src/doc_highlights.rs b/crates/ty_ide/src/doc_highlights.rs index 54ce3644c7..fb18abf91b 100644 --- a/crates/ty_ide/src/doc_highlights.rs +++ b/crates/ty_ide/src/doc_highlights.rs @@ -94,7 +94,7 @@ def calculate_sum(): ", ); - assert_snapshot!(test.document_highlights(), @r" + assert_snapshot!(test.document_highlights(), @" info[document_highlights]: Highlight 1 (Write) --> main.py:3:5 | @@ -149,7 +149,7 @@ def process_data(data): ", ); - assert_snapshot!(test.document_highlights(), @r" + assert_snapshot!(test.document_highlights(), @" info[document_highlights]: Highlight 1 (Other) --> main.py:2:18 | @@ -203,7 +203,7 @@ calc = Calculator() ", ); - assert_snapshot!(test.document_highlights(), @r" + assert_snapshot!(test.document_highlights(), @" info[document_highlights]: Highlight 1 (Other) --> main.py:2:7 | diff --git a/crates/ty_ide/src/docstring.rs b/crates/ty_ide/src/docstring.rs index 0a8948eebf..184fc5b2bb 100644 --- a/crates/ty_ide/src/docstring.rs +++ b/crates/ty_ide/src/docstring.rs @@ -1094,7 +1094,7 @@ mod tests { let docstring = Docstring::new(docstring.to_owned()); - assert_snapshot!(docstring.render_markdown(), @r" + assert_snapshot!(docstring.render_markdown(), @" Some much-updated docs **version-added:** *3.0* @@ -1122,7 +1122,7 @@ mod tests { let docstring = Docstring::new(docstring.to_owned()); - assert_snapshot!(docstring.render_markdown(), @r" + assert_snapshot!(docstring.render_markdown(), @" **wow this is some changes deprecated:** *1.2.3*     x = 2 "); @@ -1358,7 +1358,7 @@ mod tests { let docstring = Docstring::new(docstring.to_owned()); - assert_snapshot!(docstring.render_markdown(), @r" + assert_snapshot!(docstring.render_markdown(), @" wow this is some code ```````````abc x = 2 @@ -1434,7 +1434,7 @@ mod tests { let docstring = Docstring::new(docstring.to_owned()); - assert_snapshot!(docstring.render_markdown(), @r" + assert_snapshot!(docstring.render_markdown(), @" This is a function description ```````````python @@ -1463,7 +1463,7 @@ mod tests { let docstring = Docstring::new(docstring.to_owned()); - assert_snapshot!(docstring.render_markdown(), @r" + assert_snapshot!(docstring.render_markdown(), @" This is a function description ```````````python @@ -1486,7 +1486,7 @@ mod tests { let docstring = Docstring::new(docstring.to_owned()); - assert_snapshot!(docstring.render_markdown(), @r" + assert_snapshot!(docstring.render_markdown(), @" ```````````python >>> thing.do_thing() wow it did the thing @@ -1512,7 +1512,7 @@ mod tests { let docstring = Docstring::new(docstring.to_owned()); - assert_snapshot!(docstring.render_markdown(), @r" + assert_snapshot!(docstring.render_markdown(), @" This is a function description: ```````````python >>> thing.do_thing() @@ -1536,7 +1536,7 @@ mod tests { let docstring = Docstring::new(docstring.to_owned()); - assert_snapshot!(docstring.render_markdown(), @r" + assert_snapshot!(docstring.render_markdown(), @" And so you can see that ```````````python >>> thing.do_thing() @@ -1573,7 +1573,7 @@ mod tests { ); assert_eq!(¶m_docs["param3"], "A parameter without type annotation"); - assert_snapshot!(docstring.render_plaintext(), @r" + assert_snapshot!(docstring.render_plaintext(), @" This is a function description. Args: @@ -1586,7 +1586,7 @@ mod tests { str: The return value description "); - assert_snapshot!(docstring.render_markdown(), @r" + assert_snapshot!(docstring.render_markdown(), @" This is a function description. Args: @@ -1638,7 +1638,7 @@ mod tests { "A parameter without type annotation" ); - assert_snapshot!(docstring.render_plaintext(), @r" + assert_snapshot!(docstring.render_plaintext(), @" This is a function description. Parameters @@ -1657,7 +1657,7 @@ mod tests { The return value description "); - assert_snapshot!(docstring.render_markdown(), @r" + assert_snapshot!(docstring.render_markdown(), @" This is a function description. Parameters @@ -1780,7 +1780,7 @@ mod tests { "NumPy-style parameter" ); - assert_snapshot!(docstring.render_plaintext(), @r" + assert_snapshot!(docstring.render_plaintext(), @" This is a function description. Args: @@ -1793,7 +1793,7 @@ mod tests { NumPy-style parameter "); - assert_snapshot!(docstring.render_markdown(), @r" + assert_snapshot!(docstring.render_markdown(), @" This is a function description. Args: @@ -1837,7 +1837,7 @@ mod tests { "A parameter without type annotation" ); - assert_snapshot!(docstring.render_plaintext(), @r" + assert_snapshot!(docstring.render_plaintext(), @" This is a function description. :param str param1: The first parameter description @@ -1848,7 +1848,7 @@ mod tests { :rtype: str "); - assert_snapshot!(docstring.render_markdown(), @r" + assert_snapshot!(docstring.render_markdown(), @" This is a function description. :param str param1: The first parameter description @@ -1898,7 +1898,7 @@ mod tests { "NumPy-style parameter" ); - assert_snapshot!(docstring.render_plaintext(), @r" + assert_snapshot!(docstring.render_plaintext(), @" This is a function description. Args: @@ -1913,7 +1913,7 @@ mod tests { NumPy-style parameter "); - assert_snapshot!(docstring.render_markdown(), @r" + assert_snapshot!(docstring.render_markdown(), @" This is a function description. Args: @@ -1967,7 +1967,7 @@ mod tests { "A parameter without type annotation" ); - assert_snapshot!(docstring.render_plaintext(), @r" + assert_snapshot!(docstring.render_plaintext(), @" This is a function description. Parameters @@ -1986,7 +1986,7 @@ mod tests { The return value description "); - assert_snapshot!(docstring.render_markdown(), @r" + assert_snapshot!(docstring.render_markdown(), @" This is a function description. Parameters @@ -2040,7 +2040,7 @@ mod tests { "A parameter without type annotation" ); - assert_snapshot!(docstring.render_plaintext(), @r" + assert_snapshot!(docstring.render_plaintext(), @" This is a function description. Parameters @@ -2054,7 +2054,7 @@ mod tests { A parameter without type annotation "); - assert_snapshot!(docstring.render_markdown(), @r" + assert_snapshot!(docstring.render_markdown(), @" This is a function description. Parameters @@ -2106,7 +2106,7 @@ mod tests { Some(&"The first parameter".to_string()) ); - assert_snapshot!(docstring_windows.render_plaintext(), @r" + assert_snapshot!(docstring_windows.render_plaintext(), @" This is a function description. Args: @@ -2114,7 +2114,7 @@ mod tests { param2 (int): The second parameter "); - assert_snapshot!(docstring_windows.render_markdown(), @r" + assert_snapshot!(docstring_windows.render_markdown(), @" This is a function description. Args: @@ -2122,7 +2122,7 @@ mod tests {     param2 (int): The second parameter "); - assert_snapshot!(docstring_mac.render_plaintext(), @r" + assert_snapshot!(docstring_mac.render_plaintext(), @" This is a function description. Args: @@ -2130,7 +2130,7 @@ mod tests { param2 (int): The second parameter "); - assert_snapshot!(docstring_mac.render_markdown(), @r" + assert_snapshot!(docstring_mac.render_markdown(), @" This is a function description. Args: @@ -2138,7 +2138,7 @@ mod tests {     param2 (int): The second parameter "); - assert_snapshot!(docstring_unix.render_plaintext(), @r" + assert_snapshot!(docstring_unix.render_plaintext(), @" This is a function description. Args: @@ -2146,7 +2146,7 @@ mod tests { param2 (int): The second parameter "); - assert_snapshot!(docstring_unix.render_markdown(), @r" + assert_snapshot!(docstring_unix.render_markdown(), @" This is a function description. Args: diff --git a/crates/ty_ide/src/document_symbols.rs b/crates/ty_ide/src/document_symbols.rs index 8e426168dc..9fab0c7adc 100644 --- a/crates/ty_ide/src/document_symbols.rs +++ b/crates/ty_ide/src/document_symbols.rs @@ -31,7 +31,7 @@ class World: ", ); - assert_snapshot!(test.document_symbols(), @r" + assert_snapshot!(test.document_symbols(), @" info[document-symbols]: SymbolInfo --> main.py:2:5 | @@ -97,7 +97,7 @@ def standalone_function(): ", ); - assert_snapshot!(test.document_symbols(), @r" + assert_snapshot!(test.document_symbols(), @" info[document-symbols]: SymbolInfo --> main.py:5:1 | @@ -253,7 +253,7 @@ class OuterClass: ", ); - assert_snapshot!(test.document_symbols(), @r" + assert_snapshot!(test.document_symbols(), @" info[document-symbols]: SymbolInfo --> main.py:2:7 | diff --git a/crates/ty_ide/src/find_references.rs b/crates/ty_ide/src/find_references.rs index 274279c4e5..552dd90f04 100644 --- a/crates/ty_ide/src/find_references.rs +++ b/crates/ty_ide/src/find_references.rs @@ -92,7 +92,7 @@ result = calculate_sum(value=42) ", ); - assert_snapshot!(test.references(), @r" + assert_snapshot!(test.references(), @" info[references]: Found 5 references --> main.py:2:19 | @@ -139,7 +139,7 @@ def outer_function(): ", ); - assert_snapshot!(test.references(), @r" + assert_snapshot!(test.references(), @" info[references]: Found 9 references --> main.py:3:5 | @@ -200,7 +200,7 @@ final_value = global_counter ", ); - assert_snapshot!(test.references(), @r" + assert_snapshot!(test.references(), @" info[references]: Found 9 references --> main.py:2:1 | @@ -251,7 +251,7 @@ except ValueError as err: ", ); - assert_snapshot!(test.references(), @r" + assert_snapshot!(test.references(), @" info[references]: Found 4 references --> main.py:4:29 | @@ -286,7 +286,7 @@ match x: ", ); - assert_snapshot!(test.references(), @r" + assert_snapshot!(test.references(), @" info[references]: Found 3 references --> main.py:3:20 | @@ -315,7 +315,7 @@ match data: ", ); - assert_snapshot!(test.references(), @r" + assert_snapshot!(test.references(), @" info[references]: Found 4 references --> main.py:3:29 | @@ -352,7 +352,7 @@ value = my_function ", ); - assert_snapshot!(test.references(), @r" + assert_snapshot!(test.references(), @" info[references]: Found 6 references --> main.py:2:5 | @@ -402,7 +402,7 @@ cls = MyClass ", ); - assert_snapshot!(test.references(), @r" + assert_snapshot!(test.references(), @" info[references]: Found 6 references --> main.py:2:7 | @@ -785,7 +785,7 @@ cls = MyClass "#, ); - assert_snapshot!(test.references(), @r" + assert_snapshot!(test.references(), @" info[references]: Found 2 references --> main.py:10:30 | @@ -816,7 +816,7 @@ cls = MyClass "#, ); - assert_snapshot!(test.references(), @r" + assert_snapshot!(test.references(), @" info[references]: Found 2 references --> main.py:10:30 | @@ -898,7 +898,7 @@ cls = MyClass "#, ); - assert_snapshot!(test.references(), @r" + assert_snapshot!(test.references(), @" info[references]: Found 3 references --> main.py:2:13 | @@ -916,7 +916,7 @@ cls = MyClass "#, ); - assert_snapshot!(test.references(), @r" + assert_snapshot!(test.references(), @" info[references]: Found 3 references --> main.py:2:13 | @@ -935,7 +935,7 @@ cls = MyClass "#, ); - assert_snapshot!(test.references(), @r" + assert_snapshot!(test.references(), @" info[references]: Found 3 references --> main.py:3:15 | @@ -955,7 +955,7 @@ cls = MyClass "#, ); - assert_snapshot!(test.references(), @r" + assert_snapshot!(test.references(), @" info[references]: Found 3 references --> main.py:3:15 | @@ -974,7 +974,7 @@ cls = MyClass "#, ); - assert_snapshot!(test.references(), @r" + assert_snapshot!(test.references(), @" info[references]: Found 3 references --> main.py:2:14 | @@ -992,7 +992,7 @@ cls = MyClass "#, ); - assert_snapshot!(test.references(), @r" + assert_snapshot!(test.references(), @" info[references]: Found 3 references --> main.py:2:14 | @@ -1036,7 +1036,7 @@ class DataProcessor: ) .build(); - assert_snapshot!(test.references(), @r" + assert_snapshot!(test.references(), @" info[references]: Found 6 references --> app.py:2:19 | @@ -1097,7 +1097,7 @@ def process_model(): ) .build(); - assert_snapshot!(test.references(), @r" + assert_snapshot!(test.references(), @" info[references]: Found 5 references --> main.py:6:19 | @@ -1147,7 +1147,7 @@ func_alias() // When finding references to the alias, we should NOT find references // to the original function in the original module - assert_snapshot!(test.references(), @r" + assert_snapshot!(test.references(), @" info[references]: Found 2 references --> importer.py:2:30 | @@ -1222,7 +1222,7 @@ func_alias() ) .build(); - assert_snapshot!(test.references(), @r" + assert_snapshot!(test.references(), @" info[references]: Found 2 references --> main.py:3:20 | @@ -1252,7 +1252,7 @@ func_alias() ) .build(); - assert_snapshot!(test.references(), @r" + assert_snapshot!(test.references(), @" info[references]: Found 2 references --> main.py:3:20 | @@ -1282,7 +1282,7 @@ func_alias() ) .build(); - assert_snapshot!(test.references(), @r" + assert_snapshot!(test.references(), @" info[references]: Found 2 references --> main.py:2:36 | @@ -1312,7 +1312,7 @@ func_alias() ) .build(); - assert_snapshot!(test.references(), @r" + assert_snapshot!(test.references(), @" info[references]: Found 2 references --> main.py:2:36 | @@ -1348,7 +1348,7 @@ func_alias() .build(); // TODO(submodule-imports): this should light up both instances of `subpkg` - assert_snapshot!(test.references(), @r" + assert_snapshot!(test.references(), @" info[references]: Found 1 references --> mypackage/__init__.py:4:5 | @@ -1474,7 +1474,7 @@ func_alias() ) .build(); - assert_snapshot!(test.references(), @r" + assert_snapshot!(test.references(), @" info[references]: Found 3 references --> mypackage/__init__.py:2:21 | @@ -1512,7 +1512,7 @@ func_alias() .build(); // TODO: this should also highlight the RHS subpkg in the import - assert_snapshot!(test.references(), @r" + assert_snapshot!(test.references(), @" info[references]: Found 1 references --> mypackage/__init__.py:4:5 | diff --git a/crates/ty_ide/src/goto_declaration.rs b/crates/ty_ide/src/goto_declaration.rs index 2598e5efe1..ad5ea2bbb9 100644 --- a/crates/ty_ide/src/goto_declaration.rs +++ b/crates/ty_ide/src/goto_declaration.rs @@ -46,7 +46,7 @@ mod tests { ", ); - assert_snapshot!(test.goto_declaration(), @r" + assert_snapshot!(test.goto_declaration(), @" info[goto-declaration]: Go to declaration --> main.py:5:10 | @@ -74,7 +74,7 @@ mod tests { ", ); - assert_snapshot!(test.goto_declaration(), @r" + assert_snapshot!(test.goto_declaration(), @" info[goto-declaration]: Go to declaration --> main.py:3:5 | @@ -104,7 +104,7 @@ mod tests { ", ); - assert_snapshot!(test.goto_declaration(), @r" + assert_snapshot!(test.goto_declaration(), @" info[goto-declaration]: Go to declaration --> main.py:6:12 | @@ -134,7 +134,7 @@ mod tests { ", ); - assert_snapshot!(test.goto_declaration(), @r" + assert_snapshot!(test.goto_declaration(), @" info[goto-declaration]: Go to declaration --> main.py:3:12 | @@ -162,7 +162,7 @@ mod tests { ", ); - assert_snapshot!(test.goto_declaration(), @r" + assert_snapshot!(test.goto_declaration(), @" info[goto-declaration]: Go to declaration --> main.py:3:8 | @@ -192,7 +192,7 @@ mod tests { ", ); - assert_snapshot!(test.goto_declaration(), @r" + assert_snapshot!(test.goto_declaration(), @" info[goto-declaration]: Go to declaration --> main.py:3:31 | @@ -368,7 +368,7 @@ FOO = 0 .build(); // Should find the submodule file itself - assert_snapshot!(test.goto_declaration(), @r" + assert_snapshot!(test.goto_declaration(), @" info[goto-declaration]: Go to declaration --> main.py:3:7 | @@ -395,7 +395,7 @@ FOO = 0 .build(); // Should resolve to the actual function definition, not the import statement - assert_snapshot!(test.goto_declaration(), @r" + assert_snapshot!(test.goto_declaration(), @" info[goto-declaration]: Go to declaration --> main.py:1:17 | @@ -657,7 +657,7 @@ FOO = 0 ) .build(); - assert_snapshot!(test.goto_declaration(), @r" + assert_snapshot!(test.goto_declaration(), @" info[goto-declaration]: Go to declaration --> main.py:2:30 | @@ -699,7 +699,7 @@ FOO = 0 ) .build(); - assert_snapshot!(test.goto_declaration(), @r" + assert_snapshot!(test.goto_declaration(), @" info[goto-declaration]: Go to declaration --> main.py:2:17 | @@ -869,7 +869,7 @@ def another_helper(path): ", ); - assert_snapshot!(test.goto_declaration(), @r" + assert_snapshot!(test.goto_declaration(), @" info[goto-declaration]: Go to declaration --> main.py:7:7 | @@ -1126,7 +1126,7 @@ def another_helper(path): ", ); - assert_snapshot!(test.goto_declaration(), @r" + assert_snapshot!(test.goto_declaration(), @" info[goto-declaration]: Go to declaration --> main.py:11:9 | @@ -1160,7 +1160,7 @@ def another_helper(path): ", ); - assert_snapshot!(test.goto_declaration(), @r" + assert_snapshot!(test.goto_declaration(), @" info[goto-declaration]: Go to declaration --> main.py:7:7 | @@ -1194,7 +1194,7 @@ def another_helper(path): ", ); - assert_snapshot!(test.goto_declaration(), @r" + assert_snapshot!(test.goto_declaration(), @" info[goto-declaration]: Go to declaration --> main.py:7:9 | @@ -1413,7 +1413,7 @@ def function(): ", ); - assert_snapshot!(test.goto_declaration(), @r" + assert_snapshot!(test.goto_declaration(), @" info[goto-declaration]: Go to declaration --> main.py:9:7 | @@ -1645,7 +1645,7 @@ def function(): "#, ); - assert_snapshot!(test.goto_declaration(), @r" + assert_snapshot!(test.goto_declaration(), @" info[goto-declaration]: Go to declaration --> main.py:10:30 | @@ -1684,7 +1684,7 @@ def function(): "#, ); - assert_snapshot!(test.goto_declaration(), @r" + assert_snapshot!(test.goto_declaration(), @" info[goto-declaration]: Go to declaration --> main.py:11:17 | @@ -1771,7 +1771,7 @@ def function(): "#, ); - assert_snapshot!(test.goto_declaration(), @r" + assert_snapshot!(test.goto_declaration(), @" info[goto-declaration]: Go to declaration --> main.py:2:13 | @@ -1795,7 +1795,7 @@ def function(): "#, ); - assert_snapshot!(test.goto_declaration(), @r" + assert_snapshot!(test.goto_declaration(), @" info[goto-declaration]: Go to declaration --> main.py:2:37 | @@ -1820,7 +1820,7 @@ def function(): "#, ); - assert_snapshot!(test.goto_declaration(), @r" + assert_snapshot!(test.goto_declaration(), @" info[goto-declaration]: Go to declaration --> main.py:3:15 | @@ -1847,7 +1847,7 @@ def function(): "#, ); - assert_snapshot!(test.goto_declaration(), @r" + assert_snapshot!(test.goto_declaration(), @" info[goto-declaration]: Go to declaration --> main.py:3:43 | @@ -1873,7 +1873,7 @@ def function(): "#, ); - assert_snapshot!(test.goto_declaration(), @r" + assert_snapshot!(test.goto_declaration(), @" info[goto-declaration]: Go to declaration --> main.py:2:14 | @@ -1897,7 +1897,7 @@ def function(): "#, ); - assert_snapshot!(test.goto_declaration(), @r" + assert_snapshot!(test.goto_declaration(), @" info[goto-declaration]: Go to declaration --> main.py:2:38 | @@ -1930,7 +1930,7 @@ def function(): ", ); - assert_snapshot!(test.goto_declaration(), @r" + assert_snapshot!(test.goto_declaration(), @" info[goto-declaration]: Go to declaration --> main.py:11:3 | @@ -2003,7 +2003,7 @@ def function(): ", ); - assert_snapshot!(test.goto_declaration(), @r" + assert_snapshot!(test.goto_declaration(), @" info[goto-declaration]: Go to declaration --> main.py:9:9 | @@ -2037,7 +2037,7 @@ class MyClass: ); // Should find the ClassType defined in the class body, not fail to resolve - assert_snapshot!(test.goto_declaration(), @r" + assert_snapshot!(test.goto_declaration(), @" info[goto-declaration]: Go to declaration --> main.py:5:40 | @@ -2070,7 +2070,7 @@ class MyClass: ", ); - assert_snapshot!(test.goto_declaration(), @r" + assert_snapshot!(test.goto_declaration(), @" info[goto-declaration]: Go to declaration --> main.py:5:25 | @@ -2166,7 +2166,7 @@ def ab(a: str): ... ) .build(); - assert_snapshot!(test.goto_declaration(), @r" + assert_snapshot!(test.goto_declaration(), @" info[goto-declaration]: Go to declaration --> main.py:4:1 | @@ -2276,7 +2276,7 @@ def ab(a: int): ... ) .build(); - assert_snapshot!(test.goto_declaration(), @r" + assert_snapshot!(test.goto_declaration(), @" info[goto-declaration]: Go to declaration --> main.py:4:1 | @@ -2331,7 +2331,7 @@ def ab(a: int): ... ) .build(); - assert_snapshot!(test.goto_declaration(), @r" + assert_snapshot!(test.goto_declaration(), @" info[goto-declaration]: Go to declaration --> main.py:4:1 | @@ -2389,7 +2389,7 @@ def ab(a: int, *, c: int): ... ) .build(); - assert_snapshot!(test.goto_declaration(), @r" + assert_snapshot!(test.goto_declaration(), @" info[goto-declaration]: Go to declaration --> main.py:4:1 | @@ -2451,7 +2451,7 @@ def ab(a: int, *, c: int): ... ) .build(); - assert_snapshot!(test.goto_declaration(), @r" + assert_snapshot!(test.goto_declaration(), @" info[goto-declaration]: Go to declaration --> main.py:4:1 | @@ -2502,7 +2502,7 @@ def ab(a: int, *, c: int): ... // This happens because DefinitionKind::ImportFromSubmodule claims the entire ImportFrom node, // which is correct but unhelpful. Unfortunately even if it only claimed the LHS identifier it // would highlight `subpkg.submod` which is strictly better but still isn't what we want. - assert_snapshot!(test.goto_declaration(), @r" + assert_snapshot!(test.goto_declaration(), @" info[goto-declaration]: Go to declaration --> mypackage/__init__.py:4:5 | @@ -2546,7 +2546,7 @@ def ab(a: int, *, c: int): ... // It's a bit confusing because this symbol is essentially the LHS *and* RHS of // `subpkg = mypackage.subpkg`. As in, it's both defining a local `subpkg` and // loading the module `mypackage.subpkg`, so, it's understandable to get confused! - assert_snapshot!(test.goto_declaration(), @r" + assert_snapshot!(test.goto_declaration(), @" info[goto-declaration]: Go to declaration --> mypackage/__init__.py:2:7 | @@ -2607,7 +2607,7 @@ def ab(a: int, *, c: int): ... .build(); // Going to the submod module is correct! - assert_snapshot!(test.goto_declaration(), @r" + assert_snapshot!(test.goto_declaration(), @" info[goto-declaration]: Go to declaration --> mypackage/__init__.py:2:14 | @@ -2646,7 +2646,7 @@ def ab(a: int, *, c: int): ... .build(); // Going to the subpkg module is correct! - assert_snapshot!(test.goto_declaration(), @r" + assert_snapshot!(test.goto_declaration(), @" info[goto-declaration]: Go to declaration --> mypackage/__init__.py:2:7 | @@ -2685,7 +2685,7 @@ def ab(a: int, *, c: int): ... .build(); // Going to the subpkg `int` is correct! - assert_snapshot!(test.goto_declaration(), @r" + assert_snapshot!(test.goto_declaration(), @" info[goto-declaration]: Go to declaration --> mypackage/__init__.py:2:21 | @@ -2735,7 +2735,7 @@ def ab(a: int, *, c: int): ... // * `the RHS `subpkg` in the import is a second instance of `subpkg = ...` // that *immediately* overwrites the `ImportFromSubmodule`'s definition // This span seemingly doesn't appear at all!? Is it getting hidden by the LHS span? - assert_snapshot!(test.goto_declaration(), @r" + assert_snapshot!(test.goto_declaration(), @" info[goto-declaration]: Go to declaration --> mypackage/__init__.py:4:5 | diff --git a/crates/ty_ide/src/goto_definition.rs b/crates/ty_ide/src/goto_definition.rs index e942e8040d..5f0f7dd844 100644 --- a/crates/ty_ide/src/goto_definition.rs +++ b/crates/ty_ide/src/goto_definition.rs @@ -326,7 +326,7 @@ class MyOtherClass: ) .build(); - assert_snapshot!(test.goto_definition(), @r" + assert_snapshot!(test.goto_definition(), @" info[goto-definition]: Go to definition --> main.py:3:5 | @@ -373,7 +373,7 @@ class MyOtherClass: ) .build(); - assert_snapshot!(test.goto_definition(), @r" + assert_snapshot!(test.goto_definition(), @" info[goto-definition]: Go to definition --> mymodule.pyi:2:7 | @@ -427,7 +427,7 @@ class MyOtherClass: ) .build(); - assert_snapshot!(test.goto_definition(), @r" + assert_snapshot!(test.goto_definition(), @" info[goto-definition]: Go to definition --> main.py:3:5 | @@ -486,7 +486,7 @@ class MyOtherClass: ) .build(); - assert_snapshot!(test.goto_definition(), @r" + assert_snapshot!(test.goto_definition(), @" info[goto-definition]: Go to definition --> main.py:4:3 | @@ -589,7 +589,7 @@ class MyClass: ... ) .build(); - assert_snapshot!(test.goto_definition(), @r" + assert_snapshot!(test.goto_definition(), @" info[goto-definition]: Go to definition --> main.py:2:22 | @@ -623,7 +623,7 @@ my_func(my_other_func(ab=5, y=2), 0) ) .build(); - assert_snapshot!(test.goto_definition(), @r" + assert_snapshot!(test.goto_definition(), @" info[goto-definition]: Go to definition --> main.py:5:23 | @@ -661,7 +661,7 @@ my_func(my_other_func(ab=5, y=2), 0) ) .build(); - assert_snapshot!(test.goto_definition(), @r" + assert_snapshot!(test.goto_definition(), @" info[goto-definition]: Go to definition --> main.py:6:23 | @@ -699,7 +699,7 @@ my_func(my_other_func(ab=5, y=2), 0) ) .build(); - assert_snapshot!(test.goto_definition(), @r" + assert_snapshot!(test.goto_definition(), @" info[goto-definition]: Go to definition --> main.py:5:23 | @@ -737,7 +737,7 @@ my_func(my_other_func(ab=5, y=2), 0) ) .build(); - assert_snapshot!(test.goto_definition(), @r" + assert_snapshot!(test.goto_definition(), @" info[goto-definition]: Go to definition --> main.py:6:23 | @@ -1088,7 +1088,7 @@ a + b ) .build(); - assert_snapshot!(test.goto_definition(), @r" + assert_snapshot!(test.goto_definition(), @" info[goto-definition]: Go to definition --> main.py:10:3 | @@ -1125,7 +1125,7 @@ B() + A() ) .build(); - assert_snapshot!(test.goto_definition(), @r" + assert_snapshot!(test.goto_definition(), @" info[goto-definition]: Go to definition --> main.py:8:5 | @@ -1164,7 +1164,7 @@ a+b ) .build(); - assert_snapshot!(test.goto_definition(), @r" + assert_snapshot!(test.goto_definition(), @" info[goto-definition]: Go to definition --> main.py:10:2 | @@ -1203,7 +1203,7 @@ a+b ) .build(); - assert_snapshot!(test.goto_definition(), @r" + assert_snapshot!(test.goto_definition(), @" info[goto-definition]: Go to definition --> main.py:10:3 | @@ -1262,7 +1262,7 @@ a = Test() ) .build(); - assert_snapshot!(test.goto_definition(), @r" + assert_snapshot!(test.goto_definition(), @" info[goto-definition]: Go to definition --> main.py:7:1 | @@ -1300,7 +1300,7 @@ a = Test() ) .build(); - assert_snapshot!(test.goto_definition(), @r" + assert_snapshot!(test.goto_definition(), @" info[goto-definition]: Go to definition --> main.py:7:1 | @@ -1337,7 +1337,7 @@ a = Test() ) .build(); - assert_snapshot!(test.goto_definition(), @r" + assert_snapshot!(test.goto_definition(), @" info[goto-definition]: Go to definition --> main.py:7:1 | @@ -1374,7 +1374,7 @@ a = Test() ) .build(); - assert_snapshot!(test.goto_definition(), @r" + assert_snapshot!(test.goto_definition(), @" info[goto-definition]: Go to definition --> main.py:7:2 | @@ -1412,7 +1412,7 @@ a = Test() ) .build(); - assert_snapshot!(test.goto_definition(), @r" + assert_snapshot!(test.goto_definition(), @" info[goto-definition]: Go to definition --> main.py:7:1 | @@ -1449,7 +1449,7 @@ a = Test() ) .build(); - assert_snapshot!(test.goto_definition(), @r" + assert_snapshot!(test.goto_definition(), @" info[goto-definition]: Go to definition --> main.py:7:1 | @@ -1490,7 +1490,7 @@ a = Test() ) .build(); - assert_snapshot!(test.goto_definition(), @r" + assert_snapshot!(test.goto_definition(), @" info[goto-definition]: Go to definition --> main.py:8:1 | @@ -1530,7 +1530,7 @@ a = Test() ) .build(); - assert_snapshot!(test.goto_definition(), @r" + assert_snapshot!(test.goto_definition(), @" info[goto-definition]: Go to definition --> main.py:7:1 | diff --git a/crates/ty_ide/src/goto_type_definition.rs b/crates/ty_ide/src/goto_type_definition.rs index f14a621dac..6359e0d694 100644 --- a/crates/ty_ide/src/goto_type_definition.rs +++ b/crates/ty_ide/src/goto_type_definition.rs @@ -42,7 +42,7 @@ mod tests { "#, ); - assert_snapshot!(test.goto_type_definition(), @r" + assert_snapshot!(test.goto_type_definition(), @" info[goto-type definition]: Go to type definition --> main.py:4:1 | @@ -168,7 +168,7 @@ mod tests { "#, ); - assert_snapshot!(test.goto_type_definition(), @r" + assert_snapshot!(test.goto_type_definition(), @" info[goto-type definition]: Go to type definition --> main.py:4:1 | @@ -201,7 +201,7 @@ mod tests { "#, ); - assert_snapshot!(test.goto_type_definition(), @r" + assert_snapshot!(test.goto_type_definition(), @" info[goto-type definition]: Go to type definition --> main.py:6:1 | @@ -239,7 +239,7 @@ mod tests { "#, ); - assert_snapshot!(test.goto_type_definition(), @r" + assert_snapshot!(test.goto_type_definition(), @" info[goto-type definition]: Go to type definition --> main.py:12:1 | @@ -272,7 +272,7 @@ mod tests { test.write_file("lib.py", "a = 10").unwrap(); - assert_snapshot!(test.goto_type_definition(), @r" + assert_snapshot!(test.goto_type_definition(), @" info[goto-type definition]: Go to type definition --> main.py:2:8 | @@ -299,7 +299,7 @@ mod tests { test.write_file("lib/__init__.py", "b = 7").unwrap(); test.write_file("lib/submod.py", "a = 10").unwrap(); - assert_snapshot!(test.goto_type_definition(), @r" + assert_snapshot!(test.goto_type_definition(), @" info[goto-type definition]: Go to type definition --> main.py:2:8 | @@ -326,7 +326,7 @@ mod tests { test.write_file("lib/__init__.py", "b = 7").unwrap(); test.write_file("lib/submod.py", "a = 10").unwrap(); - assert_snapshot!(test.goto_type_definition(), @r" + assert_snapshot!(test.goto_type_definition(), @" info[goto-type definition]: Go to type definition --> main.py:2:12 | @@ -352,7 +352,7 @@ mod tests { test.write_file("lib.py", "a = 10").unwrap(); - assert_snapshot!(test.goto_type_definition(), @r" + assert_snapshot!(test.goto_type_definition(), @" info[goto-type definition]: Go to type definition --> main.py:2:6 | @@ -379,7 +379,7 @@ mod tests { test.write_file("lib/__init__.py", "b = 7").unwrap(); test.write_file("lib/submod.py", "a = 10").unwrap(); - assert_snapshot!(test.goto_type_definition(), @r" + assert_snapshot!(test.goto_type_definition(), @" info[goto-type definition]: Go to type definition --> main.py:2:6 | @@ -406,7 +406,7 @@ mod tests { test.write_file("lib/__init__.py", "b = 7").unwrap(); test.write_file("lib/submod.py", "a = 10").unwrap(); - assert_snapshot!(test.goto_type_definition(), @r" + assert_snapshot!(test.goto_type_definition(), @" info[goto-type definition]: Go to type definition --> main.py:2:10 | @@ -442,7 +442,7 @@ mod tests { test.write_file("lib/sub/bot/botmod.py", "botmod = 31") .unwrap(); - assert_snapshot!(test.goto_type_definition(), @r" + assert_snapshot!(test.goto_type_definition(), @" info[goto-type definition]: Go to type definition --> lib/sub/__init__.py:2:11 | @@ -479,7 +479,7 @@ mod tests { test.write_file("lib/sub/bot/botmod.py", "botmod = 31") .unwrap(); - assert_snapshot!(test.goto_type_definition(), @r" + assert_snapshot!(test.goto_type_definition(), @" info[goto-type definition]: Go to type definition --> lib/sub/__init__.py:2:7 | @@ -516,7 +516,7 @@ mod tests { test.write_file("lib/sub/bot/botmod.py", "botmod = 31") .unwrap(); - assert_snapshot!(test.goto_type_definition(), @r" + assert_snapshot!(test.goto_type_definition(), @" info[goto-type definition]: Go to type definition --> lib/sub/__init__.py:2:7 | @@ -568,7 +568,7 @@ mod tests { test.write_file("lib.py", "a = 10").unwrap(); - assert_snapshot!(test.goto_type_definition(), @r" + assert_snapshot!(test.goto_type_definition(), @" info[goto-type definition]: Go to type definition --> main.py:4:1 | @@ -651,7 +651,7 @@ mod tests { "#, ); - assert_snapshot!(test.goto_type_definition(), @r" + assert_snapshot!(test.goto_type_definition(), @" info[goto-type definition]: Go to type definition --> main.py:2:34 | @@ -675,7 +675,7 @@ mod tests { "#, ); - assert_snapshot!(test.goto_type_definition(), @r" + assert_snapshot!(test.goto_type_definition(), @" info[goto-type definition]: Go to type definition --> main.py:2:41 | @@ -1165,7 +1165,7 @@ mod tests { "#, ); - assert_snapshot!(test.goto_type_definition(), @r" + assert_snapshot!(test.goto_type_definition(), @" info[goto-type definition]: Go to type definition --> main.py:2:13 | @@ -1189,7 +1189,7 @@ mod tests { "#, ); - assert_snapshot!(test.goto_type_definition(), @r" + assert_snapshot!(test.goto_type_definition(), @" info[goto-type definition]: Go to type definition --> main.py:2:37 | @@ -1503,7 +1503,7 @@ def function(): "#, ); - assert_snapshot!(test.goto_type_definition(), @r" + assert_snapshot!(test.goto_type_definition(), @" info[goto-type definition]: Go to type definition --> main.py:7:1 | @@ -1532,7 +1532,7 @@ def function(): "#, ); - assert_snapshot!(test.goto_type_definition(), @r" + assert_snapshot!(test.goto_type_definition(), @" info[goto-type definition]: Go to type definition --> main.py:4:1 | @@ -1641,7 +1641,7 @@ def function(): .build(); // The module is the correct type definition - assert_snapshot!(test.goto_type_definition(), @r" + assert_snapshot!(test.goto_type_definition(), @" info[goto-type definition]: Go to type definition --> mypackage/__init__.py:4:5 | @@ -1678,7 +1678,7 @@ def function(): .build(); // The module is the correct type definition - assert_snapshot!(test.goto_type_definition(), @r" + assert_snapshot!(test.goto_type_definition(), @" info[goto-type definition]: Go to type definition --> mypackage/__init__.py:2:7 | @@ -1715,7 +1715,7 @@ def function(): .build(); // Unknown is correct, `submod` is not in scope - assert_snapshot!(test.goto_type_definition(), @r" + assert_snapshot!(test.goto_type_definition(), @" info[goto-type definition]: Go to type definition --> mypackage/__init__.py:4:5 | @@ -1757,7 +1757,7 @@ def function(): .build(); // The module is correct - assert_snapshot!(test.goto_type_definition(), @r" + assert_snapshot!(test.goto_type_definition(), @" info[goto-type definition]: Go to type definition --> mypackage/__init__.py:2:14 | @@ -1796,7 +1796,7 @@ def function(): .build(); // The module is correct - assert_snapshot!(test.goto_type_definition(), @r" + assert_snapshot!(test.goto_type_definition(), @" info[goto-type definition]: Go to type definition --> mypackage/__init__.py:2:7 | diff --git a/crates/ty_ide/src/hover.rs b/crates/ty_ide/src/hover.rs index c8c521806d..c44ea3a3d8 100644 --- a/crates/ty_ide/src/hover.rs +++ b/crates/ty_ide/src/hover.rs @@ -242,7 +242,7 @@ mod tests { "#, ); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" def my_func( a, b @@ -297,7 +297,7 @@ mod tests { "#, ); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" def my_func( a, b @@ -366,7 +366,7 @@ mod tests { "#, ); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" --------------------------------------------- This is such a great class!! @@ -428,7 +428,7 @@ mod tests { "#, ); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" --------------------------------------------- This is such a great class!! @@ -492,7 +492,7 @@ mod tests { "#, ); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" --------------------------------------------- initializes MyClass (perfectly) @@ -548,7 +548,7 @@ mod tests { ) .build(); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" --------------------------------------------- initializes MyClass (perfectly) @@ -603,7 +603,7 @@ mod tests { "#, ); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" --------------------------------------------- This is such a great class!! @@ -668,7 +668,7 @@ mod tests { "#, ); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" bound method MyClass.my_method( a, b @@ -727,7 +727,7 @@ mod tests { "#, ); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" int --------------------------------------------- ```python @@ -757,7 +757,7 @@ mod tests { "#, ); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" def foo( a, b @@ -792,7 +792,7 @@ mod tests { "#, ); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" bool --------------------------------------------- ```python @@ -829,7 +829,7 @@ mod tests { ); // TODO: This should reveal `int` because the user hovers over the parameter and not the value. - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" Literal[123] --------------------------------------------- ```python @@ -906,7 +906,7 @@ mod tests { "#, ); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" (def foo(a, b) -> Unknown) | (def bar(a, b) -> Unknown) --------------------------------------------- ```python @@ -1199,7 +1199,7 @@ def ab(a: str): ... ) .build(); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" def ab(a: int) -> Unknown --------------------------------------------- the int overload @@ -1319,7 +1319,7 @@ def ab(a: int): ) .build(); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" def ab( a: int, b: int @@ -1385,7 +1385,7 @@ def ab(a: int): ) .build(); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" def ab(a: int) -> Unknown --------------------------------------------- the two arg overload @@ -1449,7 +1449,7 @@ def ab(a: int, *, c: int): ) .build(); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" def ab( a: int, *, @@ -1521,7 +1521,7 @@ def ab(a: int, *, c: int): ) .build(); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" def ab( a: int, *, @@ -1694,7 +1694,7 @@ def ab(a: int, *, c: int): ) .unwrap(); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" --------------------------------------------- The cool lib_py module! @@ -2010,7 +2010,7 @@ def function(): "#, ); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" @Todo --------------------------------------------- ```python @@ -2048,7 +2048,7 @@ def function(): "#, ); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" --------------------------------------------- ```xml @@ -2098,7 +2098,7 @@ def function(): "#, ); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" AB@Alias1 (invariant) --------------------------------------------- ```python @@ -2125,7 +2125,7 @@ def function(): "#, ); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" AB@Alias1 (invariant) --------------------------------------------- ```python @@ -2167,7 +2167,7 @@ def function(): // TODO: This should just be `**AB@Alias2 ()` // https://github.com/astral-sh/ty/issues/1581 - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" (**AB@Alias2) -> tuple[AB@Alias2] --------------------------------------------- ```python @@ -2206,7 +2206,7 @@ def function(): "#, ); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" @Todo --------------------------------------------- ```python @@ -2248,7 +2248,7 @@ def function(): ) .unwrap(); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" --------------------------------------------- The cool lib_py module! @@ -2286,7 +2286,7 @@ def function(): "#, ); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" T@Alias (invariant) --------------------------------------------- ```python @@ -2313,7 +2313,7 @@ def function(): ); // TODO: Should this be constravariant instead? - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" P@Alias (bivariant) --------------------------------------------- ```python @@ -2339,7 +2339,7 @@ def function(): "#, ); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" @Todo --------------------------------------------- ```python @@ -2648,7 +2648,7 @@ def function(): "#, ); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" int --------------------------------------------- This is the docs for this value @@ -2737,7 +2737,7 @@ def function(): "#, ); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" int --------------------------------------------- This is the docs for this value @@ -2781,7 +2781,7 @@ def function(): "#, ); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" str --------------------------------------------- ```python @@ -2851,7 +2851,7 @@ def function(): "#, ); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" def ab( x: int, y: (int, int, /) -> Any, @@ -2891,7 +2891,7 @@ def function(): "#, ); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" tuple[Any, int, (int, int, /) -> Any] --------------------------------------------- ```python @@ -2923,7 +2923,7 @@ def function(): "#, ); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" ((int, int, /) -> Any) | None --------------------------------------------- ```python @@ -3255,7 +3255,7 @@ def function(): "#, ); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" T@Covariant (covariant) --------------------------------------------- ```python @@ -3282,7 +3282,7 @@ def function(): "#, ); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" T@Covariant (covariant) --------------------------------------------- ```python @@ -3309,7 +3309,7 @@ def function(): "#, ); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" T@Contravariant (contravariant) --------------------------------------------- ```python @@ -3336,7 +3336,7 @@ def function(): "#, ); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" T@Contravariant (contravariant) --------------------------------------------- ```python @@ -3365,7 +3365,7 @@ def function(): "#, ); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" T@covariant (covariant) --------------------------------------------- ```python @@ -3390,7 +3390,7 @@ def function(): "#, ); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" T@covariant (covariant) --------------------------------------------- ```python @@ -3415,7 +3415,7 @@ def function(): "#, ); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" T@contravariant (contravariant) --------------------------------------------- ```python @@ -3440,7 +3440,7 @@ def function(): "#, ); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" T@contravariant (contravariant) --------------------------------------------- ```python @@ -3467,7 +3467,7 @@ def function(): "#, ); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" T@List (invariant) --------------------------------------------- ```python @@ -3490,7 +3490,7 @@ def function(): "#, ); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" T@List (invariant) --------------------------------------------- ```python @@ -3513,7 +3513,7 @@ def function(): "#, ); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" T@Tuple (covariant) --------------------------------------------- ```python @@ -3536,7 +3536,7 @@ def function(): "#, ); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" T@Tuple (covariant) --------------------------------------------- ```python @@ -3567,7 +3567,7 @@ def function(): "#, ); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" TypeVar --------------------------------------------- ```python @@ -3599,7 +3599,7 @@ def function(): "#, ); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" T@covariant (covariant) --------------------------------------------- ```python @@ -3630,7 +3630,7 @@ def function(): "#, ); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" TypeVar --------------------------------------------- ```python @@ -3662,7 +3662,7 @@ def function(): "#, ); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" T@contravariant (contravariant) --------------------------------------------- ```python @@ -3691,7 +3691,7 @@ def function(): "#, ); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" bound method int.__add__(value: int, /) -> int --------------------------------------------- Return self+value. @@ -3738,7 +3738,7 @@ def function(): // TODO: We should only show the matching overload here. // https://github.com/astral-sh/ty/issues/73 - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" def __add__(other: Test, /) -> Test def __add__(other: Other, /) -> Test --------------------------------------------- @@ -3780,7 +3780,7 @@ def function(): "#, ); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" (bound method Test.__add__(other: Other, /) -> Other) | (bound method Other.__add__(other: Other, /) -> Other) --------------------------------------------- ```python @@ -3807,7 +3807,7 @@ def function(): "#, ); - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" int | float --------------------------------------------- Convert a string or number to a floating-point number, if possible. @@ -3851,7 +3851,7 @@ def function(): .build(); // The module is correct - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" --------------------------------------------- ```xml @@ -3893,7 +3893,7 @@ def function(): .build(); // The module is correct - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" --------------------------------------------- ```xml @@ -3935,7 +3935,7 @@ def function(): .build(); // Unknown is correct - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" Unknown --------------------------------------------- ```python @@ -3977,7 +3977,7 @@ def function(): .build(); // The submodule is correct - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" --------------------------------------------- ```xml @@ -4018,7 +4018,7 @@ def function(): .build(); // The module is correct - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" --------------------------------------------- ```xml @@ -4059,7 +4059,7 @@ def function(): .build(); // int is correct - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" int --------------------------------------------- ```python @@ -4100,7 +4100,7 @@ def function(): .build(); // int is correct - assert_snapshot!(test.hover(), @r" + assert_snapshot!(test.hover(), @" int --------------------------------------------- ```python @@ -4147,7 +4147,7 @@ def function(): ) .build(); - assert_snapshot!(test.hover(), @r###" + assert_snapshot!(test.hover(), @" Literal[10] --------------------------------------------- ```python @@ -4163,7 +4163,7 @@ def function(): | source 3 | pass | - "###); + "); } impl CursorTest { diff --git a/crates/ty_ide/src/importer.rs b/crates/ty_ide/src/importer.rs index e271d054cf..4af96fad1f 100644 --- a/crates/ty_ide/src/importer.rs +++ b/crates/ty_ide/src/importer.rs @@ -950,7 +950,7 @@ mod tests { fn empty_source_qualified() { let test = cursor_test(""); assert_snapshot!( - test.import("collections", "defaultdict"), @r" + test.import("collections", "defaultdict"), @" import collections collections.defaultdict "); @@ -960,7 +960,7 @@ mod tests { fn empty_source_unqualified() { let test = cursor_test(""); assert_snapshot!( - test.import_from("collections", "defaultdict"), @r" + test.import_from("collections", "defaultdict"), @" from collections import defaultdict defaultdict "); @@ -975,7 +975,7 @@ import collections ", ); assert_snapshot!( - test.import("collections", "defaultdict"), @r" + test.import("collections", "defaultdict"), @" import collections collections.defaultdict "); @@ -990,7 +990,7 @@ from collections import defaultdict ", ); assert_snapshot!( - test.import("collections", "defaultdict"), @r" + test.import("collections", "defaultdict"), @" from collections import defaultdict defaultdict "); @@ -1005,7 +1005,7 @@ from collections import * ", ); assert_snapshot!( - test.import("collections", "defaultdict"), @r" + test.import("collections", "defaultdict"), @" from collections import * defaultdict "); @@ -1020,7 +1020,7 @@ import collections as c ", ); assert_snapshot!( - test.import("collections", "defaultdict"), @r" + test.import("collections", "defaultdict"), @" import collections as c c.defaultdict "); @@ -1035,7 +1035,7 @@ from collections import defaultdict as ddict ", ); assert_snapshot!( - test.import("collections", "defaultdict"), @r" + test.import("collections", "defaultdict"), @" from collections import defaultdict as ddict ddict "); @@ -1050,7 +1050,7 @@ from collections import Counter ", ); assert_snapshot!( - test.import("collections", "defaultdict"), @r" + test.import("collections", "defaultdict"), @" from collections import Counter, defaultdict defaultdict "); @@ -1065,7 +1065,7 @@ from collections import Counter as C ", ); assert_snapshot!( - test.import("collections", "defaultdict"), @r" + test.import("collections", "defaultdict"), @" from collections import Counter as C, defaultdict defaultdict "); @@ -1080,7 +1080,7 @@ from collections import Counter, OrderedDict ", ); assert_snapshot!( - test.import("collections", "defaultdict"), @r" + test.import("collections", "defaultdict"), @" from collections import Counter, OrderedDict, defaultdict defaultdict "); @@ -1095,7 +1095,7 @@ from collections import Counter as C, OrderedDict as OD ", ); assert_snapshot!( - test.import("collections", "defaultdict"), @r" + test.import("collections", "defaultdict"), @" from collections import Counter as C, OrderedDict as OD, defaultdict defaultdict "); @@ -1110,7 +1110,7 @@ from collections import Counter; ", ); assert_snapshot!( - test.import("collections", "defaultdict"), @r" + test.import("collections", "defaultdict"), @" from collections import Counter, defaultdict; defaultdict "); @@ -1142,7 +1142,7 @@ from collections import (Counter) ", ); assert_snapshot!( - test.import("collections", "defaultdict"), @r" + test.import("collections", "defaultdict"), @" from collections import (Counter, defaultdict) defaultdict "); @@ -1157,7 +1157,7 @@ from collections import (Counter,) ", ); assert_snapshot!( - test.import("collections", "defaultdict"), @r" + test.import("collections", "defaultdict"), @" from collections import (Counter, defaultdict,) defaultdict "); @@ -1175,7 +1175,7 @@ from collections import ( ", ); assert_snapshot!( - test.import("collections", "defaultdict"), @r" + test.import("collections", "defaultdict"), @" from collections import ( Counter, OrderedDict, defaultdict, @@ -1196,7 +1196,7 @@ from collections import ( ", ); assert_snapshot!( - test.import("collections", "defaultdict"), @r" + test.import("collections", "defaultdict"), @" from collections import ( Counter, OrderedDict, defaultdict @@ -1216,7 +1216,7 @@ from collections import ( ) .build(); assert_snapshot!( - test.import("package.foo", "Bar"), @r" + test.import("package.foo", "Bar"), @" from ...foo import Foo, Bar Bar "); @@ -1231,7 +1231,7 @@ from collections import ", ); assert_snapshot!( - test.import("collections", "defaultdict"), @r" + test.import("collections", "defaultdict"), @" from collections import defaultdict defaultdict "); @@ -1252,7 +1252,7 @@ from collections import () // always be some cases like this that won't make // sense. assert_snapshot!( - test.import("collections", "defaultdict"), @r" + test.import("collections", "defaultdict"), @" from collections import () from collections import defaultdict defaultdict @@ -1270,7 +1270,7 @@ from collections import defaultdict ", ); assert_snapshot!( - test.import("collections", "defaultdict"), @r" + test.import("collections", "defaultdict"), @" from collections import defaultdict import re from collections import defaultdict @@ -1289,7 +1289,7 @@ from collections import defaultdict ", ); assert_snapshot!( - test.import("collections", "defaultdict"), @r" + test.import("collections", "defaultdict"), @" from collections import defaultdict import re defaultdict @@ -1307,7 +1307,7 @@ from collections import defaultdict ", ); assert_snapshot!( - test.import("collections", "defaultdict"), @r" + test.import("collections", "defaultdict"), @" import collections from collections import defaultdict defaultdict @@ -1324,7 +1324,7 @@ from collections import defaultdict ", ); assert_snapshot!( - test.import("collections", "defaultdict"), @r" + test.import("collections", "defaultdict"), @" from collections import OrderedDict from collections import defaultdict defaultdict @@ -1341,7 +1341,7 @@ import collections ", ); assert_snapshot!( - test.import("collections", "defaultdict"), @r" + test.import("collections", "defaultdict"), @" from collections import OrderedDict, defaultdict import collections defaultdict @@ -1360,13 +1360,13 @@ from collections import defaultdict // we add another import at the top-level // of the module. assert_snapshot!( - test.import("collections", "defaultdict"), @r" + test.import("collections", "defaultdict"), @" import collections collections.defaultdict from collections import defaultdict "); assert_snapshot!( - test.import_from("collections", "defaultdict"), @r" + test.import_from("collections", "defaultdict"), @" from collections import defaultdict defaultdict from collections import defaultdict @@ -1386,7 +1386,7 @@ from collections import defaultdict // we add another import at the top-level // of the module. assert_snapshot!( - test.import("collections", "defaultdict"), @r" + test.import("collections", "defaultdict"), @" import collections def foo(): collections.defaultdict @@ -1405,7 +1405,7 @@ def foo(): ", ); assert_snapshot!( - test.import("collections", "defaultdict"), @r" + test.import("collections", "defaultdict"), @" from collections import defaultdict def foo(): @@ -1423,7 +1423,7 @@ from __future__ import annotations ", ); assert_snapshot!( - test.import("typing", "TypeVar"), @r" + test.import("typing", "TypeVar"), @" from __future__ import annotations import typing @@ -1443,6 +1443,7 @@ from __future__ import annotations ); assert_snapshot!( test.import("typing", "TypeVar"), @r#" + "This is a module level docstring" from __future__ import annotations import typing @@ -1461,13 +1462,13 @@ defaultdict = 1 ); assert_snapshot!( - test.import("collections", "defaultdict"), @r" + test.import("collections", "defaultdict"), @" import collections defaultdict = 1 (collections.defaultdict) "); assert_snapshot!( - test.import_from("collections", "defaultdict"), @r" + test.import_from("collections", "defaultdict"), @" import collections defaultdict = 1 (collections.defaultdict) @@ -1484,13 +1485,13 @@ collections = 1 ); assert_snapshot!( - test.import("collections", "defaultdict"), @r" + test.import("collections", "defaultdict"), @" from collections import defaultdict collections = 1 (defaultdict) "); assert_snapshot!( - test.import_from("collections", "defaultdict"), @r" + test.import_from("collections", "defaultdict"), @" from collections import defaultdict collections = 1 (defaultdict) @@ -1526,14 +1527,14 @@ defaultdict = 2 ); assert_snapshot!( - test.import("collections", "defaultdict"), @r" + test.import("collections", "defaultdict"), @" import collections collections = 1 defaultdict = 2 (collections.defaultdict) "); assert_snapshot!( - test.import_from("collections", "defaultdict"), @r" + test.import_from("collections", "defaultdict"), @" import collections collections = 1 defaultdict = 2 @@ -1551,13 +1552,13 @@ def foo(): ); assert_snapshot!( - test.import("collections", "defaultdict"), @r" + test.import("collections", "defaultdict"), @" import collections def foo(): (collections.defaultdict) "); assert_snapshot!( - test.import_from("collections", "defaultdict"), @r" + test.import_from("collections", "defaultdict"), @" from collections import defaultdict def foo(): (defaultdict) @@ -1574,13 +1575,13 @@ def defaultdict(): ); assert_snapshot!( - test.import("collections", "defaultdict"), @r" + test.import("collections", "defaultdict"), @" import collections def defaultdict(): (collections.defaultdict) "); assert_snapshot!( - test.import_from("collections", "defaultdict"), @r" + test.import_from("collections", "defaultdict"), @" import collections def defaultdict(): (collections.defaultdict) @@ -1597,13 +1598,13 @@ def collections(): ); assert_snapshot!( - test.import("collections", "defaultdict"), @r" + test.import("collections", "defaultdict"), @" from collections import defaultdict def collections(): (defaultdict) "); assert_snapshot!( - test.import_from("collections", "defaultdict"), @r" + test.import_from("collections", "defaultdict"), @" from collections import defaultdict def collections(): (defaultdict) @@ -1621,14 +1622,14 @@ import defaultdict ); assert_snapshot!( - test.import("collections", "defaultdict"), @r" + test.import("collections", "defaultdict"), @" import collections import defaultdict (collections.defaultdict) "); assert_snapshot!( - test.import_from("collections", "defaultdict"), @r" + test.import_from("collections", "defaultdict"), @" import collections import defaultdict @@ -1647,14 +1648,14 @@ from foo import collections ); assert_snapshot!( - test.import("collections", "defaultdict"), @r" + test.import("collections", "defaultdict"), @" from collections import defaultdict from foo import collections (defaultdict) "); assert_snapshot!( - test.import_from("collections", "defaultdict"), @r" + test.import_from("collections", "defaultdict"), @" from collections import defaultdict from foo import collections @@ -1673,14 +1674,14 @@ from othermodule import defaultdict ); assert_snapshot!( - test.import("collections", "defaultdict"), @r" + test.import("collections", "defaultdict"), @" import collections from othermodule import defaultdict (collections.defaultdict) "); assert_snapshot!( - test.import_from("collections", "defaultdict"), @r" + test.import_from("collections", "defaultdict"), @" import collections from othermodule import defaultdict @@ -1699,14 +1700,14 @@ import defaultdict as ddict ); assert_snapshot!( - test.import("collections", "defaultdict"), @r" + test.import("collections", "defaultdict"), @" import collections import defaultdict as ddict (collections.defaultdict) "); assert_snapshot!( - test.import_from("collections", "defaultdict"), @r" + test.import_from("collections", "defaultdict"), @" from collections import defaultdict import defaultdict as ddict @@ -1725,14 +1726,14 @@ from othermodule import something as defaultdict ); assert_snapshot!( - test.import("collections", "defaultdict"), @r" + test.import("collections", "defaultdict"), @" import collections from othermodule import something as defaultdict (collections.defaultdict) "); assert_snapshot!( - test.import_from("collections", "defaultdict"), @r" + test.import_from("collections", "defaultdict"), @" import collections from othermodule import something as defaultdict @@ -1751,14 +1752,14 @@ import defaultdict as ddict ); assert_snapshot!( - test.import("collections", "defaultdict"), @r" + test.import("collections", "defaultdict"), @" import collections import defaultdict as ddict (collections.defaultdict) "); assert_snapshot!( - test.import_from("collections", "defaultdict"), @r" + test.import_from("collections", "defaultdict"), @" from collections import defaultdict import defaultdict as ddict @@ -1777,14 +1778,14 @@ from foo import defaultdict as ddict ); assert_snapshot!( - test.import("collections", "defaultdict"), @r" + test.import("collections", "defaultdict"), @" import collections from foo import defaultdict as ddict (collections.defaultdict) "); assert_snapshot!( - test.import_from("collections", "defaultdict"), @r" + test.import_from("collections", "defaultdict"), @" from collections import defaultdict from foo import defaultdict as ddict @@ -1807,7 +1808,7 @@ import numpy as np ); assert_snapshot!( - test.import("collections", "defaultdict"), @r" + test.import("collections", "defaultdict"), @" import collections import json import re @@ -1818,7 +1819,7 @@ import numpy as np (collections.defaultdict) "); assert_snapshot!( - test.import_from("collections", "defaultdict"), @r" + test.import_from("collections", "defaultdict"), @" from collections import defaultdict import json import re @@ -1849,7 +1850,7 @@ import numpy as np .build(); assert_snapshot!( - test.import("foo", "Bar"), @r" + test.import("foo", "Bar"), @" import foo import json import re @@ -1860,7 +1861,7 @@ import numpy as np (foo.Bar) "); assert_snapshot!( - test.import_from("foo", "Bar"), @r" + test.import_from("foo", "Bar"), @" from foo import Bar import json import re @@ -2109,7 +2110,7 @@ except ImportError: .build(); assert_snapshot!( - test.import("quux", "MAGIC"), @r" + test.import("quux", "MAGIC"), @" import quux try: from foo import MAGIC @@ -2119,7 +2120,7 @@ except ImportError: (quux.MAGIC) "); assert_snapshot!( - test.import_from("quux", "MAGIC"), @r" + test.import_from("quux", "MAGIC"), @" import quux try: from foo import MAGIC @@ -2154,7 +2155,7 @@ except ImportError: .build(); assert_snapshot!( - test.import("foo", "MAGIC"), @r" + test.import("foo", "MAGIC"), @" import foo try: from foo import MAGIC @@ -2164,7 +2165,7 @@ except ImportError: (foo.MAGIC) "); assert_snapshot!( - test.import_from("foo", "MAGIC"), @r" + test.import_from("foo", "MAGIC"), @" from foo import MAGIC try: from foo import MAGIC @@ -2195,7 +2196,7 @@ except ImportError: .build(); assert_snapshot!( - test.import("bar", "MAGIC"), @r" + test.import("bar", "MAGIC"), @" import bar try: from foo import MAGIC @@ -2205,7 +2206,7 @@ except ImportError: (bar.MAGIC) "); assert_snapshot!( - test.import_from("bar", "MAGIC"), @r" + test.import_from("bar", "MAGIC"), @" import bar try: from foo import MAGIC @@ -2224,7 +2225,7 @@ except ImportError: ", ); assert_snapshot!( - test.module("collections"), @r" + test.module("collections"), @" import collections collections "); @@ -2239,7 +2240,7 @@ import collections ", ); assert_snapshot!( - test.module("collections"), @r" + test.module("collections"), @" import collections collections "); @@ -2254,7 +2255,7 @@ from collections import defaultdict ", ); assert_snapshot!( - test.module("collections"), @r" + test.module("collections"), @" import collections from collections import defaultdict collections @@ -2278,7 +2279,7 @@ from collections import abc ", ); assert_snapshot!( - test.module("collections.abc"), @r" + test.module("collections.abc"), @" import collections.abc from collections import abc collections.abc diff --git a/crates/ty_ide/src/inlay_hints.rs b/crates/ty_ide/src/inlay_hints.rs index eb6d7cfee2..d89ac6b012 100644 --- a/crates/ty_ide/src/inlay_hints.rs +++ b/crates/ty_ide/src/inlay_hints.rs @@ -711,6 +711,7 @@ mod tests { ); assert_snapshot!(test.inlay_hints(), @r#" + def i(x: int, /) -> int: return x @@ -869,6 +870,7 @@ mod tests { ); assert_snapshot!(test.inlay_hints(), @r#" + def i(x: int, /) -> int: return x def s(x: str, /) -> str: @@ -1049,6 +1051,7 @@ mod tests { ); assert_snapshot!(test.inlay_hints(), @r#" + def i(x: int, /) -> int: return x def s(x: str, /) -> str: @@ -1229,6 +1232,7 @@ mod tests { ); assert_snapshot!(test.inlay_hints(), @r#" + def i(x: int, /) -> int: return x def s(x: str, /) -> str: @@ -1475,6 +1479,7 @@ mod tests { ); assert_snapshot!(test.inlay_hints(), @r#" + def i(x: int, /) -> int: return x def s(x: str, /) -> str: @@ -1726,6 +1731,7 @@ mod tests { ); assert_snapshot!(test.inlay_hints(), @r#" + def i(x: int, /) -> int: return x @@ -1815,6 +1821,7 @@ mod tests { ); assert_snapshot!(test.inlay_hints(), @r#" + def i(x: int, /) -> int: return x x[: int] = i(1) @@ -1864,7 +1871,8 @@ mod tests { ", ); - assert_snapshot!(test.inlay_hints(), @r" + assert_snapshot!(test.inlay_hints(), @" + class A: def __init__(self, y): self.x = int(1) @@ -1939,6 +1947,7 @@ mod tests { ); assert_snapshot!(test.inlay_hints(), @r#" + def my_func(command: str): match command.split(): case ["get", ab]: @@ -1958,6 +1967,7 @@ mod tests { ); assert_snapshot!(test.inlay_hints(), @r#" + def my_func(command: str): match command.split(): case ["get", *ab]: @@ -1977,6 +1987,7 @@ mod tests { ); assert_snapshot!(test.inlay_hints(), @r#" + def my_func(command: str): match command.split(): case ["get", ("a" | "b") as ab]: @@ -2002,6 +2013,7 @@ mod tests { ); assert_snapshot!(test.inlay_hints(), @r#" + class Click: __match_args__ = ("position", "button") def __init__(self, pos, btn): @@ -2023,7 +2035,10 @@ mod tests { "#, ); - assert_snapshot!(test.inlay_hints(), @"type Alias1[AB: int = bool] = tuple[AB, list[AB]]"); + assert_snapshot!(test.inlay_hints(), @" + + type Alias1[AB: int = bool] = tuple[AB, list[AB]] + "); } #[test] @@ -2035,7 +2050,8 @@ mod tests { "#, ); - assert_snapshot!(test.inlay_hints(), @r" + assert_snapshot!(test.inlay_hints(), @" + from typing import Callable type Alias2[**AB = [int, str]] = Callable[AB, tuple[AB]] "); @@ -2049,7 +2065,10 @@ mod tests { "#, ); - assert_snapshot!(test.inlay_hints(), @"type Alias3[*AB = ()] = tuple[tuple[*AB], tuple[*AB]]"); + assert_snapshot!(test.inlay_hints(), @" + + type Alias3[*AB = ()] = tuple[tuple[*AB], tuple[*AB]] + "); } #[test] @@ -2071,6 +2090,7 @@ mod tests { ); assert_snapshot!(test.inlay_hints(), @r#" + a = 1 b = 1.0 c = True @@ -2104,6 +2124,7 @@ mod tests { ); assert_snapshot!(test.inlay_hints(), @r#" + a = (1, 2) b = (1.0, 2.0) c = (True, False) @@ -2137,6 +2158,7 @@ mod tests { ); assert_snapshot!(test.inlay_hints(), @r#" + a1, a2 = (1, 2) b1, b2 = (1.0, 2.0) c1, c2 = (True, False) @@ -2170,6 +2192,7 @@ mod tests { ); assert_snapshot!(test.inlay_hints(), @r#" + a1, a2 = 1, 2 b1, b2 = 1.0, 2.0 c1, c2 = True, False @@ -2203,6 +2226,7 @@ mod tests { ); assert_snapshot!(test.inlay_hints(), @r#" + a[: list[Unknown | int]] = [1, 2] b[: list[Unknown | int | float]] = [1.0, 2.0] c[: list[Unknown | bool]] = [True, False] @@ -2933,6 +2957,7 @@ mod tests { ); assert_snapshot!(test.inlay_hints(), @r#" + class MyClass: def __init__(self): self.x: int = 1 @@ -3099,6 +3124,7 @@ mod tests { ); assert_snapshot!(test.inlay_hints(), @r#" + class MyClass[T, U]: def __init__(self, x: list[T], y: tuple[U, U]): self.x[: list[T@MyClass]] = x @@ -3982,7 +4008,8 @@ mod tests { variable_types: false, ..Default::default() }), - @r" + @" + def i(x: int, /) -> int: return x @@ -3999,7 +4026,8 @@ mod tests { foo(1)", ); - assert_snapshot!(test.inlay_hints(), @r" + assert_snapshot!(test.inlay_hints(), @" + def foo(x: int): pass foo([x=]1) --------------------------------------------- @@ -4031,7 +4059,8 @@ mod tests { foo(y)", ); - assert_snapshot!(test.inlay_hints(), @r" + assert_snapshot!(test.inlay_hints(), @" + def foo(x: int): pass x = 1 y = 2 @@ -4072,7 +4101,8 @@ mod tests { foo(val.y)", ); - assert_snapshot!(test.inlay_hints(), @r" + assert_snapshot!(test.inlay_hints(), @" + def foo(x: int): pass class MyClass: def __init__(self): @@ -4117,7 +4147,8 @@ mod tests { foo(x.y)", ); - assert_snapshot!(test.inlay_hints(), @r" + assert_snapshot!(test.inlay_hints(), @" + def foo(x: int): pass class MyClass: def __init__(self): @@ -4163,7 +4194,8 @@ mod tests { foo(val.y())", ); - assert_snapshot!(test.inlay_hints(), @r" + assert_snapshot!(test.inlay_hints(), @" + def foo(x: int): pass class MyClass: def __init__(self): @@ -4213,7 +4245,8 @@ mod tests { foo(val.y()[1])", ); - assert_snapshot!(test.inlay_hints(), @r" + assert_snapshot!(test.inlay_hints(), @" + from typing import List def foo(x: int): pass @@ -4261,6 +4294,7 @@ mod tests { ); assert_snapshot!(test.inlay_hints(), @r#" + def foo(x: int): pass x[: list[Unknown | int]] = [1] y[: list[Unknown | int]] = [2] @@ -4417,7 +4451,8 @@ mod tests { foo(1)", ); - assert_snapshot!(test.inlay_hints(), @r" + assert_snapshot!(test.inlay_hints(), @" + def foo(x: int, /): pass foo(1) "); @@ -4431,7 +4466,8 @@ mod tests { foo(1)", ); - assert_snapshot!(test.inlay_hints(), @r" + assert_snapshot!(test.inlay_hints(), @" + def foo(*args: int): pass foo(1) "); @@ -4445,7 +4481,8 @@ mod tests { foo(x=1)", ); - assert_snapshot!(test.inlay_hints(), @r" + assert_snapshot!(test.inlay_hints(), @" + def foo(**kwargs: int): pass foo(x=1) "); @@ -4459,7 +4496,8 @@ mod tests { foo(x=1)", ); - assert_snapshot!(test.inlay_hints(), @r" + assert_snapshot!(test.inlay_hints(), @" + def foo(*, x: int): pass foo(x=1) "); @@ -4477,7 +4515,8 @@ mod tests { ); // `*t` fills both `b` and `c`, so no hint is shown for it - assert_snapshot!(test.inlay_hints(), @r" + assert_snapshot!(test.inlay_hints(), @" + def foo(a: str, b: int, c: int, d: str): ... t: tuple[int, int] = (23, 42) foo([a=]'foo', *t, d='bar') @@ -4511,7 +4550,8 @@ mod tests { foo('foo', *t, 'bar')", ); - assert_snapshot!(test.inlay_hints(), @r" + assert_snapshot!(test.inlay_hints(), @" + def foo(a: str, b: int, c: str): ... t: tuple[int] = (42,) foo([a=]'foo', [b=]*t, [c=]'bar') @@ -4577,7 +4617,8 @@ mod tests { foo(1, 2)", ); - assert_snapshot!(test.inlay_hints(), @r" + assert_snapshot!(test.inlay_hints(), @" + def foo(x: int, /, y: int): pass foo(1, [y=]2) --------------------------------------------- @@ -4606,7 +4647,8 @@ mod tests { foo(1, 2, 3)", ); - assert_snapshot!(test.inlay_hints(), @r" + assert_snapshot!(test.inlay_hints(), @" + def foo(x: int, /, *args: int): pass foo(1, 2, 3) "); @@ -4620,7 +4662,8 @@ mod tests { foo(1, x=2)", ); - assert_snapshot!(test.inlay_hints(), @r" + assert_snapshot!(test.inlay_hints(), @" + def foo(x: int, /, **kwargs: int): pass foo(1, x=2) "); @@ -4636,7 +4679,8 @@ mod tests { f = Foo(1)", ); - assert_snapshot!(test.inlay_hints(), @r" + assert_snapshot!(test.inlay_hints(), @" + class Foo: def __init__(self, x: int): pass Foo([x=]1) @@ -4691,7 +4735,8 @@ mod tests { f = Foo(1)", ); - assert_snapshot!(test.inlay_hints(), @r" + assert_snapshot!(test.inlay_hints(), @" + class Foo: def __new__(cls, x: int): pass Foo([x=]1) @@ -4747,7 +4792,8 @@ mod tests { Foo(1)", ); - assert_snapshot!(test.inlay_hints(), @r" + assert_snapshot!(test.inlay_hints(), @" + class MetaFoo: def __call__(self, x: int): pass class Foo(metaclass=MetaFoo): @@ -4783,7 +4829,8 @@ mod tests { x(1)", ); - assert_snapshot!(test.inlay_hints(), @r" + assert_snapshot!(test.inlay_hints(), @" + from typing import Callable def foo(x: Callable[[int], int]): x(1) @@ -4799,7 +4846,8 @@ mod tests { Foo().bar(2)", ); - assert_snapshot!(test.inlay_hints(), @r" + assert_snapshot!(test.inlay_hints(), @" + class Foo: def bar(self, y: int): pass Foo().bar([y=]2) @@ -4833,7 +4881,8 @@ mod tests { Foo.bar(2)", ); - assert_snapshot!(test.inlay_hints(), @r" + assert_snapshot!(test.inlay_hints(), @" + class Foo: @classmethod def bar(cls, y: int): pass @@ -4869,7 +4918,8 @@ mod tests { Foo.bar(2)", ); - assert_snapshot!(test.inlay_hints(), @r" + assert_snapshot!(test.inlay_hints(), @" + class Foo: @staticmethod def bar(y: int): pass @@ -4904,7 +4954,8 @@ mod tests { foo('abc')", ); - assert_snapshot!(test.inlay_hints(), @r" + assert_snapshot!(test.inlay_hints(), @" + def foo(x: int | str): pass foo([x=]1) foo([x=]'abc') @@ -4953,7 +5004,8 @@ mod tests { foo(1, 'hello', True)", ); - assert_snapshot!(test.inlay_hints(), @r" + assert_snapshot!(test.inlay_hints(), @" + def foo(x: int, y: str, z: bool): pass foo([x=]1, [y=]'hello', [z=]True) --------------------------------------------- @@ -5012,7 +5064,8 @@ mod tests { foo(1, z=True, y='hello')", ); - assert_snapshot!(test.inlay_hints(), @r" + assert_snapshot!(test.inlay_hints(), @" + def foo(x: int, y: str, z: bool): pass foo([x=]1, z=True, y='hello') --------------------------------------------- @@ -5043,7 +5096,8 @@ mod tests { foo(1, 'custom', True)", ); - assert_snapshot!(test.inlay_hints(), @r" + assert_snapshot!(test.inlay_hints(), @" + def foo(x: int, y: str = 'default', z: bool = False): pass foo([x=]1) foo([x=]1, [y=]'custom') @@ -5171,7 +5225,8 @@ mod tests { baz(foo(5), bar(bar('test')), True)", ); - assert_snapshot!(test.inlay_hints(), @r" + assert_snapshot!(test.inlay_hints(), @" + def foo(x: int) -> int: return x * 2 @@ -5306,7 +5361,8 @@ mod tests { A().foo(42).bar('test').baz()", ); - assert_snapshot!(test.inlay_hints(), @r" + assert_snapshot!(test.inlay_hints(), @" + class A: def foo(self, value: int) -> 'A': return self @@ -5365,7 +5421,8 @@ mod tests { ", ); - assert_snapshot!(test.inlay_hints(), @r" + assert_snapshot!(test.inlay_hints(), @" + def foo(x: str) -> str: return x def bar(y: int): pass @@ -5401,7 +5458,8 @@ mod tests { bar(1, 2)", ); - assert_snapshot!(test.inlay_hints(), @r" + assert_snapshot!(test.inlay_hints(), @" + foo[: (x) -> Unknown] = lambda x: x * 2 bar[: (a, b) -> Unknown] = lambda a, b: a + b foo([x=]5) @@ -5457,6 +5515,7 @@ mod tests { ); assert_snapshot!(test.inlay_hints(), @r#" + from typing import LiteralString def my_func(x: LiteralString): y[: LiteralString] = x @@ -5511,6 +5570,7 @@ mod tests { ); assert_snapshot!(test.inlay_hints(), @r#" + def branch(cond: int): if cond < 10: x = 1 @@ -5661,6 +5721,7 @@ mod tests { ); assert_snapshot!(test.inlay_hints(), @r#" + class Foo[T]: ... a[: ] = Foo[int] @@ -5711,6 +5772,7 @@ mod tests { ); assert_snapshot!(test.inlay_hints(), @r#" + def f(x: list[str]): y[: type[list[str]]] = type(x) --------------------------------------------- @@ -5784,7 +5846,8 @@ mod tests { ab = F.whatever", ); - assert_snapshot!(test.inlay_hints(), @r" + assert_snapshot!(test.inlay_hints(), @" + class F: @property def whatever(self): ... @@ -5831,7 +5894,8 @@ mod tests { foo(1, 'pos', 3.14, e=42, f='custom')", ); - assert_snapshot!(test.inlay_hints(), @r" + assert_snapshot!(test.inlay_hints(), @" + def foo(a: int, b: str, /, c: float, d: bool = True, *, e: int, f: str = 'default'): pass foo(1, 'pos', [c=]3.14, [d=]False, e=42) foo(1, 'pos', [c=]3.14, e=42, f='custom') @@ -5905,7 +5969,8 @@ mod tests { pass", ); - assert_snapshot!(test.inlay_hints(), @r" + assert_snapshot!(test.inlay_hints(), @" + from foo import bar bar([x=]1) @@ -5945,7 +6010,8 @@ mod tests { foo('hello')", ); - assert_snapshot!(test.inlay_hints(), @r" + assert_snapshot!(test.inlay_hints(), @" + from typing import overload @overload @@ -6007,7 +6073,8 @@ mod tests { assert_snapshot!(test.inlay_hints_with_settings(&InlayHintSettings { call_argument_names: false, ..Default::default() - }), @r" + }), @" + def foo(x: int): pass foo(1) "); @@ -6023,7 +6090,8 @@ mod tests { bar(2)", ); - assert_snapshot!(test.inlay_hints(), @r" + assert_snapshot!(test.inlay_hints(), @" + def foo(x: int): pass def bar(y: int): pass foo([x=]1) @@ -6057,7 +6125,8 @@ mod tests { foo(1, 2)", ); - assert_snapshot!(test.inlay_hints(), @r" + assert_snapshot!(test.inlay_hints(), @" + def foo(_x: int, y: int): pass foo(1, [y=]2) --------------------------------------------- @@ -6090,7 +6159,8 @@ mod tests { foo(1, 2)", ); - assert_snapshot!(test.inlay_hints(), @r" + assert_snapshot!(test.inlay_hints(), @" + def foo( x: int, y: int @@ -6146,6 +6216,7 @@ mod tests { ); assert_snapshot!(test.inlay_hints(), @r#" + def foo(x: int, *y: bool, z: str | int | list[str]): ... a[: def foo(x: int, *y: bool, *, z: str | int | list[str]) -> Unknown] = foo @@ -6289,6 +6360,7 @@ mod tests { test.with_extra_file("foo.py", "'''Foo module'''"); assert_snapshot!(test.inlay_hints(), @r#" + import foo a[: ] = foo @@ -6337,6 +6409,7 @@ mod tests { ); assert_snapshot!(test.inlay_hints(), @r#" + from typing import Literal a[: ] = Literal['a', 'b', 'c'] @@ -6425,6 +6498,7 @@ mod tests { ); assert_snapshot!(test.inlay_hints(), @r#" + from types import FunctionType a[: ] = FunctionType.__get__ @@ -6477,6 +6551,7 @@ mod tests { ); assert_snapshot!(test.inlay_hints(), @r#" + def f(): ... a[: ] = f.__call__ @@ -6566,6 +6641,7 @@ mod tests { ); assert_snapshot!(test.inlay_hints(), @r#" + from typing import NewType N[: ] = NewType([name=]'N', [tp=]str) @@ -6703,6 +6779,7 @@ mod tests { ); assert_snapshot!(test.inlay_hints(), @r#" + def f[T](x: type[T]): y[: type[T@f]] = x --------------------------------------------- @@ -6750,6 +6827,7 @@ mod tests { ); assert_snapshot!(test.inlay_hints(), @r#" + from typing import Protocol, TypeVar T = TypeVar([name=]'T') Strange[: ] = Protocol[T] @@ -6818,7 +6896,8 @@ mod tests { P = ParamSpec('P')", ); - assert_snapshot!(test.inlay_hints(), @r" + assert_snapshot!(test.inlay_hints(), @" + from typing import ParamSpec P = ParamSpec([name=]'P') --------------------------------------------- @@ -6851,6 +6930,7 @@ mod tests { ); assert_snapshot!(test.inlay_hints(), @r#" + from typing_extensions import TypeAliasType A = TypeAliasType([name=]'A', [value=]str) --------------------------------------------- @@ -6900,7 +6980,8 @@ mod tests { Ts = TypeVarTuple('Ts')", ); - assert_snapshot!(test.inlay_hints(), @r" + assert_snapshot!(test.inlay_hints(), @" + from typing_extensions import TypeVarTuple Ts = TypeVarTuple([name=]'Ts') --------------------------------------------- @@ -6935,6 +7016,7 @@ mod tests { ); assert_snapshot!(test.inlay_hints(), @r#" + def f(xyxy: object): if isinstance(xyxy, list): x[: Top[list[Unknown]]] = xyxy diff --git a/crates/ty_ide/src/rename.rs b/crates/ty_ide/src/rename.rs index 5d7951846a..bdf54bc4a4 100644 --- a/crates/ty_ide/src/rename.rs +++ b/crates/ty_ide/src/rename.rs @@ -191,7 +191,7 @@ func(value=42) ", ); - assert_snapshot!(test.rename("number"), @r" + assert_snapshot!(test.rename("number"), @" info[rename]: Rename symbol (found 4 locations) --> main.py:2:10 | @@ -220,7 +220,7 @@ x = func ", ); - assert_snapshot!(test.rename("calculate"), @r" + assert_snapshot!(test.rename("calculate"), @" info[rename]: Rename symbol (found 3 locations) --> main.py:2:5 | @@ -249,7 +249,7 @@ cls = MyClass ", ); - assert_snapshot!(test.rename("MyNewClass"), @r" + assert_snapshot!(test.rename("MyNewClass"), @" info[rename]: Rename symbol (found 3 locations) --> main.py:2:7 | @@ -276,7 +276,7 @@ def func(): ); assert_snapshot!(test.rename(""), @"Cannot rename"); - assert_snapshot!(test.rename("valid_name"), @r" + assert_snapshot!(test.rename("valid_name"), @" info[rename]: Rename symbol (found 1 locations) --> main.py:2:5 | @@ -321,7 +321,7 @@ class DataProcessor: ) .build(); - assert_snapshot!(test.rename("utility_function"), @r" + assert_snapshot!(test.rename("utility_function"), @" info[rename]: Rename symbol (found 3 locations) --> utils.py:2:5 | @@ -664,7 +664,7 @@ class DataProcessor: "#, ); - assert_snapshot!(test.rename("XY"), @r" + assert_snapshot!(test.rename("XY"), @" info[rename]: Rename symbol (found 2 locations) --> main.py:10:30 | @@ -695,7 +695,7 @@ class DataProcessor: "#, ); - assert_snapshot!(test.rename("XY"), @r" + assert_snapshot!(test.rename("XY"), @" info[rename]: Rename symbol (found 2 locations) --> main.py:10:30 | @@ -777,7 +777,7 @@ class DataProcessor: "#, ); - assert_snapshot!(test.rename("XY"), @r" + assert_snapshot!(test.rename("XY"), @" info[rename]: Rename symbol (found 3 locations) --> main.py:2:13 | @@ -795,7 +795,7 @@ class DataProcessor: "#, ); - assert_snapshot!(test.rename("XY"), @r" + assert_snapshot!(test.rename("XY"), @" info[rename]: Rename symbol (found 3 locations) --> main.py:2:13 | @@ -814,7 +814,7 @@ class DataProcessor: "#, ); - assert_snapshot!(test.rename("XY"), @r" + assert_snapshot!(test.rename("XY"), @" info[rename]: Rename symbol (found 3 locations) --> main.py:3:15 | @@ -834,7 +834,7 @@ class DataProcessor: "#, ); - assert_snapshot!(test.rename("XY"), @r" + assert_snapshot!(test.rename("XY"), @" info[rename]: Rename symbol (found 3 locations) --> main.py:3:15 | @@ -853,7 +853,7 @@ class DataProcessor: "#, ); - assert_snapshot!(test.rename("XY"), @r" + assert_snapshot!(test.rename("XY"), @" info[rename]: Rename symbol (found 3 locations) --> main.py:2:14 | @@ -871,7 +871,7 @@ class DataProcessor: "#, ); - assert_snapshot!(test.rename("XY"), @r" + assert_snapshot!(test.rename("XY"), @" info[rename]: Rename symbol (found 3 locations) --> main.py:2:14 | @@ -939,7 +939,7 @@ result = alias() ) .build(); - assert_snapshot!(test.rename("new_alias"), @r" + assert_snapshot!(test.rename("new_alias"), @" info[rename]: Rename symbol (found 2 locations) --> main.py:2:27 | @@ -970,7 +970,7 @@ result = alias() ) .build(); - assert_snapshot!(test.rename("new_alias"), @r" + assert_snapshot!(test.rename("new_alias"), @" info[rename]: Rename symbol (found 2 locations) --> main.py:2:27 | @@ -1020,7 +1020,7 @@ value1 = func_alias() ) .build(); - assert_snapshot!(test.rename("renamed_function"), @r" + assert_snapshot!(test.rename("renamed_function"), @" info[rename]: Rename symbol (found 5 locations) --> source.py:2:5 | @@ -1079,7 +1079,7 @@ class App: ) .build(); - assert_snapshot!(test.rename("new_util_name"), @r" + assert_snapshot!(test.rename("new_util_name"), @" info[rename]: Rename symbol (found 4 locations) --> file3.py:2:19 | @@ -1142,7 +1142,7 @@ result = func(10, y=20) ", ); - assert_snapshot!(test.rename("z"), @r" + assert_snapshot!(test.rename("z"), @" info[rename]: Rename symbol (found 3 locations) --> main.py:2:13 | @@ -1169,7 +1169,7 @@ result = func(10, y=20) ", ); - assert_snapshot!(test.rename("z"), @r" + assert_snapshot!(test.rename("z"), @" info[rename]: Rename symbol (found 3 locations) --> main.py:2:13 | @@ -1199,7 +1199,7 @@ result = func(10, y=20) ) .build(); - assert_snapshot!(test.rename("z"), @r" + assert_snapshot!(test.rename("z"), @" info[rename]: Rename symbol (found 2 locations) --> main.py:3:20 | @@ -1228,16 +1228,16 @@ result = func(10, y=20) ) .build(); - assert_snapshot!(test.rename("z"), @r" - info[rename]: Rename symbol (found 2 locations) - --> main.py:2:15 - | - 2 | import lib as lib2 - | ^^^^ - 3 | - 4 | x = lib2 - | ---- - | + assert_snapshot!(test.rename("z"), @" + info[rename]: Rename symbol (found 2 locations) + --> main.py:2:15 + | + 2 | import lib as lib2 + | ^^^^ + 3 | + 4 | x = lib2 + | ---- + | "); } @@ -1255,7 +1255,7 @@ result = func(10, y=20) ) .build(); - assert_snapshot!(test.rename("z"), @r" + assert_snapshot!(test.rename("z"), @" info[rename]: Rename symbol (found 3 locations) --> main.py:2:17 | @@ -1288,7 +1288,7 @@ result = func(10, y=20) ) .build(); - assert_snapshot!(test.rename("z"), @r" + assert_snapshot!(test.rename("z"), @" info[rename]: Rename symbol (found 2 locations) --> main.py:3:20 | @@ -1324,7 +1324,7 @@ result = func(10, y=20) .build(); // TODO(submodule-imports): we should refuse to rename this (it's the name of a module) - assert_snapshot!(test.rename("mypkg"), @r" + assert_snapshot!(test.rename("mypkg"), @" info[rename]: Rename symbol (found 1 locations) --> mypackage/__init__.py:4:5 | @@ -1451,7 +1451,7 @@ result = func(10, y=20) .build(); // Renaming the integer is correct - assert_snapshot!(test.rename("mypkg"), @r" + assert_snapshot!(test.rename("mypkg"), @" info[rename]: Rename symbol (found 3 locations) --> mypackage/__init__.py:2:21 | @@ -1494,7 +1494,7 @@ result = func(10, y=20) // However us being cautious here *would* be good as the rename will actually // result in a `subpkg` variable still existing in this code, as the import's LHS // `DefinitionKind::ImportFromSubmodule` would stop being overwritten by the RHS! - assert_snapshot!(test.rename("mypkg"), @r" + assert_snapshot!(test.rename("mypkg"), @" info[rename]: Rename symbol (found 1 locations) --> mypackage/__init__.py:4:5 | @@ -1680,7 +1680,7 @@ result = func(10, y=20) ) .build(); - assert_snapshot!(test.rename("better_name"), @r" + assert_snapshot!(test.rename("better_name"), @" info[rename]: Rename symbol (found 2 locations) --> lib.py:4:9 | @@ -1729,7 +1729,7 @@ result = func(10, y=20) ) .build(); - assert_snapshot!(test.rename("better_name"), @r" + assert_snapshot!(test.rename("better_name"), @" info[rename]: Rename symbol (found 4 locations) --> lib.py:4:9 | @@ -1785,7 +1785,7 @@ result = func(10, y=20) ) .build(); - assert_snapshot!(test.rename("better_name"), @r" + assert_snapshot!(test.rename("better_name"), @" info[rename]: Rename symbol (found 4 locations) --> lib.py:4:9 | @@ -1847,7 +1847,7 @@ result = func(10, y=20) ) .build(); - assert_snapshot!(test.rename("better_name"), @r" + assert_snapshot!(test.rename("better_name"), @" info[rename]: Rename symbol (found 6 locations) --> lib.py:4:9 | @@ -2209,7 +2209,7 @@ result = func(10, y=20) ) .build(); - assert_snapshot!(test.rename("better_name"), @r" + assert_snapshot!(test.rename("better_name"), @" info[rename]: Rename symbol (found 1 locations) --> main.py:4:14 | diff --git a/crates/ty_ide/src/selection_range.rs b/crates/ty_ide/src/selection_range.rs index cdde315a8a..293d93377a 100644 --- a/crates/ty_ide/src/selection_range.rs +++ b/crates/ty_ide/src/selection_range.rs @@ -64,7 +64,7 @@ x = 1 + 2 ) .build(); - assert_snapshot!(test.selection_range(), @r" + assert_snapshot!(test.selection_range(), @" info[selection-range]: Selection Range 0 --> main.py:1:1 | @@ -153,7 +153,7 @@ def my_function(): ) .build(); - assert_snapshot!(test.selection_range(), @r" + assert_snapshot!(test.selection_range(), @" info[selection-range]: Selection Range 0 --> main.py:1:1 | @@ -195,7 +195,7 @@ class MyClass: ) .build(); - assert_snapshot!(test.selection_range(), @r" + assert_snapshot!(test.selection_range(), @" info[selection-range]: Selection Range 0 --> main.py:1:1 | @@ -238,7 +238,7 @@ result = [(lambda x: x[key.attr])(item) for item in data if item is not ) .build(); - assert_snapshot!(test.selection_range(), @r" + assert_snapshot!(test.selection_range(), @" info[selection-range]: Selection Range 0 --> main.py:1:1 | diff --git a/crates/ty_ide/src/semantic_tokens.rs b/crates/ty_ide/src/semantic_tokens.rs index e32db2c9de..4f6ecd13a2 100644 --- a/crates/ty_ide/src/semantic_tokens.rs +++ b/crates/ty_ide/src/semantic_tokens.rs @@ -1138,9 +1138,7 @@ mod tests { let tokens = test.highlight_file(); - assert_snapshot!(test.to_snapshot(&tokens), @r###" - "foo" @ 4..7: Function [definition] - "###); + assert_snapshot!(test.to_snapshot(&tokens), @r#""foo" @ 4..7: Function [definition]"#); } #[test] @@ -1149,9 +1147,7 @@ mod tests { let tokens = test.highlight_file(); - assert_snapshot!(test.to_snapshot(&tokens), @r###" - "MyClass" @ 6..13: Class [definition] - "###); + assert_snapshot!(test.to_snapshot(&tokens), @r#""MyClass" @ 6..13: Class [definition]"#); } #[test] @@ -1163,11 +1159,11 @@ mod tests { let tokens = test.highlight_file(); - assert_snapshot!(test.to_snapshot(&tokens), @r###" + assert_snapshot!(test.to_snapshot(&tokens), @r#" "Foo" @ 6..9: Class [definition] "x" @ 12..13: Variable "m" @ 15..16: Variable - "###); + "#); } #[test] @@ -2702,7 +2698,7 @@ class MyClass: let tokens = test.highlight_file(); - assert_snapshot!(test.to_snapshot(&tokens), @r###" + assert_snapshot!(test.to_snapshot(&tokens), @r#" "staticmethod" @ 2..14: Decorator "property" @ 16..24: Decorator "app" @ 26..29: Variable @@ -2711,7 +2707,7 @@ class MyClass: "my_function" @ 49..60: Function [definition] "dataclass" @ 75..84: Decorator "MyClass" @ 91..98: Class [definition] - "###); + "#); } #[test] diff --git a/crates/ty_ide/src/signature_help.rs b/crates/ty_ide/src/signature_help.rs index e7c49aa065..ee0da0f9d4 100644 --- a/crates/ty_ide/src/signature_help.rs +++ b/crates/ty_ide/src/signature_help.rs @@ -528,7 +528,8 @@ def ab(a: str): ... ) .build(); - assert_snapshot!(test.signature_help_render(), @r" + assert_snapshot!(test.signature_help_render(), @" + ============== active signature ============= (a: int) -> Unknown --------------------------------------------- @@ -583,7 +584,8 @@ def ab(a: str): ) .build(); - assert_snapshot!(test.signature_help_render(), @r" + assert_snapshot!(test.signature_help_render(), @" + ============== active signature ============= (a: int) -> Unknown --------------------------------------------- @@ -638,7 +640,8 @@ def ab(a: int): ) .build(); - assert_snapshot!(test.signature_help_render(), @r" + assert_snapshot!(test.signature_help_render(), @" + ============== active signature ============= (a: int, b: int) -> Unknown --------------------------------------------- @@ -691,7 +694,8 @@ def ab(a: int): ) .build(); - assert_snapshot!(test.signature_help_render(), @r" + assert_snapshot!(test.signature_help_render(), @" + ============== active signature ============= (a: int, b: int) -> Unknown --------------------------------------------- @@ -750,7 +754,8 @@ def ab(a: int, *, c: int): ) .build(); - assert_snapshot!(test.signature_help_render(), @r" + assert_snapshot!(test.signature_help_render(), @" + ============== active signature ============= (a: int, *, b: int) -> Unknown --------------------------------------------- @@ -815,7 +820,8 @@ def ab(a: int, *, c: int): ) .build(); - assert_snapshot!(test.signature_help_render(), @r" + assert_snapshot!(test.signature_help_render(), @" + ============== active signature ============= (a: int, *, c: int) -> Unknown --------------------------------------------- diff --git a/crates/ty_ide/src/symbols.rs b/crates/ty_ide/src/symbols.rs index 46798fe28b..2bb0bda7fc 100644 --- a/crates/ty_ide/src/symbols.rs +++ b/crates/ty_ide/src/symbols.rs @@ -1392,7 +1392,7 @@ class Foo: def quux(): baz = 1 ").exports(), - @r" + @" FOO :: Constant foo :: Variable frob :: Variable @@ -1415,9 +1415,7 @@ def quux(): public_test("\ _foo = 1 ").exports(), - @r" - _foo :: Variable - ", + @"_foo :: Variable", ); } @@ -1429,7 +1427,7 @@ foo = 1 if True: bar = 1 ").exports(), - @r" + @" foo :: Variable bar :: Variable ", @@ -1445,7 +1443,7 @@ foo = 1 if False: bar = 1 ").exports(), - @r" + @" foo :: Variable bar :: Variable ", @@ -1463,7 +1461,7 @@ foo = 1 if sys.version < (3, 5): bar = 1 ").exports(), - @r" + @" foo :: Variable bar :: Variable ", @@ -1480,7 +1478,7 @@ foo = 1 if TYPE_CHECKING: bar = 1 ").exports(), - @r" + @" foo :: Variable bar :: Variable ", @@ -1499,7 +1497,7 @@ if True: else: __all__ = ['foo', 'bar'] ").exports(), - @r" + @" foo :: Variable bar :: Variable ", @@ -1515,7 +1513,7 @@ bar = 1 __all__ = ['foo'] __all__ = ['foo', 'bar'] ").exports(), - @r" + @" foo :: Variable bar :: Variable ", @@ -1528,7 +1526,7 @@ __all__ = ['foo', 'bar'] public_test("\ import collections ").exports(), - @r"", + @"", ); } @@ -1538,7 +1536,7 @@ import collections public_test("\ import numpy as np ").exports(), - @r"", + @"", ); } @@ -1548,7 +1546,7 @@ import numpy as np public_test("\ from collections import defaultdict ").exports(), - @r"", + @"", ); } @@ -1558,7 +1556,7 @@ from collections import defaultdict public_test("\ from collections import defaultdict as dd ").exports(), - @r"", + @"", ); } @@ -1680,7 +1678,7 @@ __all__.extend(['defaultdict']) from collections import defaultdict __all__.extend(['defaultdict']) ").exports(), - @r"", + @"", ); } @@ -1892,7 +1890,7 @@ class X: .build(); insta::assert_snapshot!( test.exports_for("test.py"), - @r" + @" ZQZQZQ :: Constant __all__ :: Variable ", @@ -2008,7 +2006,7 @@ class X: .build(); insta::assert_snapshot!( test.exports_for("test.py"), - @r" + @" __all__ :: Variable TRICKSY :: Constant ", @@ -2062,7 +2060,7 @@ class X: .build(); insta::assert_snapshot!( test.exports_for("test.py"), - @r" + @" __all__ :: Variable defaultdict :: Variable ", @@ -2157,7 +2155,7 @@ class X: // `from foo import *` will try to import it anyway. insta::assert_snapshot!( test.exports_for("test.py"), - @r" + @" __all__ :: Variable TRICKSY :: Constant ", @@ -2276,7 +2274,7 @@ class X: .build(); insta::assert_snapshot!( test.exports_for("test.py"), - @r" + @" _ZQZQZQ :: Constant _ZYZYZY :: Constant ", @@ -2305,7 +2303,7 @@ class X: .build(); insta::assert_snapshot!( test.exports_for("test.py"), - @r" + @" _ZQZQZQ :: Constant _ZYZYZY :: Constant ", @@ -2334,7 +2332,7 @@ class X: .build(); insta::assert_snapshot!( test.exports_for("test.py"), - @r" + @" _ZQZQZQ :: Constant _ZYZYZY :: Constant ", @@ -2364,7 +2362,7 @@ class X: .build(); insta::assert_snapshot!( test.exports_for("test.py"), - @r" + @" _ZQZQZQ :: Constant _ZYZYZY :: Constant ", @@ -2394,7 +2392,7 @@ class X: .build(); insta::assert_snapshot!( test.exports_for("test.py"), - @r" + @" _ZQZQZQ :: Constant _ZYZYZY :: Constant ", @@ -2424,7 +2422,7 @@ class X: .build(); insta::assert_snapshot!( test.exports_for("test.py"), - @r" + @" _ZQZQZQ :: Constant _ZYZYZY :: Constant ", @@ -2454,7 +2452,7 @@ class X: .build(); insta::assert_snapshot!( test.exports_for("test.py"), - @r" + @" _ZQZQZQ :: Constant _ZYZYZY :: Constant ", @@ -2484,7 +2482,7 @@ class X: .build(); insta::assert_snapshot!( test.exports_for("test.py"), - @r" + @" _ZQZQZQ :: Constant _ZYZYZY :: Constant ", @@ -2516,7 +2514,7 @@ class X: .build(); insta::assert_snapshot!( test.exports_for("a.py"), - @r" + @" _ZBZBZB :: Constant _ZAZAZA :: Constant ", @@ -2561,7 +2559,7 @@ class X: // `_ZBZBZB` instead of `_ZFZFZF`. insta::assert_snapshot!( test.exports_for("test.py"), - @r" + @" _ZFZFZF :: Constant _ZYZYZY :: Constant ", @@ -2602,7 +2600,7 @@ class X: // answer should just be `_ZFZFZF` and `_ZYZYZY`. insta::assert_snapshot!( test.exports_for("test.py"), - @r" + @" _ZFZFZF :: Constant foo :: Module _ZYZYZY :: Constant diff --git a/crates/ty_ide/src/workspace_symbols.rs b/crates/ty_ide/src/workspace_symbols.rs index 60959eb209..492974fcb7 100644 --- a/crates/ty_ide/src/workspace_symbols.rs +++ b/crates/ty_ide/src/workspace_symbols.rs @@ -98,7 +98,7 @@ API_BASE_URL = 'https://api.example.com' ) .build(); - assert_snapshot!(test.workspace_symbols("ufunc"), @r" + assert_snapshot!(test.workspace_symbols("ufunc"), @" info[workspace-symbols]: WorkspaceSymbolInfo --> utils.py:2:5 | @@ -110,7 +110,7 @@ API_BASE_URL = 'https://api.example.com' info: Function utility_function "); - assert_snapshot!(test.workspace_symbols("data"), @r" + assert_snapshot!(test.workspace_symbols("data"), @" info[workspace-symbols]: WorkspaceSymbolInfo --> models.py:2:7 | @@ -122,7 +122,7 @@ API_BASE_URL = 'https://api.example.com' info: Class DataModel "); - assert_snapshot!(test.workspace_symbols("apibase"), @r" + assert_snapshot!(test.workspace_symbols("apibase"), @" info[workspace-symbols]: WorkspaceSymbolInfo --> constants.py:2:1 | @@ -145,7 +145,7 @@ class Test: ) .build(); - assert_snapshot!(test.workspace_symbols("from"), @r" + assert_snapshot!(test.workspace_symbols("from"), @" info[workspace-symbols]: WorkspaceSymbolInfo --> utils.py:3:9 | @@ -170,7 +170,7 @@ class Test: ) .build(); - assert_snapshot!(test.workspace_symbols("from"), @r" + assert_snapshot!(test.workspace_symbols("from"), @" info[workspace-symbols]: WorkspaceSymbolInfo --> utils.py:4:9 | @@ -197,7 +197,7 @@ foo = 1 ) .build(); - assert_snapshot!(test.workspace_symbols("foo"), @r" + assert_snapshot!(test.workspace_symbols("foo"), @" info[workspace-symbols]: WorkspaceSymbolInfo --> utils.py:5:1 | diff --git a/crates/ty_module_resolver/src/list.rs b/crates/ty_module_resolver/src/list.rs index ec7f5d9f1d..219b76683a 100644 --- a/crates/ty_module_resolver/src/list.rs +++ b/crates/ty_module_resolver/src/list.rs @@ -1766,9 +1766,7 @@ not_a_directory insta::assert_debug_snapshot!( list_snapshot(&db), - @r#" - [] - "#, + @"[]", ); } diff --git a/crates/ty_module_resolver/src/typeshed.rs b/crates/ty_module_resolver/src/typeshed.rs index 975c05b21e..f8290129ab 100644 --- a/crates/ty_module_resolver/src/typeshed.rs +++ b/crates/ty_module_resolver/src/typeshed.rs @@ -438,7 +438,7 @@ foo: 3.8- # trailing comment "; let parsed_versions = TypeshedVersions::from_str(VERSIONS).unwrap(); assert_eq!(parsed_versions.len(), 3); - assert_snapshot!(parsed_versions.to_string(), @r" + assert_snapshot!(parsed_versions.to_string(), @" bar: 2.7-3.10 bar.baz: 3.1-3.9 foo: 3.8- diff --git a/crates/ty_project/src/glob/portable.rs b/crates/ty_project/src/glob/portable.rs index dd21666cc4..3e2cd568cb 100644 --- a/crates/ty_project/src/glob/portable.rs +++ b/crates/ty_project/src/glob/portable.rs @@ -335,7 +335,7 @@ mod tests { // Escapes are not allowed in strict PEP 639 mode assert_snapshot!( parse_err(r"public domain/Gulliver\\’s Travels.txt"), - @r"Invalid character ` ` at position 7. hint: Characters can be escaped with a backslash" + @"Invalid character ` ` at position 7. hint: Characters can be escaped with a backslash" ); assert_snapshot!( parse_err(r"**/@test"), @@ -344,11 +344,11 @@ mod tests { // Escaping slashes is not allowed. assert_snapshot!( parse_err(r"licenses\\MIT.txt"), - @r"Path separators can't be escaped, invalid character at position 9" + @"Path separators can't be escaped, invalid character at position 9" ); assert_snapshot!( parse_err(r"licenses\/MIT.txt"), - @r"Path separators can't be escaped, invalid character at position 9" + @"Path separators can't be escaped, invalid character at position 9" ); } diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/annotations.md_-_Assignment_with_anno…_-_PEP-604_in_non-type-…_-_Earlier_versions_(f2859c9800f37c7).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/annotations.md_-_Assignment_with_anno…_-_PEP-604_in_non-type-…_-_Earlier_versions_(f2859c9800f37c7).snap index 4435a4f727..1ccae988b6 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/annotations.md_-_Assignment_with_anno…_-_PEP-604_in_non-type-…_-_Earlier_versions_(f2859c9800f37c7).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/annotations.md_-_Assignment_with_anno…_-_PEP-604_in_non-type-…_-_Earlier_versions_(f2859c9800f37c7).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: annotations.md - Assignment with annotations - PEP-604 in non-type-expression context - Earlier versions mdtest path: crates/ty_python_semantic/resources/mdtest/assignment/annotations.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/assert_never.md_-_`assert_never`_-_Basic_functionality_-_Diagnostics_(be8f5d8b0718ee54).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/assert_never.md_-_`assert_never`_-_Basic_functionality_-_Diagnostics_(be8f5d8b0718ee54).snap index a0576b55e0..eb3889f06b 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/assert_never.md_-_`assert_never`_-_Basic_functionality_-_Diagnostics_(be8f5d8b0718ee54).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/assert_never.md_-_`assert_never`_-_Basic_functionality_-_Diagnostics_(be8f5d8b0718ee54).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: assert_never.md - `assert_never` - Basic functionality - Diagnostics mdtest path: crates/ty_python_semantic/resources/mdtest/directives/assert_never.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/assert_type.md_-_`assert_type`_-_Basic_(c507788da2659ec9).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/assert_type.md_-_`assert_type`_-_Basic_(c507788da2659ec9).snap index e9118a57cb..e2c5f4245f 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/assert_type.md_-_`assert_type`_-_Basic_(c507788da2659ec9).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/assert_type.md_-_`assert_type`_-_Basic_(c507788da2659ec9).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: assert_type.md - `assert_type` - Basic mdtest path: crates/ty_python_semantic/resources/mdtest/directives/assert_type.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_Invalid_key_type_-_For_a_`dict`_(4aa9d1d82d07fcf1).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_Invalid_key_type_-_For_a_`dict`_(4aa9d1d82d07fcf1).snap index f8a358ef54..317e22e94f 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_Invalid_key_type_-_For_a_`dict`_(4aa9d1d82d07fcf1).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_Invalid_key_type_-_For_a_`dict`_(4aa9d1d82d07fcf1).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: assignment_diagnostics.md - Subscript assignment diagnostics - Invalid key type - For a `dict` mdtest path: crates/ty_python_semantic/resources/mdtest/subscript/assignment_diagnostics.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_Invalid_key_type_-_For_a_`list`_(752cfa73fb34c1c).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_Invalid_key_type_-_For_a_`list`_(752cfa73fb34c1c).snap index ed071d6ebd..44f3bf0666 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_Invalid_key_type_-_For_a_`list`_(752cfa73fb34c1c).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_Invalid_key_type_-_For_a_`list`_(752cfa73fb34c1c).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: assignment_diagnostics.md - Subscript assignment diagnostics - Invalid key type - For a `list` mdtest path: crates/ty_python_semantic/resources/mdtest/subscript/assignment_diagnostics.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_Invalid_key_type_for…_(815dae276e2fd2b7).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_Invalid_key_type_for…_(815dae276e2fd2b7).snap index 9fa4cb2eaf..1a8800bb61 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_Invalid_key_type_for…_(815dae276e2fd2b7).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_Invalid_key_type_for…_(815dae276e2fd2b7).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: assignment_diagnostics.md - Subscript assignment diagnostics - Invalid key type for `TypedDict` mdtest path: crates/ty_python_semantic/resources/mdtest/subscript/assignment_diagnostics.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_Invalid_value_type_-_For_a_`dict`_(177872afa1956fef).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_Invalid_value_type_-_For_a_`dict`_(177872afa1956fef).snap index cb34747907..22dab7fcd0 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_Invalid_value_type_-_For_a_`dict`_(177872afa1956fef).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_Invalid_value_type_-_For_a_`dict`_(177872afa1956fef).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: assignment_diagnostics.md - Subscript assignment diagnostics - Invalid value type - For a `dict` mdtest path: crates/ty_python_semantic/resources/mdtest/subscript/assignment_diagnostics.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_Invalid_value_type_-_For_a_`list`_(e7ebbd4af387837c).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_Invalid_value_type_-_For_a_`list`_(e7ebbd4af387837c).snap index 930c15fc5b..a53c2d6cad 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_Invalid_value_type_-_For_a_`list`_(e7ebbd4af387837c).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_Invalid_value_type_-_For_a_`list`_(e7ebbd4af387837c).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: assignment_diagnostics.md - Subscript assignment diagnostics - Invalid value type - For a `list` mdtest path: crates/ty_python_semantic/resources/mdtest/subscript/assignment_diagnostics.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_Invalid_value_type_f…_(155d53762388f9ad).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_Invalid_value_type_f…_(155d53762388f9ad).snap index c2821569ce..4056c8e6fb 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_Invalid_value_type_f…_(155d53762388f9ad).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_Invalid_value_type_f…_(155d53762388f9ad).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: assignment_diagnostics.md - Subscript assignment diagnostics - Invalid value type for `TypedDict` mdtest path: crates/ty_python_semantic/resources/mdtest/subscript/assignment_diagnostics.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_Misspelled_key_for_`…_(7cf0fa634e2a2d59).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_Misspelled_key_for_`…_(7cf0fa634e2a2d59).snap index 029b325cc1..15e44b0e2f 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_Misspelled_key_for_`…_(7cf0fa634e2a2d59).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_Misspelled_key_for_`…_(7cf0fa634e2a2d59).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: assignment_diagnostics.md - Subscript assignment diagnostics - Misspelled key for `TypedDict` mdtest path: crates/ty_python_semantic/resources/mdtest/subscript/assignment_diagnostics.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_No_`__setitem__`_met…_(468f62a3bdd1d60c).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_No_`__setitem__`_met…_(468f62a3bdd1d60c).snap index 0cccff66dc..430aaeb103 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_No_`__setitem__`_met…_(468f62a3bdd1d60c).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_No_`__setitem__`_met…_(468f62a3bdd1d60c).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: assignment_diagnostics.md - Subscript assignment diagnostics - No `__setitem__` method mdtest path: crates/ty_python_semantic/resources/mdtest/subscript/assignment_diagnostics.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_Possibly_missing_`__…_(efd3f0c02e9b89e9).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_Possibly_missing_`__…_(efd3f0c02e9b89e9).snap index ce91a02c70..7211d30704 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_Possibly_missing_`__…_(efd3f0c02e9b89e9).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_Possibly_missing_`__…_(efd3f0c02e9b89e9).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: assignment_diagnostics.md - Subscript assignment diagnostics - Possibly missing `__setitem__` method mdtest path: crates/ty_python_semantic/resources/mdtest/subscript/assignment_diagnostics.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_Unknown_key_for_all_…_(8a0f0e8ceccc51b2).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_Unknown_key_for_all_…_(8a0f0e8ceccc51b2).snap index d3e9c7a656..c63671131a 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_Unknown_key_for_all_…_(8a0f0e8ceccc51b2).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_Unknown_key_for_all_…_(8a0f0e8ceccc51b2).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: assignment_diagnostics.md - Subscript assignment diagnostics - Unknown key for all elements of a union mdtest path: crates/ty_python_semantic/resources/mdtest/subscript/assignment_diagnostics.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_Unknown_key_for_one_…_(b515711c0a451a86).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_Unknown_key_for_one_…_(b515711c0a451a86).snap index f8d48f3721..4d10833f0e 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_Unknown_key_for_one_…_(b515711c0a451a86).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_Unknown_key_for_one_…_(b515711c0a451a86).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: assignment_diagnostics.md - Subscript assignment diagnostics - Unknown key for one element of a union mdtest path: crates/ty_python_semantic/resources/mdtest/subscript/assignment_diagnostics.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_Wrong_value_type_for…_(57372b65e30392a8).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_Wrong_value_type_for…_(57372b65e30392a8).snap index 5df60709e7..558e99c615 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_Wrong_value_type_for…_(57372b65e30392a8).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_Wrong_value_type_for…_(57372b65e30392a8).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: assignment_diagnostics.md - Subscript assignment diagnostics - Wrong value type for one element of a union mdtest path: crates/ty_python_semantic/resources/mdtest/subscript/assignment_diagnostics.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_Wrong_value_type_for…_(ffe39a3bae68cfe4).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_Wrong_value_type_for…_(ffe39a3bae68cfe4).snap index e5f29d9a10..26447fb42d 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_Wrong_value_type_for…_(ffe39a3bae68cfe4).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/assignment_diagnosti…_-_Subscript_assignment…_-_Wrong_value_type_for…_(ffe39a3bae68cfe4).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: assignment_diagnostics.md - Subscript assignment diagnostics - Wrong value type for all elements of a union mdtest path: crates/ty_python_semantic/resources/mdtest/subscript/assignment_diagnostics.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/async.md_-_Async_with_statement…_-_Accidental_use_of_as…_(5b8c1b4d846bc544).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/async.md_-_Async_with_statement…_-_Accidental_use_of_as…_(5b8c1b4d846bc544).snap index 2b6dddc52f..9bdd478aad 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/async.md_-_Async_with_statement…_-_Accidental_use_of_as…_(5b8c1b4d846bc544).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/async.md_-_Async_with_statement…_-_Accidental_use_of_as…_(5b8c1b4d846bc544).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: async.md - Async with statements - Accidental use of async `async with` mdtest path: crates/ty_python_semantic/resources/mdtest/with/async.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/async_for.md_-_Async_-_Error_cases_-_No_`__aiter__`_metho…_(4fbd80e21774cc23).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/async_for.md_-_Async_-_Error_cases_-_No_`__aiter__`_metho…_(4fbd80e21774cc23).snap index e5613631f4..4f47676968 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/async_for.md_-_Async_-_Error_cases_-_No_`__aiter__`_metho…_(4fbd80e21774cc23).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/async_for.md_-_Async_-_Error_cases_-_No_`__aiter__`_metho…_(4fbd80e21774cc23).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: async_for.md - Async - Error cases - No `__aiter__` method mdtest path: crates/ty_python_semantic/resources/mdtest/loops/async_for.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/async_for.md_-_Async_-_Error_cases_-_No_`__anext__`_metho…_(a0b186714127abee).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/async_for.md_-_Async_-_Error_cases_-_No_`__anext__`_metho…_(a0b186714127abee).snap index 3123e9df2e..ed3d8ab8f2 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/async_for.md_-_Async_-_Error_cases_-_No_`__anext__`_metho…_(a0b186714127abee).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/async_for.md_-_Async_-_Error_cases_-_No_`__anext__`_metho…_(a0b186714127abee).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: async_for.md - Async - Error cases - No `__anext__` method mdtest path: crates/ty_python_semantic/resources/mdtest/loops/async_for.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/async_for.md_-_Async_-_Error_cases_-_Possibly_missing_`__…_(33924dbae5117216).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/async_for.md_-_Async_-_Error_cases_-_Possibly_missing_`__…_(33924dbae5117216).snap index e3197f030d..60b0b0c576 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/async_for.md_-_Async_-_Error_cases_-_Possibly_missing_`__…_(33924dbae5117216).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/async_for.md_-_Async_-_Error_cases_-_Possibly_missing_`__…_(33924dbae5117216).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: async_for.md - Async - Error cases - Possibly missing `__aiter__` method mdtest path: crates/ty_python_semantic/resources/mdtest/loops/async_for.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/async_for.md_-_Async_-_Error_cases_-_Possibly_missing_`__…_(e2600ca4708d9e54).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/async_for.md_-_Async_-_Error_cases_-_Possibly_missing_`__…_(e2600ca4708d9e54).snap index c563eca460..78b67bae42 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/async_for.md_-_Async_-_Error_cases_-_Possibly_missing_`__…_(e2600ca4708d9e54).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/async_for.md_-_Async_-_Error_cases_-_Possibly_missing_`__…_(e2600ca4708d9e54).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: async_for.md - Async - Error cases - Possibly missing `__anext__` method mdtest path: crates/ty_python_semantic/resources/mdtest/loops/async_for.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/async_for.md_-_Async_-_Error_cases_-_Synchronously_iterab…_(80fa705b1c61d982).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/async_for.md_-_Async_-_Error_cases_-_Synchronously_iterab…_(80fa705b1c61d982).snap index 74d072df7c..749e3ce21b 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/async_for.md_-_Async_-_Error_cases_-_Synchronously_iterab…_(80fa705b1c61d982).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/async_for.md_-_Async_-_Error_cases_-_Synchronously_iterab…_(80fa705b1c61d982).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: async_for.md - Async - Error cases - Synchronously iterable, but not asynchronously iterable mdtest path: crates/ty_python_semantic/resources/mdtest/loops/async_for.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/async_for.md_-_Async_-_Error_cases_-_Wrong_signature_for_…_(b614724363eec343).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/async_for.md_-_Async_-_Error_cases_-_Wrong_signature_for_…_(b614724363eec343).snap index 290aed4af8..e437d75d32 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/async_for.md_-_Async_-_Error_cases_-_Wrong_signature_for_…_(b614724363eec343).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/async_for.md_-_Async_-_Error_cases_-_Wrong_signature_for_…_(b614724363eec343).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: async_for.md - Async - Error cases - Wrong signature for `__anext__` mdtest path: crates/ty_python_semantic/resources/mdtest/loops/async_for.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/async_for.md_-_Async_-_Error_cases_-_Wrong_signature_for_…_(e1f3e9275d0a367).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/async_for.md_-_Async_-_Error_cases_-_Wrong_signature_for_…_(e1f3e9275d0a367).snap index 6dd3a1bfa0..c0445955ab 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/async_for.md_-_Async_-_Error_cases_-_Wrong_signature_for_…_(e1f3e9275d0a367).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/async_for.md_-_Async_-_Error_cases_-_Wrong_signature_for_…_(e1f3e9275d0a367).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: async_for.md - Async - Error cases - Wrong signature for `__aiter__` mdtest path: crates/ty_python_semantic/resources/mdtest/loops/async_for.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/attribute_assignment…_-_Attribute_assignment_-_Data_descriptors_-_Invalid_`__set__`_me…_(116c27bd98838df7).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/attribute_assignment…_-_Attribute_assignment_-_Data_descriptors_-_Invalid_`__set__`_me…_(116c27bd98838df7).snap index 3cdd4bf7ac..3b41b37cfc 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/attribute_assignment…_-_Attribute_assignment_-_Data_descriptors_-_Invalid_`__set__`_me…_(116c27bd98838df7).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/attribute_assignment…_-_Attribute_assignment_-_Data_descriptors_-_Invalid_`__set__`_me…_(116c27bd98838df7).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: attribute_assignment.md - Attribute assignment - Data descriptors - Invalid `__set__` method signature mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/attribute_assignment.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/attribute_assignment…_-_Attribute_assignment_-_Data_descriptors_-_Invalid_argument_typ…_(a903c11fedbc5020).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/attribute_assignment…_-_Attribute_assignment_-_Data_descriptors_-_Invalid_argument_typ…_(a903c11fedbc5020).snap index 850a5b3cea..2587b23995 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/attribute_assignment…_-_Attribute_assignment_-_Data_descriptors_-_Invalid_argument_typ…_(a903c11fedbc5020).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/attribute_assignment…_-_Attribute_assignment_-_Data_descriptors_-_Invalid_argument_typ…_(a903c11fedbc5020).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: attribute_assignment.md - Attribute assignment - Data descriptors - Invalid argument type mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/attribute_assignment.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/attribute_assignment…_-_Attribute_assignment_-_Instance_attributes_…_(ebfb3de6d1b96b23).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/attribute_assignment…_-_Attribute_assignment_-_Instance_attributes_…_(ebfb3de6d1b96b23).snap index 9b62b2d7ff..a06cdef7a1 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/attribute_assignment…_-_Attribute_assignment_-_Instance_attributes_…_(ebfb3de6d1b96b23).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/attribute_assignment…_-_Attribute_assignment_-_Instance_attributes_…_(ebfb3de6d1b96b23).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: attribute_assignment.md - Attribute assignment - Instance attributes with class-level defaults mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/attribute_assignment.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/attribute_assignment…_-_Attribute_assignment_-_Possibly-missing_att…_(e603e3da35f55c73).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/attribute_assignment…_-_Attribute_assignment_-_Possibly-missing_att…_(e603e3da35f55c73).snap index 420b92e5a7..8f5e1bf456 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/attribute_assignment…_-_Attribute_assignment_-_Possibly-missing_att…_(e603e3da35f55c73).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/attribute_assignment…_-_Attribute_assignment_-_Possibly-missing_att…_(e603e3da35f55c73).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: attribute_assignment.md - Attribute assignment - Possibly-missing attributes mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/attribute_assignment.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/attribute_assignment…_-_Attribute_assignment_-_Pure_instance_attrib…_(d13d57d3cc36face).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/attribute_assignment…_-_Attribute_assignment_-_Pure_instance_attrib…_(d13d57d3cc36face).snap index 27df8aba96..67e05d37fb 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/attribute_assignment…_-_Attribute_assignment_-_Pure_instance_attrib…_(d13d57d3cc36face).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/attribute_assignment…_-_Attribute_assignment_-_Pure_instance_attrib…_(d13d57d3cc36face).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: attribute_assignment.md - Attribute assignment - Pure instance attributes mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/attribute_assignment.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/attribute_assignment…_-_Attribute_assignment_-_Setting_attributes_o…_(467e26496f4c0c13).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/attribute_assignment…_-_Attribute_assignment_-_Setting_attributes_o…_(467e26496f4c0c13).snap index 5e7f50ebce..6eed7eb941 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/attribute_assignment…_-_Attribute_assignment_-_Setting_attributes_o…_(467e26496f4c0c13).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/attribute_assignment…_-_Attribute_assignment_-_Setting_attributes_o…_(467e26496f4c0c13).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: attribute_assignment.md - Attribute assignment - Setting attributes on union types mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/attribute_assignment.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/attribute_assignment…_-_Attribute_assignment_-_Unknown_attributes_(368ba83a71ef2120).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/attribute_assignment…_-_Attribute_assignment_-_Unknown_attributes_(368ba83a71ef2120).snap index c7beb2d87f..02eb6f9eff 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/attribute_assignment…_-_Attribute_assignment_-_Unknown_attributes_(368ba83a71ef2120).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/attribute_assignment…_-_Attribute_assignment_-_Unknown_attributes_(368ba83a71ef2120).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: attribute_assignment.md - Attribute assignment - Unknown attributes mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/attribute_assignment.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/attribute_assignment…_-_Attribute_assignment_-_`ClassVar`s_(8d7cca27987b099d).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/attribute_assignment…_-_Attribute_assignment_-_`ClassVar`s_(8d7cca27987b099d).snap index f623fe78e7..2c3418a84a 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/attribute_assignment…_-_Attribute_assignment_-_`ClassVar`s_(8d7cca27987b099d).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/attribute_assignment…_-_Attribute_assignment_-_`ClassVar`s_(8d7cca27987b099d).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: attribute_assignment.md - Attribute assignment - `ClassVar`s mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/attribute_assignment.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/attributes.md_-_Attributes_-_Attributes_of_standa…_(49ba2c9016d64653).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/attributes.md_-_Attributes_-_Attributes_of_standa…_(49ba2c9016d64653).snap index 29137c8c9c..2045ec9c80 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/attributes.md_-_Attributes_-_Attributes_of_standa…_(49ba2c9016d64653).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/attributes.md_-_Attributes_-_Attributes_of_standa…_(49ba2c9016d64653).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: attributes.md - Attributes - Attributes of standard library modules that aren't yet defined mdtest path: crates/ty_python_semantic/resources/mdtest/attributes.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/attributes.md_-_Attributes_-_Diagnostic_for_funct…_(340818ba77052e65).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/attributes.md_-_Attributes_-_Diagnostic_for_funct…_(340818ba77052e65).snap index 58caef8f00..01269b5a9e 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/attributes.md_-_Attributes_-_Diagnostic_for_funct…_(340818ba77052e65).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/attributes.md_-_Attributes_-_Diagnostic_for_funct…_(340818ba77052e65).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: attributes.md - Attributes - Diagnostic for function attribute accessed on `Callable` type mdtest path: crates/ty_python_semantic/resources/mdtest/attributes.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/attributes.md_-_Attributes_-_Invalid_access_to_at…_(5457445ffed43a87).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/attributes.md_-_Attributes_-_Invalid_access_to_at…_(5457445ffed43a87).snap index fc16938a28..ec09b51214 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/attributes.md_-_Attributes_-_Invalid_access_to_at…_(5457445ffed43a87).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/attributes.md_-_Attributes_-_Invalid_access_to_at…_(5457445ffed43a87).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: attributes.md - Attributes - Invalid access to attribute mdtest path: crates/ty_python_semantic/resources/mdtest/attributes.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/attributes.md_-_Attributes_-_Unimported_submodule…_(2b6da09ed380b2).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/attributes.md_-_Attributes_-_Unimported_submodule…_(2b6da09ed380b2).snap index b60183e3e9..429af2ee5a 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/attributes.md_-_Attributes_-_Unimported_submodule…_(2b6da09ed380b2).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/attributes.md_-_Attributes_-_Unimported_submodule…_(2b6da09ed380b2).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: attributes.md - Attributes - Unimported submodule incorrectly accessed as attribute mdtest path: crates/ty_python_semantic/resources/mdtest/attributes.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/augmented.md_-_Augmented_assignment_-_Unsupported_types_(a041d9e40c83a8ac).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/augmented.md_-_Augmented_assignment_-_Unsupported_types_(a041d9e40c83a8ac).snap index 0093cf5e4f..5cbea7d94a 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/augmented.md_-_Augmented_assignment_-_Unsupported_types_(a041d9e40c83a8ac).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/augmented.md_-_Augmented_assignment_-_Unsupported_types_(a041d9e40c83a8ac).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: augmented.md - Augmented assignment - Unsupported types mdtest path: crates/ty_python_semantic/resources/mdtest/assignment/augmented.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/basic.md_-_Exception_Handling_-_Invalid_exception_ha…_(d394c561bdd35078).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/basic.md_-_Exception_Handling_-_Invalid_exception_ha…_(d394c561bdd35078).snap index 3734ba3756..664562051b 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/basic.md_-_Exception_Handling_-_Invalid_exception_ha…_(d394c561bdd35078).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/basic.md_-_Exception_Handling_-_Invalid_exception_ha…_(d394c561bdd35078).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: basic.md - Exception Handling - Invalid exception handlers mdtest path: crates/ty_python_semantic/resources/mdtest/exception/basic.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/basic.md_-_Exception_Handling_-_Special-cased_diagno…_(a97274530a7f61c1).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/basic.md_-_Exception_Handling_-_Special-cased_diagno…_(a97274530a7f61c1).snap index 3791111451..be536f356a 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/basic.md_-_Exception_Handling_-_Special-cased_diagno…_(a97274530a7f61c1).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/basic.md_-_Exception_Handling_-_Special-cased_diagno…_(a97274530a7f61c1).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: basic.md - Exception Handling - Special-cased diagnostics for `NotImplemented` mdtest path: crates/ty_python_semantic/resources/mdtest/exception/basic.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/basic.md_-_Structures_-_Attempting_to_import…_(2fcfcf567587a056).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/basic.md_-_Structures_-_Attempting_to_import…_(2fcfcf567587a056).snap index dd2756ab92..eca43f7df8 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/basic.md_-_Structures_-_Attempting_to_import…_(2fcfcf567587a056).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/basic.md_-_Structures_-_Attempting_to_import…_(2fcfcf567587a056).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: basic.md - Structures - Attempting to import a stdlib module that's not yet been added mdtest path: crates/ty_python_semantic/resources/mdtest/import/basic.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/basic.md_-_Structures_-_Attempting_to_import…_(c14954eefd15211f).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/basic.md_-_Structures_-_Attempting_to_import…_(c14954eefd15211f).snap index 964ecc9e64..f93a8e0fd2 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/basic.md_-_Structures_-_Attempting_to_import…_(c14954eefd15211f).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/basic.md_-_Structures_-_Attempting_to_import…_(c14954eefd15211f).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: basic.md - Structures - Attempting to import a stdlib module that was previously removed mdtest path: crates/ty_python_semantic/resources/mdtest/import/basic.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/basic.md_-_Structures_-_Attempting_to_import…_(dba22bd97137ee38).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/basic.md_-_Structures_-_Attempting_to_import…_(dba22bd97137ee38).snap index cc712bb06e..ab694332f8 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/basic.md_-_Structures_-_Attempting_to_import…_(dba22bd97137ee38).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/basic.md_-_Structures_-_Attempting_to_import…_(dba22bd97137ee38).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: basic.md - Structures - Attempting to import a stdlib submodule when both parts haven't yet been added mdtest path: crates/ty_python_semantic/resources/mdtest/import/basic.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/basic.md_-_Structures_-_Multiple_objects_imp…_(cbfbf5ff94e6e104).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/basic.md_-_Structures_-_Multiple_objects_imp…_(cbfbf5ff94e6e104).snap index 79600310ea..8c2c3f8288 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/basic.md_-_Structures_-_Multiple_objects_imp…_(cbfbf5ff94e6e104).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/basic.md_-_Structures_-_Multiple_objects_imp…_(cbfbf5ff94e6e104).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: basic.md - Structures - Multiple objects imported from an unresolved module mdtest path: crates/ty_python_semantic/resources/mdtest/import/basic.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/basic.md_-_Structures_-_Unresolvable_module_…_(846453deaca1071c).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/basic.md_-_Structures_-_Unresolvable_module_…_(846453deaca1071c).snap index af7b769b1f..248e24b978 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/basic.md_-_Structures_-_Unresolvable_module_…_(846453deaca1071c).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/basic.md_-_Structures_-_Unresolvable_module_…_(846453deaca1071c).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: basic.md - Structures - Unresolvable module import mdtest path: crates/ty_python_semantic/resources/mdtest/import/basic.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/basic.md_-_Structures_-_Unresolvable_submodu…_(4fad4be9778578b7).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/basic.md_-_Structures_-_Unresolvable_submodu…_(4fad4be9778578b7).snap index f6ecd692f3..5d645895d2 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/basic.md_-_Structures_-_Unresolvable_submodu…_(4fad4be9778578b7).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/basic.md_-_Structures_-_Unresolvable_submodu…_(4fad4be9778578b7).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: basic.md - Structures - Unresolvable submodule imports mdtest path: crates/ty_python_semantic/resources/mdtest/import/basic.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/builtins.md_-_Calling_builtins_-_The_builtin_`NotImpl…_(ac366391ebdec9c0).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/builtins.md_-_Calling_builtins_-_The_builtin_`NotImpl…_(ac366391ebdec9c0).snap index 0e6ea4d536..9f5d01837f 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/builtins.md_-_Calling_builtins_-_The_builtin_`NotImpl…_(ac366391ebdec9c0).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/builtins.md_-_Calling_builtins_-_The_builtin_`NotImpl…_(ac366391ebdec9c0).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: builtins.md - Calling builtins - The builtin `NotImplemented` constant is not callable mdtest path: crates/ty_python_semantic/resources/mdtest/call/builtins.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/cast.md_-_`cast`_-_Diagnostic_snapshots_(91dd3d45b6d7f2c8).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/cast.md_-_`cast`_-_Diagnostic_snapshots_(91dd3d45b6d7f2c8).snap index fe3aeb92e7..38b3c76017 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/cast.md_-_`cast`_-_Diagnostic_snapshots_(91dd3d45b6d7f2c8).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/cast.md_-_`cast`_-_Diagnostic_snapshots_(91dd3d45b6d7f2c8).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: cast.md - `cast` - Diagnostic snapshots mdtest path: crates/ty_python_semantic/resources/mdtest/directives/cast.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/classes.md_-_Generic_classes___Leg…_-_Diagnostics_for_bad_…_(2ceba7b720e21b8b).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/classes.md_-_Generic_classes___Leg…_-_Diagnostics_for_bad_…_(2ceba7b720e21b8b).snap index 59aaa2d5dd..f94ee77c2e 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/classes.md_-_Generic_classes___Leg…_-_Diagnostics_for_bad_…_(2ceba7b720e21b8b).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/classes.md_-_Generic_classes___Leg…_-_Diagnostics_for_bad_…_(2ceba7b720e21b8b).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: classes.md - Generic classes: Legacy syntax - Diagnostics for bad specializations mdtest path: crates/ty_python_semantic/resources/mdtest/generics/legacy/classes.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/classes.md_-_Generic_classes___PEP…_-_Diagnostics_for_bad_…_(cf706b07cf0ec31f).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/classes.md_-_Generic_classes___PEP…_-_Diagnostics_for_bad_…_(cf706b07cf0ec31f).snap index 56692b997e..34d7ad481c 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/classes.md_-_Generic_classes___PEP…_-_Diagnostics_for_bad_…_(cf706b07cf0ec31f).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/classes.md_-_Generic_classes___PEP…_-_Diagnostics_for_bad_…_(cf706b07cf0ec31f).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: classes.md - Generic classes: PEP 695 syntax - Diagnostics for bad specializations mdtest path: crates/ty_python_semantic/resources/mdtest/generics/pep695/classes.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/custom.md_-_Custom_binary_operat…_-_Classes_(93f2f1c488e06f53).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/custom.md_-_Custom_binary_operat…_-_Classes_(93f2f1c488e06f53).snap index 038ac1c411..4119d15064 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/custom.md_-_Custom_binary_operat…_-_Classes_(93f2f1c488e06f53).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/custom.md_-_Custom_binary_operat…_-_Classes_(93f2f1c488e06f53).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: custom.md - Custom binary operations - Classes mdtest path: crates/ty_python_semantic/resources/mdtest/binary/custom.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/custom.md_-_Custom_binary_operat…_-_Classes_from_differe…_(2890e4875c9b9c1e).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/custom.md_-_Custom_binary_operat…_-_Classes_from_differe…_(2890e4875c9b9c1e).snap index 5591be03d7..db8fdcee94 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/custom.md_-_Custom_binary_operat…_-_Classes_from_differe…_(2890e4875c9b9c1e).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/custom.md_-_Custom_binary_operat…_-_Classes_from_differe…_(2890e4875c9b9c1e).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: custom.md - Custom binary operations - Classes from different modules with the same name mdtest path: crates/ty_python_semantic/resources/mdtest/binary/custom.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/dataclasses.md_-_Dataclasses_-_Other_dataclass_para…_-_frozen__non-frozen_in…_(9af2ab07b8e829e).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/dataclasses.md_-_Dataclasses_-_Other_dataclass_para…_-_frozen__non-frozen_in…_(9af2ab07b8e829e).snap index 3b3a006b6e..fc2dc77a44 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/dataclasses.md_-_Dataclasses_-_Other_dataclass_para…_-_frozen__non-frozen_in…_(9af2ab07b8e829e).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/dataclasses.md_-_Dataclasses_-_Other_dataclass_para…_-_frozen__non-frozen_in…_(9af2ab07b8e829e).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: dataclasses.md - Dataclasses - Other dataclass parameters - frozen/non-frozen inheritance mdtest path: crates/ty_python_semantic/resources/mdtest/dataclasses/dataclasses.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/dataclasses.md_-_Dataclasses_-_`dataclasses.KW_ONLY…_(dd1b8f2f71487f16).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/dataclasses.md_-_Dataclasses_-_`dataclasses.KW_ONLY…_(dd1b8f2f71487f16).snap index 02328d725a..140996b456 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/dataclasses.md_-_Dataclasses_-_`dataclasses.KW_ONLY…_(dd1b8f2f71487f16).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/dataclasses.md_-_Dataclasses_-_`dataclasses.KW_ONLY…_(dd1b8f2f71487f16).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: dataclasses.md - Dataclasses - `dataclasses.KW_ONLY` mdtest path: crates/ty_python_semantic/resources/mdtest/dataclasses/dataclasses.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/del.md_-_`del`_statement_-_Delete_items_-_TypedDict_deletion_(1168a65357694229).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/del.md_-_`del`_statement_-_Delete_items_-_TypedDict_deletion_(1168a65357694229).snap index 7442526c0d..f070b3d42c 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/del.md_-_`del`_statement_-_Delete_items_-_TypedDict_deletion_(1168a65357694229).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/del.md_-_`del`_statement_-_Delete_items_-_TypedDict_deletion_(1168a65357694229).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: del.md - `del` statement - Delete items - TypedDict deletion mdtest path: crates/ty_python_semantic/resources/mdtest/del.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/deprecated.md_-_Tests_for_the_`@depr…_-_Introduction_(cff2724f4c9d28c4).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/deprecated.md_-_Tests_for_the_`@depr…_-_Introduction_(cff2724f4c9d28c4).snap index 4e4d8f0ae7..73cc21c63f 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/deprecated.md_-_Tests_for_the_`@depr…_-_Introduction_(cff2724f4c9d28c4).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/deprecated.md_-_Tests_for_the_`@depr…_-_Introduction_(cff2724f4c9d28c4).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: deprecated.md - Tests for the `@deprecated` decorator - Introduction mdtest path: crates/ty_python_semantic/resources/mdtest/deprecated.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/deprecated.md_-_Tests_for_the_`@depr…_-_Syntax_(142fa2948c3c6cf1).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/deprecated.md_-_Tests_for_the_`@depr…_-_Syntax_(142fa2948c3c6cf1).snap index 1b485db25a..b08b16b923 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/deprecated.md_-_Tests_for_the_`@depr…_-_Syntax_(142fa2948c3c6cf1).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/deprecated.md_-_Tests_for_the_`@depr…_-_Syntax_(142fa2948c3c6cf1).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: deprecated.md - Tests for the `@deprecated` decorator - Syntax mdtest path: crates/ty_python_semantic/resources/mdtest/deprecated.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/descriptor_protocol.…_-_Descriptor_protocol_-_Special_descriptors_-_Properties_with_no_s…_(176795bc1727dda7).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/descriptor_protocol.…_-_Descriptor_protocol_-_Special_descriptors_-_Properties_with_no_s…_(176795bc1727dda7).snap index 3590d7e0ec..11f89ba4d3 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/descriptor_protocol.…_-_Descriptor_protocol_-_Special_descriptors_-_Properties_with_no_s…_(176795bc1727dda7).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/descriptor_protocol.…_-_Descriptor_protocol_-_Special_descriptors_-_Properties_with_no_s…_(176795bc1727dda7).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: descriptor_protocol.md - Descriptor protocol - Special descriptors - Properties with no setters mdtest path: crates/ty_python_semantic/resources/mdtest/descriptor_protocol.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/final.md_-_Tests_for_the_`@typi…_-_A_possibly-undefined…_(fc7b496fd1986deb).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/final.md_-_Tests_for_the_`@typi…_-_A_possibly-undefined…_(fc7b496fd1986deb).snap index a334b68c4e..e758257e92 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/final.md_-_Tests_for_the_`@typi…_-_A_possibly-undefined…_(fc7b496fd1986deb).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/final.md_-_Tests_for_the_`@typi…_-_A_possibly-undefined…_(fc7b496fd1986deb).snap @@ -1,8 +1,8 @@ --- source: crates/ty_test/src/lib.rs -assertion_line: 623 expression: snapshot --- + --- mdtest name: final.md - Tests for the `@typing(_extensions).final` decorator - A possibly-undefined `@final` method is overridden mdtest path: crates/ty_python_semantic/resources/mdtest/final.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/final.md_-_Tests_for_the_`@typi…_-_Cannot_override_a_me…_(338615109711a91b).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/final.md_-_Tests_for_the_`@typi…_-_Cannot_override_a_me…_(338615109711a91b).snap index 36c9e2e548..90573ad938 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/final.md_-_Tests_for_the_`@typi…_-_Cannot_override_a_me…_(338615109711a91b).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/final.md_-_Tests_for_the_`@typi…_-_Cannot_override_a_me…_(338615109711a91b).snap @@ -1,8 +1,8 @@ --- source: crates/ty_test/src/lib.rs -assertion_line: 623 expression: snapshot --- + --- mdtest name: final.md - Tests for the `@typing(_extensions).final` decorator - Cannot override a method decorated with `@final` mdtest path: crates/ty_python_semantic/resources/mdtest/final.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/final.md_-_Tests_for_the_`@typi…_-_Diagnostic_edge_case…_(2389d52c5ecfa2bd).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/final.md_-_Tests_for_the_`@typi…_-_Diagnostic_edge_case…_(2389d52c5ecfa2bd).snap index 9282af1cea..24fa31046d 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/final.md_-_Tests_for_the_`@typi…_-_Diagnostic_edge_case…_(2389d52c5ecfa2bd).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/final.md_-_Tests_for_the_`@typi…_-_Diagnostic_edge_case…_(2389d52c5ecfa2bd).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: final.md - Tests for the `@typing(_extensions).final` decorator - Diagnostic edge case: superclass with `@final` method has the same name as the subclass mdtest path: crates/ty_python_semantic/resources/mdtest/final.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/final.md_-_Tests_for_the_`@typi…_-_Only_the_first_`@fin…_(9863b583f4c651c5).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/final.md_-_Tests_for_the_`@typi…_-_Only_the_first_`@fin…_(9863b583f4c651c5).snap index 9f1c33a07d..c69471df30 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/final.md_-_Tests_for_the_`@typi…_-_Only_the_first_`@fin…_(9863b583f4c651c5).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/final.md_-_Tests_for_the_`@typi…_-_Only_the_first_`@fin…_(9863b583f4c651c5).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: final.md - Tests for the `@typing(_extensions).final` decorator - Only the first `@final` violation is reported mdtest path: crates/ty_python_semantic/resources/mdtest/final.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/final.md_-_Tests_for_the_`@typi…_-_Overloaded_methods_d…_(861757f48340ed92).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/final.md_-_Tests_for_the_`@typi…_-_Overloaded_methods_d…_(861757f48340ed92).snap index fdac5da7c0..ef0d7b057f 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/final.md_-_Tests_for_the_`@typi…_-_Overloaded_methods_d…_(861757f48340ed92).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/final.md_-_Tests_for_the_`@typi…_-_Overloaded_methods_d…_(861757f48340ed92).snap @@ -1,8 +1,8 @@ --- source: crates/ty_test/src/lib.rs -assertion_line: 623 expression: snapshot --- + --- mdtest name: final.md - Tests for the `@typing(_extensions).final` decorator - Overloaded methods decorated with `@final` mdtest path: crates/ty_python_semantic/resources/mdtest/final.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/final.md_-_Tests_for_the_`@typi…_-_Overloads_in_statica…_(29a698d9deaf7318).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/final.md_-_Tests_for_the_`@typi…_-_Overloads_in_statica…_(29a698d9deaf7318).snap index fabea719d2..452942063e 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/final.md_-_Tests_for_the_`@typi…_-_Overloads_in_statica…_(29a698d9deaf7318).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/final.md_-_Tests_for_the_`@typi…_-_Overloads_in_statica…_(29a698d9deaf7318).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: final.md - Tests for the `@typing(_extensions).final` decorator - Overloads in statically-known branches in stub files mdtest path: crates/ty_python_semantic/resources/mdtest/final.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/final.md_-_`typing.Final`_-_Full_diagnostics_(174fdd8134fb325b).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/final.md_-_`typing.Final`_-_Full_diagnostics_(174fdd8134fb325b).snap index 77b57442e8..e197afa9f2 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/final.md_-_`typing.Final`_-_Full_diagnostics_(174fdd8134fb325b).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/final.md_-_`typing.Final`_-_Full_diagnostics_(174fdd8134fb325b).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: final.md - `typing.Final` - Full diagnostics mdtest path: crates/ty_python_semantic/resources/mdtest/type_qualifiers/final.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_Bad_`__getitem__`_me…_(3ffe352bb3a76715).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_Bad_`__getitem__`_me…_(3ffe352bb3a76715).snap index 35b07a080c..d03a70b2c4 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_Bad_`__getitem__`_me…_(3ffe352bb3a76715).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_Bad_`__getitem__`_me…_(3ffe352bb3a76715).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: for.md - For loops - Bad `__getitem__` method mdtest path: crates/ty_python_semantic/resources/mdtest/loops/for.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_Invalid_iterable_(3153247bb9a9b72a).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_Invalid_iterable_(3153247bb9a9b72a).snap index 5ccdf53de3..39640e3409 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_Invalid_iterable_(3153247bb9a9b72a).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_Invalid_iterable_(3153247bb9a9b72a).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: for.md - For loops - Invalid iterable mdtest path: crates/ty_python_semantic/resources/mdtest/loops/for.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_New_over_old_style_i…_(a90ba167a7c191eb).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_New_over_old_style_i…_(a90ba167a7c191eb).snap index 9a1a1fd62f..d311c9da22 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_New_over_old_style_i…_(a90ba167a7c191eb).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_New_over_old_style_i…_(a90ba167a7c191eb).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: for.md - For loops - New over old style iteration protocol mdtest path: crates/ty_python_semantic/resources/mdtest/loops/for.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_No_`__iter__`_method…_(36425dbcbd793d2b).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_No_`__iter__`_method…_(36425dbcbd793d2b).snap index 356132982d..4e9da0a6d6 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_No_`__iter__`_method…_(36425dbcbd793d2b).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_No_`__iter__`_method…_(36425dbcbd793d2b).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: for.md - For loops - No `__iter__` method and `__getitem__` is not callable mdtest path: crates/ty_python_semantic/resources/mdtest/loops/for.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_Possibly-not-callabl…_(49a21e4b7fe6e97b).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_Possibly-not-callabl…_(49a21e4b7fe6e97b).snap index 58ceae4187..127807c467 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_Possibly-not-callabl…_(49a21e4b7fe6e97b).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_Possibly-not-callabl…_(49a21e4b7fe6e97b).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: for.md - For loops - Possibly-not-callable `__getitem__` method mdtest path: crates/ty_python_semantic/resources/mdtest/loops/for.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_Possibly_invalid_`__…_(6388761c90a0555c).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_Possibly_invalid_`__…_(6388761c90a0555c).snap index d36ae95142..fe43e8ab2c 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_Possibly_invalid_`__…_(6388761c90a0555c).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_Possibly_invalid_`__…_(6388761c90a0555c).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: for.md - For loops - Possibly invalid `__iter__` methods mdtest path: crates/ty_python_semantic/resources/mdtest/loops/for.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_Possibly_invalid_`__…_(6805a6032e504b63).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_Possibly_invalid_`__…_(6805a6032e504b63).snap index dfa5173a1e..dd6ae5cbd4 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_Possibly_invalid_`__…_(6805a6032e504b63).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_Possibly_invalid_`__…_(6805a6032e504b63).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: for.md - For loops - Possibly invalid `__getitem__` methods mdtest path: crates/ty_python_semantic/resources/mdtest/loops/for.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_Possibly_invalid_`__…_(c626bde8651b643a).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_Possibly_invalid_`__…_(c626bde8651b643a).snap index e4fb5e4576..62ad428a21 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_Possibly_invalid_`__…_(c626bde8651b643a).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_Possibly_invalid_`__…_(c626bde8651b643a).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: for.md - For loops - Possibly invalid `__next__` method mdtest path: crates/ty_python_semantic/resources/mdtest/loops/for.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_Possibly_missing_`__…_(77269542b8e81774).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_Possibly_missing_`__…_(77269542b8e81774).snap index 16b74d788c..8e03240782 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_Possibly_missing_`__…_(77269542b8e81774).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_Possibly_missing_`__…_(77269542b8e81774).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: for.md - For loops - Possibly missing `__iter__` and possibly invalid `__getitem__` mdtest path: crates/ty_python_semantic/resources/mdtest/loops/for.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_Possibly_missing_`__…_(9f781babda99d74b).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_Possibly_missing_`__…_(9f781babda99d74b).snap index 2e0457bc4d..0caf9e2ba1 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_Possibly_missing_`__…_(9f781babda99d74b).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_Possibly_missing_`__…_(9f781babda99d74b).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: for.md - For loops - Possibly missing `__iter__` and bad `__getitem__` method mdtest path: crates/ty_python_semantic/resources/mdtest/loops/for.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_Possibly_missing_`__…_(d8a02a0fcbb390a3).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_Possibly_missing_`__…_(d8a02a0fcbb390a3).snap index b41da99a08..d27598fe59 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_Possibly_missing_`__…_(d8a02a0fcbb390a3).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_Possibly_missing_`__…_(d8a02a0fcbb390a3).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: for.md - For loops - Possibly missing `__iter__` and possibly missing `__getitem__` mdtest path: crates/ty_python_semantic/resources/mdtest/loops/for.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_Union_type_as_iterab…_(6177bb6d13a22241).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_Union_type_as_iterab…_(6177bb6d13a22241).snap index 0a5173b109..b8ea7eb548 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_Union_type_as_iterab…_(6177bb6d13a22241).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_Union_type_as_iterab…_(6177bb6d13a22241).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: for.md - For loops - Union type as iterable where one union element has invalid `__iter__` method mdtest path: crates/ty_python_semantic/resources/mdtest/loops/for.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_Union_type_as_iterab…_(ba36fbef63a14969).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_Union_type_as_iterab…_(ba36fbef63a14969).snap index 7a9a395bd4..753054cb48 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_Union_type_as_iterab…_(ba36fbef63a14969).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_Union_type_as_iterab…_(ba36fbef63a14969).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: for.md - For loops - Union type as iterable where one union element has no `__iter__` method mdtest path: crates/ty_python_semantic/resources/mdtest/loops/for.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_With_non-callable_it…_(a1cdf01ad69ac37c).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_With_non-callable_it…_(a1cdf01ad69ac37c).snap index 52f88e823a..9f2caf6fce 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_With_non-callable_it…_(a1cdf01ad69ac37c).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_With_non-callable_it…_(a1cdf01ad69ac37c).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: for.md - For loops - With non-callable iterator mdtest path: crates/ty_python_semantic/resources/mdtest/loops/for.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_`__iter__`_does_not_…_(92e3fdd69edad63d).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_`__iter__`_does_not_…_(92e3fdd69edad63d).snap index 05eea5a6ca..588e538c52 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_`__iter__`_does_not_…_(92e3fdd69edad63d).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_`__iter__`_does_not_…_(92e3fdd69edad63d).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: for.md - For loops - `__iter__` does not return an iterator mdtest path: crates/ty_python_semantic/resources/mdtest/loops/for.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_`__iter__`_method_wi…_(1136c0e783d61ba4).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_`__iter__`_method_wi…_(1136c0e783d61ba4).snap index 340c169cde..0f018d2056 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_`__iter__`_method_wi…_(1136c0e783d61ba4).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_`__iter__`_method_wi…_(1136c0e783d61ba4).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: for.md - For loops - `__iter__` method with a bad signature mdtest path: crates/ty_python_semantic/resources/mdtest/loops/for.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_`__iter__`_returns_a…_(707bd02a22c4acc8).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_`__iter__`_returns_a…_(707bd02a22c4acc8).snap index e29a88efa8..cfdf825849 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_`__iter__`_returns_a…_(707bd02a22c4acc8).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_`__iter__`_returns_a…_(707bd02a22c4acc8).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: for.md - For loops - `__iter__` returns an iterator with an invalid `__next__` method mdtest path: crates/ty_python_semantic/resources/mdtest/loops/for.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/function.md_-_Call_expression_-_Wrong_argument_type_-_Diagnostics_for_unio…_(5396a8f9e7f88f71).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/function.md_-_Call_expression_-_Wrong_argument_type_-_Diagnostics_for_unio…_(5396a8f9e7f88f71).snap index 83d62e6d23..722f87f922 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/function.md_-_Call_expression_-_Wrong_argument_type_-_Diagnostics_for_unio…_(5396a8f9e7f88f71).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/function.md_-_Call_expression_-_Wrong_argument_type_-_Diagnostics_for_unio…_(5396a8f9e7f88f71).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: function.md - Call expression - Wrong argument type - Diagnostics for union types where the union is not assignable mdtest path: crates/ty_python_semantic/resources/mdtest/call/function.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/functions.md_-_Generic_functions___L…_-_Inferring_a_bound_ty…_(d50204b9d91b7bd1).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/functions.md_-_Generic_functions___L…_-_Inferring_a_bound_ty…_(d50204b9d91b7bd1).snap index f84cd7ec25..78d4b8fc24 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/functions.md_-_Generic_functions___L…_-_Inferring_a_bound_ty…_(d50204b9d91b7bd1).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/functions.md_-_Generic_functions___L…_-_Inferring_a_bound_ty…_(d50204b9d91b7bd1).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: functions.md - Generic functions: Legacy syntax - Inferring a bound typevar mdtest path: crates/ty_python_semantic/resources/mdtest/generics/legacy/functions.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/functions.md_-_Generic_functions___L…_-_Inferring_a_constrai…_(48ab83f977c109b4).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/functions.md_-_Generic_functions___L…_-_Inferring_a_constrai…_(48ab83f977c109b4).snap index b0594ecca1..0b6a049ed1 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/functions.md_-_Generic_functions___L…_-_Inferring_a_constrai…_(48ab83f977c109b4).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/functions.md_-_Generic_functions___L…_-_Inferring_a_constrai…_(48ab83f977c109b4).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: functions.md - Generic functions: Legacy syntax - Inferring a constrained typevar mdtest path: crates/ty_python_semantic/resources/mdtest/generics/legacy/functions.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/functions.md_-_Generic_functions___P…_-_Inferring_a_bound_ty…_(5935d14c26afe407).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/functions.md_-_Generic_functions___P…_-_Inferring_a_bound_ty…_(5935d14c26afe407).snap index 4ee7b9d656..ea12415d2f 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/functions.md_-_Generic_functions___P…_-_Inferring_a_bound_ty…_(5935d14c26afe407).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/functions.md_-_Generic_functions___P…_-_Inferring_a_bound_ty…_(5935d14c26afe407).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: functions.md - Generic functions: PEP 695 syntax - Inferring a bound typevar mdtest path: crates/ty_python_semantic/resources/mdtest/generics/pep695/functions.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/functions.md_-_Generic_functions___P…_-_Inferring_a_constrai…_(d2c475fccc70a8e2).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/functions.md_-_Generic_functions___P…_-_Inferring_a_constrai…_(d2c475fccc70a8e2).snap index 36c8170f75..ce245ef177 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/functions.md_-_Generic_functions___P…_-_Inferring_a_constrai…_(d2c475fccc70a8e2).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/functions.md_-_Generic_functions___P…_-_Inferring_a_constrai…_(d2c475fccc70a8e2).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: functions.md - Generic functions: PEP 695 syntax - Inferring a constrained typevar mdtest path: crates/ty_python_semantic/resources/mdtest/generics/pep695/functions.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/instance.md_-_Instance_subscript_-_`__getitem__`_unboun…_(b1b0f9ed2b7302b2).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/instance.md_-_Instance_subscript_-_`__getitem__`_unboun…_(b1b0f9ed2b7302b2).snap index e196045527..05baf2d8e7 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/instance.md_-_Instance_subscript_-_`__getitem__`_unboun…_(b1b0f9ed2b7302b2).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/instance.md_-_Instance_subscript_-_`__getitem__`_unboun…_(b1b0f9ed2b7302b2).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: instance.md - Instance subscript - `__getitem__` unbound mdtest path: crates/ty_python_semantic/resources/mdtest/subscript/instance.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/instance_layout_conf…_-_Tests_for_ty's_`inst…_-_Built-ins_with_impli…_(f5857d64ce69ca1d).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/instance_layout_conf…_-_Tests_for_ty's_`inst…_-_Built-ins_with_impli…_(f5857d64ce69ca1d).snap index ddeee94396..c391af9086 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/instance_layout_conf…_-_Tests_for_ty's_`inst…_-_Built-ins_with_impli…_(f5857d64ce69ca1d).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/instance_layout_conf…_-_Tests_for_ty's_`inst…_-_Built-ins_with_impli…_(f5857d64ce69ca1d).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: instance_layout_conflict.md - Tests for ty's `instance-layout-conflict` error code - Built-ins with implicit layouts mdtest path: crates/ty_python_semantic/resources/mdtest/instance_layout_conflict.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/instance_layout_conf…_-_Tests_for_ty's_`inst…_-_`__slots__`___incompa…_(98b54233987eb654).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/instance_layout_conf…_-_Tests_for_ty's_`inst…_-_`__slots__`___incompa…_(98b54233987eb654).snap index be6151d4fb..3afab1de45 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/instance_layout_conf…_-_Tests_for_ty's_`inst…_-_`__slots__`___incompa…_(98b54233987eb654).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/instance_layout_conf…_-_Tests_for_ty's_`inst…_-_`__slots__`___incompa…_(98b54233987eb654).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: instance_layout_conflict.md - Tests for ty's `instance-layout-conflict` error code - `__slots__`: incompatible tuples mdtest path: crates/ty_python_semantic/resources/mdtest/instance_layout_conflict.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/instances.md_-_Binary_operations_on…_-_Operations_involving…_(492b1163b8163c05).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/instances.md_-_Binary_operations_on…_-_Operations_involving…_(492b1163b8163c05).snap index 2fba47e078..a6de2edcde 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/instances.md_-_Binary_operations_on…_-_Operations_involving…_(492b1163b8163c05).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/instances.md_-_Binary_operations_on…_-_Operations_involving…_(492b1163b8163c05).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: instances.md - Binary operations on instances - Operations involving types with invalid `__bool__` methods mdtest path: crates/ty_python_semantic/resources/mdtest/binary/instances.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/intersections.md_-_Comparison___Intersec…_-_Diagnostics_-_Unsupported_operator…_(27f95f68d1c826ec).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/intersections.md_-_Comparison___Intersec…_-_Diagnostics_-_Unsupported_operator…_(27f95f68d1c826ec).snap index 2034ded4e3..fec95ce603 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/intersections.md_-_Comparison___Intersec…_-_Diagnostics_-_Unsupported_operator…_(27f95f68d1c826ec).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/intersections.md_-_Comparison___Intersec…_-_Diagnostics_-_Unsupported_operator…_(27f95f68d1c826ec).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: intersections.md - Comparison: Intersections - Diagnostics - Unsupported operators for positive contributions mdtest path: crates/ty_python_semantic/resources/mdtest/comparison/intersections.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid.md_-_Tests_for_invalid_ty…_-_Diagnostics_for_comm…_-_List-literal_used_wh…_(f80dbf5dd571c940).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid.md_-_Tests_for_invalid_ty…_-_Diagnostics_for_comm…_-_List-literal_used_wh…_(f80dbf5dd571c940).snap index 6e2b255903..f0245d9d75 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid.md_-_Tests_for_invalid_ty…_-_Diagnostics_for_comm…_-_List-literal_used_wh…_(f80dbf5dd571c940).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid.md_-_Tests_for_invalid_ty…_-_Diagnostics_for_comm…_-_List-literal_used_wh…_(f80dbf5dd571c940).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: invalid.md - Tests for invalid types in type expressions - Diagnostics for common errors - List-literal used when you meant to use a list or tuple mdtest path: crates/ty_python_semantic/resources/mdtest/annotations/invalid.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid.md_-_Tests_for_invalid_ty…_-_Diagnostics_for_comm…_-_Module-literal_used_…_(652fec4fd4a6c63a).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid.md_-_Tests_for_invalid_ty…_-_Diagnostics_for_comm…_-_Module-literal_used_…_(652fec4fd4a6c63a).snap index 8d13cb887f..89a67a1ce4 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid.md_-_Tests_for_invalid_ty…_-_Diagnostics_for_comm…_-_Module-literal_used_…_(652fec4fd4a6c63a).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid.md_-_Tests_for_invalid_ty…_-_Diagnostics_for_comm…_-_Module-literal_used_…_(652fec4fd4a6c63a).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: invalid.md - Tests for invalid types in type expressions - Diagnostics for common errors - Module-literal used when you meant to use a class from that module mdtest path: crates/ty_python_semantic/resources/mdtest/annotations/invalid.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid.md_-_Tests_for_invalid_ty…_-_Diagnostics_for_comm…_-_Special-cased_diagno…_(a4b698196d337a3f).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid.md_-_Tests_for_invalid_ty…_-_Diagnostics_for_comm…_-_Special-cased_diagno…_(a4b698196d337a3f).snap index f6869c0174..1c56915789 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid.md_-_Tests_for_invalid_ty…_-_Diagnostics_for_comm…_-_Special-cased_diagno…_(a4b698196d337a3f).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid.md_-_Tests_for_invalid_ty…_-_Diagnostics_for_comm…_-_Special-cased_diagno…_(a4b698196d337a3f).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: invalid.md - Tests for invalid types in type expressions - Diagnostics for common errors - Special-cased diagnostic for `callable` used in a type expression mdtest path: crates/ty_python_semantic/resources/mdtest/annotations/invalid.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid.md_-_Tests_for_invalid_ty…_-_Diagnostics_for_comm…_-_Tuple-literal_used_w…_(f61204fc81905069).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid.md_-_Tests_for_invalid_ty…_-_Diagnostics_for_comm…_-_Tuple-literal_used_w…_(f61204fc81905069).snap index 5e268cd80c..9da08843ae 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid.md_-_Tests_for_invalid_ty…_-_Diagnostics_for_comm…_-_Tuple-literal_used_w…_(f61204fc81905069).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid.md_-_Tests_for_invalid_ty…_-_Diagnostics_for_comm…_-_Tuple-literal_used_w…_(f61204fc81905069).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: invalid.md - Tests for invalid types in type expressions - Diagnostics for common errors - Tuple-literal used when you meant to use a tuple mdtest path: crates/ty_python_semantic/resources/mdtest/annotations/invalid.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Basic_(16be9d90a741761).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Basic_(16be9d90a741761).snap index 2dbdf7c525..7f9346715f 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Basic_(16be9d90a741761).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Basic_(16be9d90a741761).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: invalid_argument_type.md - Invalid argument type diagnostics - Basic mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/invalid_argument_type.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Calls_to_methods_(4b3b8695d519a02).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Calls_to_methods_(4b3b8695d519a02).snap index a02a98d391..0f0e3a9b31 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Calls_to_methods_(4b3b8695d519a02).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Calls_to_methods_(4b3b8695d519a02).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: invalid_argument_type.md - Invalid argument type diagnostics - Calls to methods mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/invalid_argument_type.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Different_files_(d02c38e2dd054b4c).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Different_files_(d02c38e2dd054b4c).snap index f192c9723a..f37adb5f8c 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Different_files_(d02c38e2dd054b4c).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Different_files_(d02c38e2dd054b4c).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: invalid_argument_type.md - Invalid argument type diagnostics - Different files mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/invalid_argument_type.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Different_source_ord…_(9b0bf549733d3f0a).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Different_source_ord…_(9b0bf549733d3f0a).snap index 6727170753..73f7c85ee6 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Different_source_ord…_(9b0bf549733d3f0a).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Different_source_ord…_(9b0bf549733d3f0a).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: invalid_argument_type.md - Invalid argument type diagnostics - Different source order mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/invalid_argument_type.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Many_parameters_(ee38fd34ceba3293).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Many_parameters_(ee38fd34ceba3293).snap index d26e1fe2f9..1d932235c4 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Many_parameters_(ee38fd34ceba3293).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Many_parameters_(ee38fd34ceba3293).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: invalid_argument_type.md - Invalid argument type diagnostics - Many parameters mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/invalid_argument_type.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Many_parameters_acro…_(1d5d112808c49e9d).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Many_parameters_acro…_(1d5d112808c49e9d).snap index e9e1198983..41af659b5f 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Many_parameters_acro…_(1d5d112808c49e9d).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Many_parameters_acro…_(1d5d112808c49e9d).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: invalid_argument_type.md - Invalid argument type diagnostics - Many parameters across multiple lines mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/invalid_argument_type.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Many_parameters_with…_(4bc5c16cd568b8ec).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Many_parameters_with…_(4bc5c16cd568b8ec).snap index 6aa878c8df..3a3e60da21 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Many_parameters_with…_(4bc5c16cd568b8ec).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Many_parameters_with…_(4bc5c16cd568b8ec).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: invalid_argument_type.md - Invalid argument type diagnostics - Many parameters with multiple invalid arguments mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/invalid_argument_type.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Test_calling_a_funct…_(3b18271a821a59b).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Test_calling_a_funct…_(3b18271a821a59b).snap index c1a4a80292..5127953eeb 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Test_calling_a_funct…_(3b18271a821a59b).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Test_calling_a_funct…_(3b18271a821a59b).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: invalid_argument_type.md - Invalid argument type diagnostics - Test calling a function whose type is vendored from `typeshed` mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/invalid_argument_type.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Tests_for_a_variety_…_-_Keyword_only_argumen…_(8d9f18c78137411).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Tests_for_a_variety_…_-_Keyword_only_argumen…_(8d9f18c78137411).snap index 640a3f0d5c..0df02d75b5 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Tests_for_a_variety_…_-_Keyword_only_argumen…_(8d9f18c78137411).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Tests_for_a_variety_…_-_Keyword_only_argumen…_(8d9f18c78137411).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: invalid_argument_type.md - Invalid argument type diagnostics - Tests for a variety of argument types - Keyword only arguments mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/invalid_argument_type.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Tests_for_a_variety_…_-_Mix_of_arguments_(cfc64b1136058112).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Tests_for_a_variety_…_-_Mix_of_arguments_(cfc64b1136058112).snap index b2b1b00b55..35a1c4370a 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Tests_for_a_variety_…_-_Mix_of_arguments_(cfc64b1136058112).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Tests_for_a_variety_…_-_Mix_of_arguments_(cfc64b1136058112).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: invalid_argument_type.md - Invalid argument type diagnostics - Tests for a variety of argument types - Mix of arguments mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/invalid_argument_type.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Tests_for_a_variety_…_-_One_keyword_argument_(cc34b2f7d19d427e).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Tests_for_a_variety_…_-_One_keyword_argument_(cc34b2f7d19d427e).snap index a43e5fa7f8..039808d7c8 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Tests_for_a_variety_…_-_One_keyword_argument_(cc34b2f7d19d427e).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Tests_for_a_variety_…_-_One_keyword_argument_(cc34b2f7d19d427e).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: invalid_argument_type.md - Invalid argument type diagnostics - Tests for a variety of argument types - One keyword argument mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/invalid_argument_type.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Tests_for_a_variety_…_-_Only_positional_(3dc93b1709eb3be9).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Tests_for_a_variety_…_-_Only_positional_(3dc93b1709eb3be9).snap index c2647c7550..956d11d383 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Tests_for_a_variety_…_-_Only_positional_(3dc93b1709eb3be9).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Tests_for_a_variety_…_-_Only_positional_(3dc93b1709eb3be9).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: invalid_argument_type.md - Invalid argument type diagnostics - Tests for a variety of argument types - Only positional mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/invalid_argument_type.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Tests_for_a_variety_…_-_Synthetic_arguments_(4c09844bbbf47741).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Tests_for_a_variety_…_-_Synthetic_arguments_(4c09844bbbf47741).snap index 5864211fc9..a5feb9588b 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Tests_for_a_variety_…_-_Synthetic_arguments_(4c09844bbbf47741).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Tests_for_a_variety_…_-_Synthetic_arguments_(4c09844bbbf47741).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: invalid_argument_type.md - Invalid argument type diagnostics - Tests for a variety of argument types - Synthetic arguments mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/invalid_argument_type.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Tests_for_a_variety_…_-_Variadic_arguments_(e26a3e7b2773a63b).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Tests_for_a_variety_…_-_Variadic_arguments_(e26a3e7b2773a63b).snap index bd74bf3b8d..0260c73006 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Tests_for_a_variety_…_-_Variadic_arguments_(e26a3e7b2773a63b).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Tests_for_a_variety_…_-_Variadic_arguments_(e26a3e7b2773a63b).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: invalid_argument_type.md - Invalid argument type diagnostics - Tests for a variety of argument types - Variadic arguments mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/invalid_argument_type.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Tests_for_a_variety_…_-_Variadic_keyword_arg…_(4c855e39ea6baeaf).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Tests_for_a_variety_…_-_Variadic_keyword_arg…_(4c855e39ea6baeaf).snap index fe92205874..554caf2344 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Tests_for_a_variety_…_-_Variadic_keyword_arg…_(4c855e39ea6baeaf).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Tests_for_a_variety_…_-_Variadic_keyword_arg…_(4c855e39ea6baeaf).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: invalid_argument_type.md - Invalid argument type diagnostics - Tests for a variety of argument types - Variadic keyword arguments mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/invalid_argument_type.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_TypeVars_with_bounds…_(25b61918ea9f5644).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_TypeVars_with_bounds…_(25b61918ea9f5644).snap index d19a4c0def..7dfc918642 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_TypeVars_with_bounds…_(25b61918ea9f5644).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_TypeVars_with_bounds…_(25b61918ea9f5644).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: invalid_argument_type.md - Invalid argument type diagnostics - TypeVars with bounds that have the same name but are from different files mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/invalid_argument_type.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Types_with_the_same_…_(34531e82322f6f21).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Types_with_the_same_…_(34531e82322f6f21).snap index 01847da1dc..b199de2f7e 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Types_with_the_same_…_(34531e82322f6f21).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Types_with_the_same_…_(34531e82322f6f21).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: invalid_argument_type.md - Invalid argument type diagnostics - Types with the same name but from different files mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/invalid_argument_type.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_assignment.m…_-_Invalid_assignment_d…_-_Annotated_assignment_(4b799ca1eeb857b9).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_assignment.m…_-_Invalid_assignment_d…_-_Annotated_assignment_(4b799ca1eeb857b9).snap index b4d14282da..76a1dade8c 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_assignment.m…_-_Invalid_assignment_d…_-_Annotated_assignment_(4b799ca1eeb857b9).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_assignment.m…_-_Invalid_assignment_d…_-_Annotated_assignment_(4b799ca1eeb857b9).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: invalid_assignment.md - Invalid assignment diagnostics - Annotated assignment mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/invalid_assignment.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_assignment.m…_-_Invalid_assignment_d…_-_Multiline_expression…_(f316976ffe72c6c7).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_assignment.m…_-_Invalid_assignment_d…_-_Multiline_expression…_(f316976ffe72c6c7).snap index 9c908b4a3e..a1e4da5e36 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_assignment.m…_-_Invalid_assignment_d…_-_Multiline_expression…_(f316976ffe72c6c7).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_assignment.m…_-_Invalid_assignment_d…_-_Multiline_expression…_(f316976ffe72c6c7).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: invalid_assignment.md - Invalid assignment diagnostics - Multiline expressions mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/invalid_assignment.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_assignment.m…_-_Invalid_assignment_d…_-_Multiple_targets_(e20ddfd7a91affb0).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_assignment.m…_-_Invalid_assignment_d…_-_Multiple_targets_(e20ddfd7a91affb0).snap index 593bef3b2b..ebf3b81799 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_assignment.m…_-_Invalid_assignment_d…_-_Multiple_targets_(e20ddfd7a91affb0).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_assignment.m…_-_Invalid_assignment_d…_-_Multiple_targets_(e20ddfd7a91affb0).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: invalid_assignment.md - Invalid assignment diagnostics - Multiple targets mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/invalid_assignment.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_assignment.m…_-_Invalid_assignment_d…_-_Named_expression_(35c120b3bd9929f8).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_assignment.m…_-_Invalid_assignment_d…_-_Named_expression_(35c120b3bd9929f8).snap index df49bebbc9..d285720f31 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_assignment.m…_-_Invalid_assignment_d…_-_Named_expression_(35c120b3bd9929f8).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_assignment.m…_-_Invalid_assignment_d…_-_Named_expression_(35c120b3bd9929f8).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: invalid_assignment.md - Invalid assignment diagnostics - Named expression mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/invalid_assignment.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_assignment.m…_-_Invalid_assignment_d…_-_Unannotated_assignme…_(67e4b9239d5681a).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_assignment.m…_-_Invalid_assignment_d…_-_Unannotated_assignme…_(67e4b9239d5681a).snap index 03cbb5f6e2..3099de022c 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_assignment.m…_-_Invalid_assignment_d…_-_Unannotated_assignme…_(67e4b9239d5681a).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_assignment.m…_-_Invalid_assignment_d…_-_Unannotated_assignme…_(67e4b9239d5681a).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: invalid_assignment.md - Invalid assignment diagnostics - Unannotated assignment mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/invalid_assignment.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_await.md_-_Invalid_await_diagno…_-_Basic_(f15db7dc447d0795).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_await.md_-_Invalid_await_diagno…_-_Basic_(f15db7dc447d0795).snap index b6897c6cb1..d74b8b40a5 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_await.md_-_Invalid_await_diagno…_-_Basic_(f15db7dc447d0795).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_await.md_-_Invalid_await_diagno…_-_Basic_(f15db7dc447d0795).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: invalid_await.md - Invalid await diagnostics - Basic mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/invalid_await.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_await.md_-_Invalid_await_diagno…_-_Custom_type_with_mis…_(9ce1ee3cd1c9c8d1).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_await.md_-_Invalid_await_diagno…_-_Custom_type_with_mis…_(9ce1ee3cd1c9c8d1).snap index fcf21676b7..693c3d2a4d 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_await.md_-_Invalid_await_diagno…_-_Custom_type_with_mis…_(9ce1ee3cd1c9c8d1).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_await.md_-_Invalid_await_diagno…_-_Custom_type_with_mis…_(9ce1ee3cd1c9c8d1).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: invalid_await.md - Invalid await diagnostics - Custom type with missing `__await__` mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/invalid_await.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_await.md_-_Invalid_await_diagno…_-_Custom_type_with_pos…_(a028edbafe180ca).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_await.md_-_Invalid_await_diagno…_-_Custom_type_with_pos…_(a028edbafe180ca).snap index ac576c9ad7..b2a1db5e6f 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_await.md_-_Invalid_await_diagno…_-_Custom_type_with_pos…_(a028edbafe180ca).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_await.md_-_Invalid_await_diagno…_-_Custom_type_with_pos…_(a028edbafe180ca).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: invalid_await.md - Invalid await diagnostics - Custom type with possibly missing `__await__` mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/invalid_await.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_await.md_-_Invalid_await_diagno…_-_Invalid_union_return…_(fedf62ffaca0f2d7).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_await.md_-_Invalid_await_diagno…_-_Invalid_union_return…_(fedf62ffaca0f2d7).snap index 302b21afc7..d6f1b605d9 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_await.md_-_Invalid_await_diagno…_-_Invalid_union_return…_(fedf62ffaca0f2d7).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_await.md_-_Invalid_await_diagno…_-_Invalid_union_return…_(fedf62ffaca0f2d7).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: invalid_await.md - Invalid await diagnostics - Invalid union return type mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/invalid_await.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_await.md_-_Invalid_await_diagno…_-_Non-callable_`__awai…_(d78580fb6720e4ea).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_await.md_-_Invalid_await_diagno…_-_Non-callable_`__awai…_(d78580fb6720e4ea).snap index 890ea11b49..aca2fe5a75 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_await.md_-_Invalid_await_diagno…_-_Non-callable_`__awai…_(d78580fb6720e4ea).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_await.md_-_Invalid_await_diagno…_-_Non-callable_`__awai…_(d78580fb6720e4ea).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: invalid_await.md - Invalid await diagnostics - Non-callable `__await__` mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/invalid_await.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_await.md_-_Invalid_await_diagno…_-_`__await__`_definiti…_(15b05c126b6ae968).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_await.md_-_Invalid_await_diagno…_-_`__await__`_definiti…_(15b05c126b6ae968).snap index c5fe4db415..1ce4ee09a7 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_await.md_-_Invalid_await_diagno…_-_`__await__`_definiti…_(15b05c126b6ae968).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_await.md_-_Invalid_await_diagno…_-_`__await__`_definiti…_(15b05c126b6ae968).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: invalid_await.md - Invalid await diagnostics - `__await__` definition with extra arguments mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/invalid_await.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_await.md_-_Invalid_await_diagno…_-_`__await__`_definiti…_(ccb69f512135dd61).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_await.md_-_Invalid_await_diagno…_-_`__await__`_definiti…_(ccb69f512135dd61).snap index b7fa723787..cc7ca65fb1 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_await.md_-_Invalid_await_diagno…_-_`__await__`_definiti…_(ccb69f512135dd61).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_await.md_-_Invalid_await_diagno…_-_`__await__`_definiti…_(ccb69f512135dd61).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: invalid_await.md - Invalid await diagnostics - `__await__` definition with explicit invalid return type mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/invalid_await.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_type_paramet…_-_Invalid_Order_of_Leg…_(eaa359e8d6b3031d).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_type_paramet…_-_Invalid_Order_of_Leg…_(eaa359e8d6b3031d).snap index 290fbb0ae0..edaa2330cf 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_type_paramet…_-_Invalid_Order_of_Leg…_(eaa359e8d6b3031d).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_type_paramet…_-_Invalid_Order_of_Leg…_(eaa359e8d6b3031d).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: invalid_type_parameter_order.md - Invalid Order of Legacy Type Parameters mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/invalid_type_parameter_order.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/isinstance.md_-_Narrowing_for_`isins…_-_`classinfo`_is_an_in…_(eeef56c0ef87a30b).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/isinstance.md_-_Narrowing_for_`isins…_-_`classinfo`_is_an_in…_(eeef56c0ef87a30b).snap index 9258e5b40c..73ce5e0bd9 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/isinstance.md_-_Narrowing_for_`isins…_-_`classinfo`_is_an_in…_(eeef56c0ef87a30b).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/isinstance.md_-_Narrowing_for_`isins…_-_`classinfo`_is_an_in…_(eeef56c0ef87a30b).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: isinstance.md - Narrowing for `isinstance` checks - `classinfo` is an invalid PEP-604 union of types mdtest path: crates/ty_python_semantic/resources/mdtest/narrow/isinstance.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/issubclass.md_-_Narrowing_for_`issub…_-_`classinfo`_is_an_in…_(7bb66a0f412caac1).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/issubclass.md_-_Narrowing_for_`issub…_-_`classinfo`_is_an_in…_(7bb66a0f412caac1).snap index 27318dfe2b..e6f6140a53 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/issubclass.md_-_Narrowing_for_`issub…_-_`classinfo`_is_an_in…_(7bb66a0f412caac1).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/issubclass.md_-_Narrowing_for_`issub…_-_`classinfo`_is_an_in…_(7bb66a0f412caac1).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: issubclass.md - Narrowing for `issubclass` checks - `classinfo` is an invalid PEP-604 union of types mdtest path: crates/ty_python_semantic/resources/mdtest/narrow/issubclass.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/legacy_typevars.md_-_Legacy_typevar_creat…_-_Boolean_parameters_m…_(3edf97b20f58fa11).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/legacy_typevars.md_-_Legacy_typevar_creat…_-_Boolean_parameters_m…_(3edf97b20f58fa11).snap index ca39b8044b..ddc7ddcf5e 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/legacy_typevars.md_-_Legacy_typevar_creat…_-_Boolean_parameters_m…_(3edf97b20f58fa11).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/legacy_typevars.md_-_Legacy_typevar_creat…_-_Boolean_parameters_m…_(3edf97b20f58fa11).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: legacy_typevars.md - Legacy typevar creation diagnostics - Boolean parameters must be unambiguous mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/legacy_typevars.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/legacy_typevars.md_-_Legacy_typevar_creat…_-_Cannot_be_both_covar…_(b7b0976739681470).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/legacy_typevars.md_-_Legacy_typevar_creat…_-_Cannot_be_both_covar…_(b7b0976739681470).snap index 4f2e6633ee..a82ca504fa 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/legacy_typevars.md_-_Legacy_typevar_creat…_-_Cannot_be_both_covar…_(b7b0976739681470).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/legacy_typevars.md_-_Legacy_typevar_creat…_-_Cannot_be_both_covar…_(b7b0976739681470).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: legacy_typevars.md - Legacy typevar creation diagnostics - Cannot be both covariant and contravariant mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/legacy_typevars.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/legacy_typevars.md_-_Legacy_typevar_creat…_-_Cannot_have_both_bou…_(4ca5f13621915554).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/legacy_typevars.md_-_Legacy_typevar_creat…_-_Cannot_have_both_bou…_(4ca5f13621915554).snap index 34ade6dbcf..2109349e30 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/legacy_typevars.md_-_Legacy_typevar_creat…_-_Cannot_have_both_bou…_(4ca5f13621915554).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/legacy_typevars.md_-_Legacy_typevar_creat…_-_Cannot_have_both_bou…_(4ca5f13621915554).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: legacy_typevars.md - Legacy typevar creation diagnostics - Cannot have both bound and constraint mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/legacy_typevars.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/legacy_typevars.md_-_Legacy_typevar_creat…_-_Cannot_have_only_one…_(8b0258f5188209c6).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/legacy_typevars.md_-_Legacy_typevar_creat…_-_Cannot_have_only_one…_(8b0258f5188209c6).snap index f65fedf52f..deb89b6307 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/legacy_typevars.md_-_Legacy_typevar_creat…_-_Cannot_have_only_one…_(8b0258f5188209c6).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/legacy_typevars.md_-_Legacy_typevar_creat…_-_Cannot_have_only_one…_(8b0258f5188209c6).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: legacy_typevars.md - Legacy typevar creation diagnostics - Cannot have only one constraint mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/legacy_typevars.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/legacy_typevars.md_-_Legacy_typevar_creat…_-_Invalid_feature_for_…_(72827c64b5c73d05).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/legacy_typevars.md_-_Legacy_typevar_creat…_-_Invalid_feature_for_…_(72827c64b5c73d05).snap index f821820e2d..6dd4242cf7 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/legacy_typevars.md_-_Legacy_typevar_creat…_-_Invalid_feature_for_…_(72827c64b5c73d05).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/legacy_typevars.md_-_Legacy_typevar_creat…_-_Invalid_feature_for_…_(72827c64b5c73d05).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: legacy_typevars.md - Legacy typevar creation diagnostics - Invalid feature for this Python version mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/legacy_typevars.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/legacy_typevars.md_-_Legacy_typevar_creat…_-_Invalid_keyword_argu…_(39164266ada3dc2f).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/legacy_typevars.md_-_Legacy_typevar_creat…_-_Invalid_keyword_argu…_(39164266ada3dc2f).snap index 1f528a53a9..688b72648a 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/legacy_typevars.md_-_Legacy_typevar_creat…_-_Invalid_keyword_argu…_(39164266ada3dc2f).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/legacy_typevars.md_-_Legacy_typevar_creat…_-_Invalid_keyword_argu…_(39164266ada3dc2f).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: legacy_typevars.md - Legacy typevar creation diagnostics - Invalid keyword arguments mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/legacy_typevars.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/legacy_typevars.md_-_Legacy_typevar_creat…_-_Must_be_directly_ass…_(c2e3e46852bb268f).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/legacy_typevars.md_-_Legacy_typevar_creat…_-_Must_be_directly_ass…_(c2e3e46852bb268f).snap index 61f017d813..7922062f00 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/legacy_typevars.md_-_Legacy_typevar_creat…_-_Must_be_directly_ass…_(c2e3e46852bb268f).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/legacy_typevars.md_-_Legacy_typevar_creat…_-_Must_be_directly_ass…_(c2e3e46852bb268f).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: legacy_typevars.md - Legacy typevar creation diagnostics - Must be directly assigned to a variable mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/legacy_typevars.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/legacy_typevars.md_-_Legacy_typevar_creat…_-_Must_have_a_name_(79a4ce09338e666b).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/legacy_typevars.md_-_Legacy_typevar_creat…_-_Must_have_a_name_(79a4ce09338e666b).snap index 4b4dc20db3..bf85d240fe 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/legacy_typevars.md_-_Legacy_typevar_creat…_-_Must_have_a_name_(79a4ce09338e666b).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/legacy_typevars.md_-_Legacy_typevar_creat…_-_Must_have_a_name_(79a4ce09338e666b).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: legacy_typevars.md - Legacy typevar creation diagnostics - Must have a name mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/legacy_typevars.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/legacy_typevars.md_-_Legacy_typevar_creat…_-_Name_can't_be_given_…_(8f6aed0dba79e995).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/legacy_typevars.md_-_Legacy_typevar_creat…_-_Name_can't_be_given_…_(8f6aed0dba79e995).snap index 6938f2c2a8..67d53e4a9e 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/legacy_typevars.md_-_Legacy_typevar_creat…_-_Name_can't_be_given_…_(8f6aed0dba79e995).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/legacy_typevars.md_-_Legacy_typevar_creat…_-_Name_can't_be_given_…_(8f6aed0dba79e995).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: legacy_typevars.md - Legacy typevar creation diagnostics - Name can't be given more than once mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/legacy_typevars.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/legacy_typevars.md_-_Legacy_typevar_creat…_-_No_variadic_argument…_(9d57505425233fd8).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/legacy_typevars.md_-_Legacy_typevar_creat…_-_No_variadic_argument…_(9d57505425233fd8).snap index f2c8a4162c..b016214ef4 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/legacy_typevars.md_-_Legacy_typevar_creat…_-_No_variadic_argument…_(9d57505425233fd8).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/legacy_typevars.md_-_Legacy_typevar_creat…_-_No_variadic_argument…_(9d57505425233fd8).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: legacy_typevars.md - Legacy typevar creation diagnostics - No variadic arguments mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/legacy_typevars.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/legacy_typevars.md_-_Legacy_typevar_creat…_-_`TypeVar`_parameter_…_(8424f2b8bc4351f9).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/legacy_typevars.md_-_Legacy_typevar_creat…_-_`TypeVar`_parameter_…_(8424f2b8bc4351f9).snap index f464f2861f..4eb875fca4 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/legacy_typevars.md_-_Legacy_typevar_creat…_-_`TypeVar`_parameter_…_(8424f2b8bc4351f9).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/legacy_typevars.md_-_Legacy_typevar_creat…_-_`TypeVar`_parameter_…_(8424f2b8bc4351f9).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: legacy_typevars.md - Legacy typevar creation diagnostics - `TypeVar` parameter must match variable name mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/legacy_typevars.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/liskov.md_-_The_Liskov_Substitut…_-_Bad_override_of_`__e…_(4b336040d5332220).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/liskov.md_-_The_Liskov_Substitut…_-_Bad_override_of_`__e…_(4b336040d5332220).snap index 71eb306336..c469d92766 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/liskov.md_-_The_Liskov_Substitut…_-_Bad_override_of_`__e…_(4b336040d5332220).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/liskov.md_-_The_Liskov_Substitut…_-_Bad_override_of_`__e…_(4b336040d5332220).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: liskov.md - The Liskov Substitution Principle - Bad override of `__eq__` mdtest path: crates/ty_python_semantic/resources/mdtest/liskov.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/liskov.md_-_The_Liskov_Substitut…_-_Edge_case___function_…_(c8756a54d1cb8499).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/liskov.md_-_The_Liskov_Substitut…_-_Edge_case___function_…_(c8756a54d1cb8499).snap index 008c86d7e9..f940bd947f 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/liskov.md_-_The_Liskov_Substitut…_-_Edge_case___function_…_(c8756a54d1cb8499).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/liskov.md_-_The_Liskov_Substitut…_-_Edge_case___function_…_(c8756a54d1cb8499).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: liskov.md - The Liskov Substitution Principle - Edge case: function defined in another module and then assigned in a class body mdtest path: crates/ty_python_semantic/resources/mdtest/liskov.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/liskov.md_-_The_Liskov_Substitut…_-_Fully_qualified_name…_(8f6f7c5aace58329).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/liskov.md_-_The_Liskov_Substitut…_-_Fully_qualified_name…_(8f6f7c5aace58329).snap index f4ff13f764..10a5ea513e 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/liskov.md_-_The_Liskov_Substitut…_-_Fully_qualified_name…_(8f6f7c5aace58329).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/liskov.md_-_The_Liskov_Substitut…_-_Fully_qualified_name…_(8f6f7c5aace58329).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: liskov.md - The Liskov Substitution Principle - Fully qualified names are used in diagnostics where appropriate mdtest path: crates/ty_python_semantic/resources/mdtest/liskov.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/liskov.md_-_The_Liskov_Substitut…_-_Method_parameters_(d98059266bcc1e13).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/liskov.md_-_The_Liskov_Substitut…_-_Method_parameters_(d98059266bcc1e13).snap index 84abce6f13..0947fbec30 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/liskov.md_-_The_Liskov_Substitut…_-_Method_parameters_(d98059266bcc1e13).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/liskov.md_-_The_Liskov_Substitut…_-_Method_parameters_(d98059266bcc1e13).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: liskov.md - The Liskov Substitution Principle - Method parameters mdtest path: crates/ty_python_semantic/resources/mdtest/liskov.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/liskov.md_-_The_Liskov_Substitut…_-_Method_return_types_(3e0c19bed14cfacd).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/liskov.md_-_The_Liskov_Substitut…_-_Method_return_types_(3e0c19bed14cfacd).snap index 9015d4fcd6..69cd18b2e1 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/liskov.md_-_The_Liskov_Substitut…_-_Method_return_types_(3e0c19bed14cfacd).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/liskov.md_-_The_Liskov_Substitut…_-_Method_return_types_(3e0c19bed14cfacd).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: liskov.md - The Liskov Substitution Principle - Method return types mdtest path: crates/ty_python_semantic/resources/mdtest/liskov.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/liskov.md_-_The_Liskov_Substitut…_-_Staticmethods_and_cl…_(49e28aae6fdd1291).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/liskov.md_-_The_Liskov_Substitut…_-_Staticmethods_and_cl…_(49e28aae6fdd1291).snap index f7ca2c257f..fdbc61b049 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/liskov.md_-_The_Liskov_Substitut…_-_Staticmethods_and_cl…_(49e28aae6fdd1291).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/liskov.md_-_The_Liskov_Substitut…_-_Staticmethods_and_cl…_(49e28aae6fdd1291).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: liskov.md - The Liskov Substitution Principle - Staticmethods and classmethods mdtest path: crates/ty_python_semantic/resources/mdtest/liskov.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/liskov.md_-_The_Liskov_Substitut…_-_Synthesized_methods_(9e6e6c7368530460).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/liskov.md_-_The_Liskov_Substitut…_-_Synthesized_methods_(9e6e6c7368530460).snap index f50b1bd308..11a59d5008 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/liskov.md_-_The_Liskov_Substitut…_-_Synthesized_methods_(9e6e6c7368530460).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/liskov.md_-_The_Liskov_Substitut…_-_Synthesized_methods_(9e6e6c7368530460).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: liskov.md - The Liskov Substitution Principle - Synthesized methods mdtest path: crates/ty_python_semantic/resources/mdtest/liskov.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/liskov.md_-_The_Liskov_Substitut…_-_The_entire_class_hie…_(5e8fca10d966c36e).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/liskov.md_-_The_Liskov_Substitut…_-_The_entire_class_hie…_(5e8fca10d966c36e).snap index d9febb014a..44fa4c5ca7 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/liskov.md_-_The_Liskov_Substitut…_-_The_entire_class_hie…_(5e8fca10d966c36e).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/liskov.md_-_The_Liskov_Substitut…_-_The_entire_class_hie…_(5e8fca10d966c36e).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: liskov.md - The Liskov Substitution Principle - The entire class hierarchy is checked mdtest path: crates/ty_python_semantic/resources/mdtest/liskov.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/literal_string.md_-_`LiteralString`_-_Usages_-_Parameterized_(ec84ce49ea235791).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/literal_string.md_-_`LiteralString`_-_Usages_-_Parameterized_(ec84ce49ea235791).snap index cda41e9fb3..5f65dd2cf9 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/literal_string.md_-_`LiteralString`_-_Usages_-_Parameterized_(ec84ce49ea235791).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/literal_string.md_-_`LiteralString`_-_Usages_-_Parameterized_(ec84ce49ea235791).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: literal_string.md - `LiteralString` - Usages - Parameterized mdtest path: crates/ty_python_semantic/resources/mdtest/annotations/literal_string.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/membership_test.md_-_Comparison___Membersh…_-_Return_type_that_doe…_(feccf6b9da1e7cd3).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/membership_test.md_-_Comparison___Membersh…_-_Return_type_that_doe…_(feccf6b9da1e7cd3).snap index 26415ace68..52b12abe3a 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/membership_test.md_-_Comparison___Membersh…_-_Return_type_that_doe…_(feccf6b9da1e7cd3).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/membership_test.md_-_Comparison___Membersh…_-_Return_type_that_doe…_(feccf6b9da1e7cd3).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: membership_test.md - Comparison: Membership Test - Return type that doesn't implement `__bool__` correctly mdtest path: crates/ty_python_semantic/resources/mdtest/comparison/instances/membership_test.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/missing_argument.md_-_Missing_argument_dia…_(f0811e84fcea1085).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/missing_argument.md_-_Missing_argument_dia…_(f0811e84fcea1085).snap index b29da05ac4..cf58456edd 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/missing_argument.md_-_Missing_argument_dia…_(f0811e84fcea1085).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/missing_argument.md_-_Missing_argument_dia…_(f0811e84fcea1085).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: missing_argument.md - Missing argument diagnostics mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/missing_argument.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/mro.md_-_Method_Resolution_Or…_-_Unresolvable_MROs_in…_(e2b355c09a967862).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/mro.md_-_Method_Resolution_Or…_-_Unresolvable_MROs_in…_(e2b355c09a967862).snap index f460099a95..bc6498314a 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/mro.md_-_Method_Resolution_Or…_-_Unresolvable_MROs_in…_(e2b355c09a967862).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/mro.md_-_Method_Resolution_Or…_-_Unresolvable_MROs_in…_(e2b355c09a967862).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: mro.md - Method Resolution Order tests - Unresolvable MROs involving generics have the original bases reported in the error message, not the resolved bases mdtest path: crates/ty_python_semantic/resources/mdtest/mro.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/mro.md_-_Method_Resolution_Or…_-_`__bases__`_includes…_(d2532518c44112c8).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/mro.md_-_Method_Resolution_Or…_-_`__bases__`_includes…_(d2532518c44112c8).snap index 61e80d5864..d87f10c1fa 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/mro.md_-_Method_Resolution_Or…_-_`__bases__`_includes…_(d2532518c44112c8).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/mro.md_-_Method_Resolution_Or…_-_`__bases__`_includes…_(d2532518c44112c8).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: mro.md - Method Resolution Order tests - `__bases__` includes a `Union` mdtest path: crates/ty_python_semantic/resources/mdtest/mro.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/mro.md_-_Method_Resolution_Or…_-_`__bases__`_lists_th…_(6f8d0bf648c4b305).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/mro.md_-_Method_Resolution_Or…_-_`__bases__`_lists_th…_(6f8d0bf648c4b305).snap index d5be15c199..1d6dc7284c 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/mro.md_-_Method_Resolution_Or…_-_`__bases__`_lists_th…_(6f8d0bf648c4b305).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/mro.md_-_Method_Resolution_Or…_-_`__bases__`_lists_th…_(6f8d0bf648c4b305).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: mro.md - Method Resolution Order tests - `__bases__` lists that include objects that are not instances of `type` mdtest path: crates/ty_python_semantic/resources/mdtest/mro.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/mro.md_-_Method_Resolution_Or…_-_`__bases__`_lists_wi…_(ea7ebc83ec359b54).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/mro.md_-_Method_Resolution_Or…_-_`__bases__`_lists_wi…_(ea7ebc83ec359b54).snap index e67424b4fb..18f5ecedf7 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/mro.md_-_Method_Resolution_Or…_-_`__bases__`_lists_wi…_(ea7ebc83ec359b54).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/mro.md_-_Method_Resolution_Or…_-_`__bases__`_lists_wi…_(ea7ebc83ec359b54).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: mro.md - Method Resolution Order tests - `__bases__` lists with duplicate bases mdtest path: crates/ty_python_semantic/resources/mdtest/mro.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/named_tuple.md_-_`NamedTuple`_-_Edge_case___multiple_…_(f30babd05c89dce9).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/named_tuple.md_-_`NamedTuple`_-_Edge_case___multiple_…_(f30babd05c89dce9).snap index c7cd93b886..74bd06ec6e 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/named_tuple.md_-_`NamedTuple`_-_Edge_case___multiple_…_(f30babd05c89dce9).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/named_tuple.md_-_`NamedTuple`_-_Edge_case___multiple_…_(f30babd05c89dce9).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: named_tuple.md - `NamedTuple` - Edge case: multiple reachable definitions with distinct issues mdtest path: crates/ty_python_semantic/resources/mdtest/named_tuple.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/named_tuple.md_-_`NamedTuple`_-_NamedTuples_cannot_h…_(e2ed186fe2b2fc35).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/named_tuple.md_-_`NamedTuple`_-_NamedTuples_cannot_h…_(e2ed186fe2b2fc35).snap index 9ef81c9f38..e9666e7b76 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/named_tuple.md_-_`NamedTuple`_-_NamedTuples_cannot_h…_(e2ed186fe2b2fc35).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/named_tuple.md_-_`NamedTuple`_-_NamedTuples_cannot_h…_(e2ed186fe2b2fc35).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: named_tuple.md - `NamedTuple` - NamedTuples cannot have field names starting with underscores mdtest path: crates/ty_python_semantic/resources/mdtest/named_tuple.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/named_tuple.md_-_`NamedTuple`_-_`typing.NamedTuple`_-_Definition_(bbf79630502e65e9).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/named_tuple.md_-_`NamedTuple`_-_`typing.NamedTuple`_-_Definition_(bbf79630502e65e9).snap index d7effd9556..8ca6e86b15 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/named_tuple.md_-_`NamedTuple`_-_`typing.NamedTuple`_-_Definition_(bbf79630502e65e9).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/named_tuple.md_-_`NamedTuple`_-_`typing.NamedTuple`_-_Definition_(bbf79630502e65e9).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: named_tuple.md - `NamedTuple` - `typing.NamedTuple` - Definition mdtest path: crates/ty_python_semantic/resources/mdtest/named_tuple.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/named_tuple.md_-_`NamedTuple`_-_`typing.NamedTuple`_-_Multiple_Inheritance_(82ed33d1b3b433d8).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/named_tuple.md_-_`NamedTuple`_-_`typing.NamedTuple`_-_Multiple_Inheritance_(82ed33d1b3b433d8).snap index b2cc9d918e..da7cbc917b 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/named_tuple.md_-_`NamedTuple`_-_`typing.NamedTuple`_-_Multiple_Inheritance_(82ed33d1b3b433d8).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/named_tuple.md_-_`NamedTuple`_-_`typing.NamedTuple`_-_Multiple_Inheritance_(82ed33d1b3b433d8).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: named_tuple.md - `NamedTuple` - `typing.NamedTuple` - Multiple Inheritance mdtest path: crates/ty_python_semantic/resources/mdtest/named_tuple.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/new_types.md_-_NewType_-_The_base_of_a_`NewTy…_(9847ea9eddc316b4).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/new_types.md_-_NewType_-_The_base_of_a_`NewTy…_(9847ea9eddc316b4).snap index ee47accc9d..44eb34a405 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/new_types.md_-_NewType_-_The_base_of_a_`NewTy…_(9847ea9eddc316b4).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/new_types.md_-_NewType_-_The_base_of_a_`NewTy…_(9847ea9eddc316b4).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: new_types.md - NewType - The base of a `NewType` can't be a protocol class or a `TypedDict` mdtest path: crates/ty_python_semantic/resources/mdtest/annotations/new_types.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/new_types.md_-_NewType_-_Trying_to_subclass_a…_(fd3c73e2a9f04).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/new_types.md_-_NewType_-_Trying_to_subclass_a…_(fd3c73e2a9f04).snap index 9e4eac091a..cc448296c2 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/new_types.md_-_NewType_-_Trying_to_subclass_a…_(fd3c73e2a9f04).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/new_types.md_-_NewType_-_Trying_to_subclass_a…_(fd3c73e2a9f04).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: new_types.md - NewType - Trying to subclass a `NewType` produces an error matching CPython mdtest path: crates/ty_python_semantic/resources/mdtest/annotations/new_types.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/no_matching_overload…_-_No_matching_overload…_-_A_class_constructor_…_(dd9f8a8f736a329).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/no_matching_overload…_-_No_matching_overload…_-_A_class_constructor_…_(dd9f8a8f736a329).snap index 9a446afe71..2f63c59bc7 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/no_matching_overload…_-_No_matching_overload…_-_A_class_constructor_…_(dd9f8a8f736a329).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/no_matching_overload…_-_No_matching_overload…_-_A_class_constructor_…_(dd9f8a8f736a329).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: no_matching_overload.md - No matching overload diagnostics - A class constructor with unmatched overloads mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/no_matching_overload.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/no_matching_overload…_-_No_matching_overload…_-_A_method_call_with_u…_(31cb5f881221158e).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/no_matching_overload…_-_No_matching_overload…_-_A_method_call_with_u…_(31cb5f881221158e).snap index 66eccf602a..aab2785458 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/no_matching_overload…_-_No_matching_overload…_-_A_method_call_with_u…_(31cb5f881221158e).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/no_matching_overload…_-_No_matching_overload…_-_A_method_call_with_u…_(31cb5f881221158e).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: no_matching_overload.md - No matching overload diagnostics - A method call with unmatched overloads mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/no_matching_overload.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/no_matching_overload…_-_No_matching_overload…_-_Call_to_function_wit…_(dd80c593d9136f35).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/no_matching_overload…_-_No_matching_overload…_-_Call_to_function_wit…_(dd80c593d9136f35).snap index 68563b01be..0a890ed561 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/no_matching_overload…_-_No_matching_overload…_-_Call_to_function_wit…_(dd80c593d9136f35).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/no_matching_overload…_-_No_matching_overload…_-_Call_to_function_wit…_(dd80c593d9136f35).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: no_matching_overload.md - No matching overload diagnostics - Call to function with many unmatched overloads mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/no_matching_overload.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/no_matching_overload…_-_No_matching_overload…_-_Call_to_function_wit…_(f66e3a8a3977c472).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/no_matching_overload…_-_No_matching_overload…_-_Call_to_function_wit…_(f66e3a8a3977c472).snap index b14961eedf..5f6c882f2a 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/no_matching_overload…_-_No_matching_overload…_-_Call_to_function_wit…_(f66e3a8a3977c472).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/no_matching_overload…_-_No_matching_overload…_-_Call_to_function_wit…_(f66e3a8a3977c472).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: no_matching_overload.md - No matching overload diagnostics - Call to function with too many unmatched overloads mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/no_matching_overload.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/no_matching_overload…_-_No_matching_overload…_-_Calls_to_overloaded_…_(3553d085684e16a0).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/no_matching_overload…_-_No_matching_overload…_-_Calls_to_overloaded_…_(3553d085684e16a0).snap index 367bfd4dd8..fe16ec0b4f 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/no_matching_overload…_-_No_matching_overload…_-_Calls_to_overloaded_…_(3553d085684e16a0).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/no_matching_overload…_-_No_matching_overload…_-_Calls_to_overloaded_…_(3553d085684e16a0).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: no_matching_overload.md - No matching overload diagnostics - Calls to overloaded functions mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/no_matching_overload.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/no_matching_overload…_-_No_matching_overload…_-_Calls_to_overloaded_…_(36814b28492c01d2).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/no_matching_overload…_-_No_matching_overload…_-_Calls_to_overloaded_…_(36814b28492c01d2).snap index 83837288e2..2899c9df42 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/no_matching_overload…_-_No_matching_overload…_-_Calls_to_overloaded_…_(36814b28492c01d2).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/no_matching_overload…_-_No_matching_overload…_-_Calls_to_overloaded_…_(36814b28492c01d2).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: no_matching_overload.md - No matching overload diagnostics - Calls to overloaded functions with lots of parameters mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/no_matching_overload.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/not.md_-_Unary_not_-_Object_that_implemen…_(ab3f546bf004e24d).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/not.md_-_Unary_not_-_Object_that_implemen…_(ab3f546bf004e24d).snap index f5e88ebed0..a0cfef9ee7 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/not.md_-_Unary_not_-_Object_that_implemen…_(ab3f546bf004e24d).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/not.md_-_Unary_not_-_Object_that_implemen…_(ab3f546bf004e24d).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: not.md - Unary not - Object that implements `__bool__` incorrectly mdtest path: crates/ty_python_semantic/resources/mdtest/unary/not.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/overloads.md_-_Overloads_-_Argument_type_expans…_-_Optimization___Limit_…_(cd61048adbc17331).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/overloads.md_-_Overloads_-_Argument_type_expans…_-_Optimization___Limit_…_(cd61048adbc17331).snap index ae7b142691..bd64f6ba0d 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/overloads.md_-_Overloads_-_Argument_type_expans…_-_Optimization___Limit_…_(cd61048adbc17331).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/overloads.md_-_Overloads_-_Argument_type_expans…_-_Optimization___Limit_…_(cd61048adbc17331).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: overloads.md - Overloads - Argument type expansion - Optimization: Limit expansion size mdtest path: crates/ty_python_semantic/resources/mdtest/call/overloads.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/overloads.md_-_Overloads_-_Invalid_-_At_least_two_overloa…_(84dadf8abd8f2f2).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/overloads.md_-_Overloads_-_Invalid_-_At_least_two_overloa…_(84dadf8abd8f2f2).snap index e8d42bc20c..bfa53c6934 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/overloads.md_-_Overloads_-_Invalid_-_At_least_two_overloa…_(84dadf8abd8f2f2).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/overloads.md_-_Overloads_-_Invalid_-_At_least_two_overloa…_(84dadf8abd8f2f2).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: overloads.md - Overloads - Invalid - At least two overloads mdtest path: crates/ty_python_semantic/resources/mdtest/overloads.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/overloads.md_-_Overloads_-_Invalid_-_Inconsistent_decorat…_-_`@classmethod`_(aaa04d4cfa3adaba).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/overloads.md_-_Overloads_-_Invalid_-_Inconsistent_decorat…_-_`@classmethod`_(aaa04d4cfa3adaba).snap index 9fb873f913..9348391cf0 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/overloads.md_-_Overloads_-_Invalid_-_Inconsistent_decorat…_-_`@classmethod`_(aaa04d4cfa3adaba).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/overloads.md_-_Overloads_-_Invalid_-_Inconsistent_decorat…_-_`@classmethod`_(aaa04d4cfa3adaba).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: overloads.md - Overloads - Invalid - Inconsistent decorators - `@classmethod` mdtest path: crates/ty_python_semantic/resources/mdtest/overloads.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/overloads.md_-_Overloads_-_Invalid_-_Inconsistent_decorat…_-_`@final`_(f8e529ec23a61665).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/overloads.md_-_Overloads_-_Invalid_-_Inconsistent_decorat…_-_`@final`_(f8e529ec23a61665).snap index 6799a92a57..330b58b1da 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/overloads.md_-_Overloads_-_Invalid_-_Inconsistent_decorat…_-_`@final`_(f8e529ec23a61665).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/overloads.md_-_Overloads_-_Invalid_-_Inconsistent_decorat…_-_`@final`_(f8e529ec23a61665).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: overloads.md - Overloads - Invalid - Inconsistent decorators - `@final` mdtest path: crates/ty_python_semantic/resources/mdtest/overloads.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/overloads.md_-_Overloads_-_Invalid_-_Inconsistent_decorat…_-_`@override`_(2df210735ca532f9).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/overloads.md_-_Overloads_-_Invalid_-_Inconsistent_decorat…_-_`@override`_(2df210735ca532f9).snap index 80ff3214b4..65491f80ae 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/overloads.md_-_Overloads_-_Invalid_-_Inconsistent_decorat…_-_`@override`_(2df210735ca532f9).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/overloads.md_-_Overloads_-_Invalid_-_Inconsistent_decorat…_-_`@override`_(2df210735ca532f9).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: overloads.md - Overloads - Invalid - Inconsistent decorators - `@override` mdtest path: crates/ty_python_semantic/resources/mdtest/overloads.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/overloads.md_-_Overloads_-_Invalid_-_Overload_without_an_…_-_Regular_modules_(5c8e81664d1c7470).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/overloads.md_-_Overloads_-_Invalid_-_Overload_without_an_…_-_Regular_modules_(5c8e81664d1c7470).snap index 257cc54b78..b1e1dd8f9d 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/overloads.md_-_Overloads_-_Invalid_-_Overload_without_an_…_-_Regular_modules_(5c8e81664d1c7470).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/overloads.md_-_Overloads_-_Invalid_-_Overload_without_an_…_-_Regular_modules_(5c8e81664d1c7470).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: overloads.md - Overloads - Invalid - Overload without an implementation - Regular modules mdtest path: crates/ty_python_semantic/resources/mdtest/overloads.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/overloads.md_-_Overloads_-_Invalid_-_`@overload`-decorate…_(d17a1580f99a6402).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/overloads.md_-_Overloads_-_Invalid_-_`@overload`-decorate…_(d17a1580f99a6402).snap index dfc345b66a..d367b7d485 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/overloads.md_-_Overloads_-_Invalid_-_`@overload`-decorate…_(d17a1580f99a6402).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/overloads.md_-_Overloads_-_Invalid_-_`@overload`-decorate…_(d17a1580f99a6402).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: overloads.md - Overloads - Invalid - `@overload`-decorated functions with non-stub bodies mdtest path: crates/ty_python_semantic/resources/mdtest/overloads.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/override.md_-_`typing.override`_-_Basics_(b7c220f8171f11f0).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/override.md_-_`typing.override`_-_Basics_(b7c220f8171f11f0).snap index 45494e0a8a..a8ec582431 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/override.md_-_`typing.override`_-_Basics_(b7c220f8171f11f0).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/override.md_-_`typing.override`_-_Basics_(b7c220f8171f11f0).snap @@ -1,8 +1,8 @@ --- source: crates/ty_test/src/lib.rs -assertion_line: 623 expression: snapshot --- + --- mdtest name: override.md - `typing.override` - Basics mdtest path: crates/ty_python_semantic/resources/mdtest/override.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/protocols.md_-_Protocols_-_Calls_to_protocol_cl…_(288988036f34ddcf).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/protocols.md_-_Protocols_-_Calls_to_protocol_cl…_(288988036f34ddcf).snap index 60ff7043ab..b29576099a 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/protocols.md_-_Protocols_-_Calls_to_protocol_cl…_(288988036f34ddcf).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/protocols.md_-_Protocols_-_Calls_to_protocol_cl…_(288988036f34ddcf).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: protocols.md - Protocols - Calls to protocol classes mdtest path: crates/ty_python_semantic/resources/mdtest/protocols.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/protocols.md_-_Protocols_-_Diagnostics_for_prot…_(585a3e9545d41b64).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/protocols.md_-_Protocols_-_Diagnostics_for_prot…_(585a3e9545d41b64).snap index 6609a48adb..db198d93ed 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/protocols.md_-_Protocols_-_Diagnostics_for_prot…_(585a3e9545d41b64).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/protocols.md_-_Protocols_-_Diagnostics_for_prot…_(585a3e9545d41b64).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: protocols.md - Protocols - Diagnostics for protocols with invalid attribute members mdtest path: crates/ty_python_semantic/resources/mdtest/protocols.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/protocols.md_-_Protocols_-_Invalid_calls_to_`ge…_(3d0c4ee818c4d8d5).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/protocols.md_-_Protocols_-_Invalid_calls_to_`ge…_(3d0c4ee818c4d8d5).snap index 8d4d21634a..ccdd11f75e 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/protocols.md_-_Protocols_-_Invalid_calls_to_`ge…_(3d0c4ee818c4d8d5).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/protocols.md_-_Protocols_-_Invalid_calls_to_`ge…_(3d0c4ee818c4d8d5).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: protocols.md - Protocols - Invalid calls to `get_protocol_members()` mdtest path: crates/ty_python_semantic/resources/mdtest/protocols.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/protocols.md_-_Protocols_-_Narrowing_of_protoco…_(98257e7c2300373).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/protocols.md_-_Protocols_-_Narrowing_of_protoco…_(98257e7c2300373).snap index 1247edf089..a662a36836 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/protocols.md_-_Protocols_-_Narrowing_of_protoco…_(98257e7c2300373).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/protocols.md_-_Protocols_-_Narrowing_of_protoco…_(98257e7c2300373).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: protocols.md - Protocols - Narrowing of protocols mdtest path: crates/ty_python_semantic/resources/mdtest/protocols.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/protocols.md_-_Protocols_-_Protocol_members_in_…_(21be5d9bdab1c844).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/protocols.md_-_Protocols_-_Protocol_members_in_…_(21be5d9bdab1c844).snap index 28599faa0c..e6cfdc0316 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/protocols.md_-_Protocols_-_Protocol_members_in_…_(21be5d9bdab1c844).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/protocols.md_-_Protocols_-_Protocol_members_in_…_(21be5d9bdab1c844).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: protocols.md - Protocols - Protocol members in statically known branches mdtest path: crates/ty_python_semantic/resources/mdtest/protocols.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/return_type.md_-_Function_return_type_-_Diagnostics_for_`inv…_(35563a74094b14d5).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/return_type.md_-_Function_return_type_-_Diagnostics_for_`inv…_(35563a74094b14d5).snap index d9a0e67f6d..bbd1ef53b2 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/return_type.md_-_Function_return_type_-_Diagnostics_for_`inv…_(35563a74094b14d5).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/return_type.md_-_Function_return_type_-_Diagnostics_for_`inv…_(35563a74094b14d5).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: return_type.md - Function return type - Diagnostics for `invalid-return-type` on non-protocol subclasses of protocol classes mdtest path: crates/ty_python_semantic/resources/mdtest/function/return_type.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/return_type.md_-_Function_return_type_-_Generator_functions_-_Asynchronous_(408134055c24a538).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/return_type.md_-_Function_return_type_-_Generator_functions_-_Asynchronous_(408134055c24a538).snap index 82cad6aae5..0d76797531 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/return_type.md_-_Function_return_type_-_Generator_functions_-_Asynchronous_(408134055c24a538).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/return_type.md_-_Function_return_type_-_Generator_functions_-_Asynchronous_(408134055c24a538).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: return_type.md - Function return type - Generator functions - Asynchronous mdtest path: crates/ty_python_semantic/resources/mdtest/function/return_type.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/return_type.md_-_Function_return_type_-_Generator_functions_-_Synchronous_(6a32ec69d15117b8).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/return_type.md_-_Function_return_type_-_Generator_functions_-_Synchronous_(6a32ec69d15117b8).snap index 344a466b9c..b837230737 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/return_type.md_-_Function_return_type_-_Generator_functions_-_Synchronous_(6a32ec69d15117b8).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/return_type.md_-_Function_return_type_-_Generator_functions_-_Synchronous_(6a32ec69d15117b8).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: return_type.md - Function return type - Generator functions - Synchronous mdtest path: crates/ty_python_semantic/resources/mdtest/function/return_type.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/return_type.md_-_Function_return_type_-_Invalid_conditional_…_(94c036c5d3803ab2).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/return_type.md_-_Function_return_type_-_Invalid_conditional_…_(94c036c5d3803ab2).snap index 516ed04ec6..ada9c3dd41 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/return_type.md_-_Function_return_type_-_Invalid_conditional_…_(94c036c5d3803ab2).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/return_type.md_-_Function_return_type_-_Invalid_conditional_…_(94c036c5d3803ab2).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: return_type.md - Function return type - Invalid conditional return type mdtest path: crates/ty_python_semantic/resources/mdtest/function/return_type.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/return_type.md_-_Function_return_type_-_Invalid_implicit_ret…_(393cb38bf7119649).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/return_type.md_-_Function_return_type_-_Invalid_implicit_ret…_(393cb38bf7119649).snap index 889888f0a3..bfed329e87 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/return_type.md_-_Function_return_type_-_Invalid_implicit_ret…_(393cb38bf7119649).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/return_type.md_-_Function_return_type_-_Invalid_implicit_ret…_(393cb38bf7119649).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: return_type.md - Function return type - Invalid implicit return type mdtest path: crates/ty_python_semantic/resources/mdtest/function/return_type.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/return_type.md_-_Function_return_type_-_Invalid_implicit_ret…_(3d2d19aa49b28f1c).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/return_type.md_-_Function_return_type_-_Invalid_implicit_ret…_(3d2d19aa49b28f1c).snap index a4fd88d692..6db6709489 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/return_type.md_-_Function_return_type_-_Invalid_implicit_ret…_(3d2d19aa49b28f1c).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/return_type.md_-_Function_return_type_-_Invalid_implicit_ret…_(3d2d19aa49b28f1c).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: return_type.md - Function return type - Invalid implicit return type always None mdtest path: crates/ty_python_semantic/resources/mdtest/function/return_type.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/return_type.md_-_Function_return_type_-_Invalid_return_type_(a91e0c67519cd77f).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/return_type.md_-_Function_return_type_-_Invalid_return_type_(a91e0c67519cd77f).snap index e0f0371720..871041e340 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/return_type.md_-_Function_return_type_-_Invalid_return_type_(a91e0c67519cd77f).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/return_type.md_-_Function_return_type_-_Invalid_return_type_(a91e0c67519cd77f).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: return_type.md - Function return type - Invalid return type mdtest path: crates/ty_python_semantic/resources/mdtest/function/return_type.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/return_type.md_-_Function_return_type_-_Invalid_return_type_…_(c3a523878447af6b).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/return_type.md_-_Function_return_type_-_Invalid_return_type_…_(c3a523878447af6b).snap index 3c1f175437..796f0fbf88 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/return_type.md_-_Function_return_type_-_Invalid_return_type_…_(c3a523878447af6b).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/return_type.md_-_Function_return_type_-_Invalid_return_type_…_(c3a523878447af6b).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: return_type.md - Function return type - Invalid return type in stub file mdtest path: crates/ty_python_semantic/resources/mdtest/function/return_type.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/rich_comparison.md_-_Comparison___Rich_Com…_-_Chained_comparisons_…_(c391c13e2abc18a0).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/rich_comparison.md_-_Comparison___Rich_Com…_-_Chained_comparisons_…_(c391c13e2abc18a0).snap index f62a90156b..9830976cfc 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/rich_comparison.md_-_Comparison___Rich_Com…_-_Chained_comparisons_…_(c391c13e2abc18a0).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/rich_comparison.md_-_Comparison___Rich_Com…_-_Chained_comparisons_…_(c391c13e2abc18a0).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: rich_comparison.md - Comparison: Rich Comparison - Chained comparisons with objects that don't implement `__bool__` correctly mdtest path: crates/ty_python_semantic/resources/mdtest/comparison/instances/rich_comparison.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/scoping.md_-_Scoping_rules_for_ty…_-_Nested_formal_typeva…_-_Generic_class_within…_(3259718bf20b45a2).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/scoping.md_-_Scoping_rules_for_ty…_-_Nested_formal_typeva…_-_Generic_class_within…_(3259718bf20b45a2).snap index 5a02751545..1774bf0a1c 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/scoping.md_-_Scoping_rules_for_ty…_-_Nested_formal_typeva…_-_Generic_class_within…_(3259718bf20b45a2).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/scoping.md_-_Scoping_rules_for_ty…_-_Nested_formal_typeva…_-_Generic_class_within…_(3259718bf20b45a2).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: scoping.md - Scoping rules for type variables - Nested formal typevars must be distinct - Generic class within generic function mdtest path: crates/ty_python_semantic/resources/mdtest/generics/scoping.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/scoping.md_-_Scoping_rules_for_ty…_-_Nested_formal_typeva…_-_Generic_class_within…_(711fb86287c4d87b).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/scoping.md_-_Scoping_rules_for_ty…_-_Nested_formal_typeva…_-_Generic_class_within…_(711fb86287c4d87b).snap index 064c0f5344..36c097f4a1 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/scoping.md_-_Scoping_rules_for_ty…_-_Nested_formal_typeva…_-_Generic_class_within…_(711fb86287c4d87b).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/scoping.md_-_Scoping_rules_for_ty…_-_Nested_formal_typeva…_-_Generic_class_within…_(711fb86287c4d87b).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: scoping.md - Scoping rules for type variables - Nested formal typevars must be distinct - Generic class within generic class mdtest path: crates/ty_python_semantic/resources/mdtest/generics/scoping.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/semantic_syntax_erro…_-_Semantic_syntax_erro…_-_`async`_comprehensio…_-_Python_3.10_(96aa8ec77d46553d).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/semantic_syntax_erro…_-_Semantic_syntax_erro…_-_`async`_comprehensio…_-_Python_3.10_(96aa8ec77d46553d).snap index 975be8520f..b559d16d82 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/semantic_syntax_erro…_-_Semantic_syntax_erro…_-_`async`_comprehensio…_-_Python_3.10_(96aa8ec77d46553d).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/semantic_syntax_erro…_-_Semantic_syntax_erro…_-_`async`_comprehensio…_-_Python_3.10_(96aa8ec77d46553d).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: semantic_syntax_errors.md - Semantic syntax error diagnostics - `async` comprehensions in synchronous comprehensions - Python 3.10 mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/semantic_syntax_errors.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/semantic_syntax_erro…_-_Semantic_syntax_erro…_-_`break`_and_`continu…_(3143ba0a999d644).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/semantic_syntax_erro…_-_Semantic_syntax_erro…_-_`break`_and_`continu…_(3143ba0a999d644).snap index cd814dd61a..eeddb9c371 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/semantic_syntax_erro…_-_Semantic_syntax_erro…_-_`break`_and_`continu…_(3143ba0a999d644).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/semantic_syntax_erro…_-_Semantic_syntax_erro…_-_`break`_and_`continu…_(3143ba0a999d644).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: semantic_syntax_errors.md - Semantic syntax error diagnostics - `break` and `continue` outside a loop mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/semantic_syntax_errors.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/semantic_syntax_erro…_-_Semantic_syntax_erro…_-_name_is_parameter_an…_(99bae53daf67ae6e).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/semantic_syntax_erro…_-_Semantic_syntax_erro…_-_name_is_parameter_an…_(99bae53daf67ae6e).snap index 21c00c8b7e..f7a568555c 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/semantic_syntax_erro…_-_Semantic_syntax_erro…_-_name_is_parameter_an…_(99bae53daf67ae6e).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/semantic_syntax_erro…_-_Semantic_syntax_erro…_-_name_is_parameter_an…_(99bae53daf67ae6e).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: semantic_syntax_errors.md - Semantic syntax error diagnostics - name is parameter and global mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/semantic_syntax_errors.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/shadowing.md_-_Shadowing_-_Implicit_class_shado…_(c8ff9e3a079e8bd5).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/shadowing.md_-_Shadowing_-_Implicit_class_shado…_(c8ff9e3a079e8bd5).snap index 0e44e1e9e2..f073123247 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/shadowing.md_-_Shadowing_-_Implicit_class_shado…_(c8ff9e3a079e8bd5).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/shadowing.md_-_Shadowing_-_Implicit_class_shado…_(c8ff9e3a079e8bd5).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: shadowing.md - Shadowing - Implicit class shadowing mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/shadowing.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/shadowing.md_-_Shadowing_-_Implicit_function_sh…_(a1515328b775ebc1).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/shadowing.md_-_Shadowing_-_Implicit_function_sh…_(a1515328b775ebc1).snap index 4a502635f3..c9daedb605 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/shadowing.md_-_Shadowing_-_Implicit_function_sh…_(a1515328b775ebc1).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/shadowing.md_-_Shadowing_-_Implicit_function_sh…_(a1515328b775ebc1).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: shadowing.md - Shadowing - Implicit function shadowing mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/shadowing.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/single_matching_over…_-_Single_matching_over…_-_Call_to_function_wit…_(8fdf5a06afc7d4fe).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/single_matching_over…_-_Single_matching_over…_-_Call_to_function_wit…_(8fdf5a06afc7d4fe).snap index 3761148d09..8e50aa7a9d 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/single_matching_over…_-_Single_matching_over…_-_Call_to_function_wit…_(8fdf5a06afc7d4fe).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/single_matching_over…_-_Single_matching_over…_-_Call_to_function_wit…_(8fdf5a06afc7d4fe).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: single_matching_overload.md - Single matching overload - Call to function with too many unmatched overloads mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/single_matching_overload.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/single_matching_over…_-_Single_matching_over…_-_Limited_number_of_ov…_(93e9a157fdca3ab2).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/single_matching_over…_-_Single_matching_over…_-_Limited_number_of_ov…_(93e9a157fdca3ab2).snap index 198de896b9..2ec058ab0b 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/single_matching_over…_-_Single_matching_over…_-_Limited_number_of_ov…_(93e9a157fdca3ab2).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/single_matching_over…_-_Single_matching_over…_-_Limited_number_of_ov…_(93e9a157fdca3ab2).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: single_matching_overload.md - Single matching overload - Limited number of overloads mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/single_matching_overload.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/special_form_attribu…_-_Diagnostics_for_inva…_(249d635e74a41c9e).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/special_form_attribu…_-_Diagnostics_for_inva…_(249d635e74a41c9e).snap index 8672225ce0..4afe416675 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/special_form_attribu…_-_Diagnostics_for_inva…_(249d635e74a41c9e).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/special_form_attribu…_-_Diagnostics_for_inva…_(249d635e74a41c9e).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: special_form_attributes.md - Diagnostics for invalid attribute access on special forms mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/special_form_attributes.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/super.md_-_Super_-_Basic_Usage_-_Explicit_Super_Objec…_(b753048091f275c0).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/super.md_-_Super_-_Basic_Usage_-_Explicit_Super_Objec…_(b753048091f275c0).snap index 4a1c008f9f..d00f2e6bcf 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/super.md_-_Super_-_Basic_Usage_-_Explicit_Super_Objec…_(b753048091f275c0).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/super.md_-_Super_-_Basic_Usage_-_Explicit_Super_Objec…_(b753048091f275c0).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: super.md - Super - Basic Usage - Explicit Super Object mdtest path: crates/ty_python_semantic/resources/mdtest/class/super.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/super.md_-_Super_-_Basic_Usage_-_Implicit_Super_Objec…_(f9e5e48e3a4a4c12).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/super.md_-_Super_-_Basic_Usage_-_Implicit_Super_Objec…_(f9e5e48e3a4a4c12).snap index 8a51223e6d..f3bf848253 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/super.md_-_Super_-_Basic_Usage_-_Implicit_Super_Objec…_(f9e5e48e3a4a4c12).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/super.md_-_Super_-_Basic_Usage_-_Implicit_Super_Objec…_(f9e5e48e3a4a4c12).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: super.md - Super - Basic Usage - Implicit Super Object mdtest path: crates/ty_python_semantic/resources/mdtest/class/super.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/super.md_-_Super_-_Invalid_Usages_-_Diagnostic_when_the_…_(93e8ab913ead83b2).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/super.md_-_Super_-_Invalid_Usages_-_Diagnostic_when_the_…_(93e8ab913ead83b2).snap index 13f131e0eb..9df110ca13 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/super.md_-_Super_-_Invalid_Usages_-_Diagnostic_when_the_…_(93e8ab913ead83b2).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/super.md_-_Super_-_Invalid_Usages_-_Diagnostic_when_the_…_(93e8ab913ead83b2).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: super.md - Super - Invalid Usages - Diagnostic when the invalid type is rendered very verbosely mdtest path: crates/ty_python_semantic/resources/mdtest/class/super.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/sync.md_-_With_statements_-_Accidental_use_of_no…_(b07503f9b773ea61).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/sync.md_-_With_statements_-_Accidental_use_of_no…_(b07503f9b773ea61).snap index 25a2eeb705..97c84e5f76 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/sync.md_-_With_statements_-_Accidental_use_of_no…_(b07503f9b773ea61).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/sync.md_-_With_statements_-_Accidental_use_of_no…_(b07503f9b773ea61).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: sync.md - With statements - Accidental use of non-async `with` mdtest path: crates/ty_python_semantic/resources/mdtest/with/sync.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/too_many_positionals…_-_too-many-positional-…_(eafa522239b42502).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/too_many_positionals…_-_too-many-positional-…_(eafa522239b42502).snap index 661f46ac0b..4b6e277dfe 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/too_many_positionals…_-_too-many-positional-…_(eafa522239b42502).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/too_many_positionals…_-_too-many-positional-…_(eafa522239b42502).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: too_many_positionals.md - too-many-positional-arguments diagnostics mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/too_many_positionals.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/tuples.md_-_Comparison___Tuples_-_Chained_comparisons_…_(f45f1da2f8ca693d).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/tuples.md_-_Comparison___Tuples_-_Chained_comparisons_…_(f45f1da2f8ca693d).snap index 52bb93b61e..9c55c923f5 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/tuples.md_-_Comparison___Tuples_-_Chained_comparisons_…_(f45f1da2f8ca693d).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/tuples.md_-_Comparison___Tuples_-_Chained_comparisons_…_(f45f1da2f8ca693d).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: tuples.md - Comparison: Tuples - Chained comparisons with elements that incorrectly implement `__bool__` mdtest path: crates/ty_python_semantic/resources/mdtest/comparison/tuples.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/tuples.md_-_Comparison___Tuples_-_Equality_with_elemen…_(39b614d4707c0661).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/tuples.md_-_Comparison___Tuples_-_Equality_with_elemen…_(39b614d4707c0661).snap index c530be195b..fb3bcfe0e0 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/tuples.md_-_Comparison___Tuples_-_Equality_with_elemen…_(39b614d4707c0661).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/tuples.md_-_Comparison___Tuples_-_Equality_with_elemen…_(39b614d4707c0661).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: tuples.md - Comparison: Tuples - Equality with elements that incorrectly implement `__bool__` mdtest path: crates/ty_python_semantic/resources/mdtest/comparison/tuples.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/tuples.md_-_Comparison___Tuples_-_Heterogeneous_-_Value_Comparisons_-_Comparison_Unsupport…_(966dd82bd3668d0e).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/tuples.md_-_Comparison___Tuples_-_Heterogeneous_-_Value_Comparisons_-_Comparison_Unsupport…_(966dd82bd3668d0e).snap index 32b12ff278..4559e2033a 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/tuples.md_-_Comparison___Tuples_-_Heterogeneous_-_Value_Comparisons_-_Comparison_Unsupport…_(966dd82bd3668d0e).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/tuples.md_-_Comparison___Tuples_-_Heterogeneous_-_Value_Comparisons_-_Comparison_Unsupport…_(966dd82bd3668d0e).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: tuples.md - Comparison: Tuples - Heterogeneous - Value Comparisons - Comparison Unsupported mdtest path: crates/ty_python_semantic/resources/mdtest/comparison/tuples.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/ty_extensions.md_-_`ty_extensions`_-_Diagnostic_snapshots_(662547cd88c67f9f).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/ty_extensions.md_-_`ty_extensions`_-_Diagnostic_snapshots_(662547cd88c67f9f).snap index 7f669b70a3..f20c7a379f 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/ty_extensions.md_-_`ty_extensions`_-_Diagnostic_snapshots_(662547cd88c67f9f).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/ty_extensions.md_-_`ty_extensions`_-_Diagnostic_snapshots_(662547cd88c67f9f).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: ty_extensions.md - `ty_extensions` - Diagnostic snapshots mdtest path: crates/ty_python_semantic/resources/mdtest/ty_extensions.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/ty_ignore.md_-_Suppressing_errors_w…_-_Multiple_unused_comm…_(7cbe4a1d9893a05).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/ty_ignore.md_-_Suppressing_errors_w…_-_Multiple_unused_comm…_(7cbe4a1d9893a05).snap index f5d6cc1663..5299372d53 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/ty_ignore.md_-_Suppressing_errors_w…_-_Multiple_unused_comm…_(7cbe4a1d9893a05).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/ty_ignore.md_-_Suppressing_errors_w…_-_Multiple_unused_comm…_(7cbe4a1d9893a05).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: ty_ignore.md - Suppressing errors with `ty: ignore` - Multiple unused comments mdtest path: crates/ty_python_semantic/resources/mdtest/suppressions/ty_ignore.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/type_ignore.md_-_Suppressing_errors_w…_-_Nested_comments_(6e4dc67270e388d2).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/type_ignore.md_-_Suppressing_errors_w…_-_Nested_comments_(6e4dc67270e388d2).snap index 79d97064f2..ffe10ed75e 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/type_ignore.md_-_Suppressing_errors_w…_-_Nested_comments_(6e4dc67270e388d2).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/type_ignore.md_-_Suppressing_errors_w…_-_Nested_comments_(6e4dc67270e388d2).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: type_ignore.md - Suppressing errors with `type: ignore` - Nested comments mdtest path: crates/ty_python_semantic/resources/mdtest/suppressions/type_ignore.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/typed_dict.md_-_`TypedDict`_-_Diagnostics_(e5289abf5c570c29).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/typed_dict.md_-_`TypedDict`_-_Diagnostics_(e5289abf5c570c29).snap index 1f70b8acd3..643eb10927 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/typed_dict.md_-_`TypedDict`_-_Diagnostics_(e5289abf5c570c29).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/typed_dict.md_-_`TypedDict`_-_Diagnostics_(e5289abf5c570c29).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: typed_dict.md - `TypedDict` - Diagnostics mdtest path: crates/ty_python_semantic/resources/mdtest/typed_dict.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/typed_dict.md_-_`TypedDict`_-_Error_cases_-_`typing.TypedDict`_i…_(9df67eb93e3df341).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/typed_dict.md_-_`TypedDict`_-_Error_cases_-_`typing.TypedDict`_i…_(9df67eb93e3df341).snap index 2cdd83de75..afc13bd6de 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/typed_dict.md_-_`TypedDict`_-_Error_cases_-_`typing.TypedDict`_i…_(9df67eb93e3df341).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/typed_dict.md_-_`TypedDict`_-_Error_cases_-_`typing.TypedDict`_i…_(9df67eb93e3df341).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: typed_dict.md - `TypedDict` - Error cases - `typing.TypedDict` is not allowed in type expressions mdtest path: crates/ty_python_semantic/resources/mdtest/typed_dict.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/typed_dict.md_-_`TypedDict`_-_Redundant_cast_warni…_(75ac240a2d1f7108).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/typed_dict.md_-_`TypedDict`_-_Redundant_cast_warni…_(75ac240a2d1f7108).snap index 16f2235fc9..2503d5d57c 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/typed_dict.md_-_`TypedDict`_-_Redundant_cast_warni…_(75ac240a2d1f7108).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/typed_dict.md_-_`TypedDict`_-_Redundant_cast_warni…_(75ac240a2d1f7108).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: typed_dict.md - `TypedDict` - Redundant cast warnings mdtest path: crates/ty_python_semantic/resources/mdtest/typed_dict.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/union_call.md_-_Calling_a_union_of_f…_-_A_smaller_scale_exam…_(c24ecd8582e5eb2f).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/union_call.md_-_Calling_a_union_of_f…_-_A_smaller_scale_exam…_(c24ecd8582e5eb2f).snap index f332f243c3..b9686eb245 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/union_call.md_-_Calling_a_union_of_f…_-_A_smaller_scale_exam…_(c24ecd8582e5eb2f).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/union_call.md_-_Calling_a_union_of_f…_-_A_smaller_scale_exam…_(c24ecd8582e5eb2f).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: union_call.md - Calling a union of function types - A smaller scale example mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/union_call.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/union_call.md_-_Calling_a_union_of_f…_-_Multiple_variants_bu…_(d840ac443ca8ec7f).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/union_call.md_-_Calling_a_union_of_f…_-_Multiple_variants_bu…_(d840ac443ca8ec7f).snap index 4c278cbf2d..93aa4fc4d7 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/union_call.md_-_Calling_a_union_of_f…_-_Multiple_variants_bu…_(d840ac443ca8ec7f).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/union_call.md_-_Calling_a_union_of_f…_-_Multiple_variants_bu…_(d840ac443ca8ec7f).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: union_call.md - Calling a union of function types - Multiple variants but only one is invalid mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/union_call.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/union_call.md_-_Calling_a_union_of_f…_-_Try_to_cover_all_pos…_-_Cover_keyword_argume…_(ad1d489710ee2a34).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/union_call.md_-_Calling_a_union_of_f…_-_Try_to_cover_all_pos…_-_Cover_keyword_argume…_(ad1d489710ee2a34).snap index 0403b49235..88b4a2679d 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/union_call.md_-_Calling_a_union_of_f…_-_Try_to_cover_all_pos…_-_Cover_keyword_argume…_(ad1d489710ee2a34).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/union_call.md_-_Calling_a_union_of_f…_-_Try_to_cover_all_pos…_-_Cover_keyword_argume…_(ad1d489710ee2a34).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: union_call.md - Calling a union of function types - Try to cover all possible reasons - Cover keyword argument related reasons mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/union_call.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/union_call.md_-_Calling_a_union_of_f…_-_Try_to_cover_all_pos…_-_Cover_non-keyword_re…_(707b284610419a54).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/union_call.md_-_Calling_a_union_of_f…_-_Try_to_cover_all_pos…_-_Cover_non-keyword_re…_(707b284610419a54).snap index 41b82b238e..cffbc5d79b 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/union_call.md_-_Calling_a_union_of_f…_-_Try_to_cover_all_pos…_-_Cover_non-keyword_re…_(707b284610419a54).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/union_call.md_-_Calling_a_union_of_f…_-_Try_to_cover_all_pos…_-_Cover_non-keyword_re…_(707b284610419a54).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: union_call.md - Calling a union of function types - Try to cover all possible reasons - Cover non-keyword related reasons mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/union_call.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/union_call.md_-_Calling_a_union_of_f…_-_Try_to_cover_all_pos…_-_Truncation_for_long_…_(ec94b5e857284ef3).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/union_call.md_-_Calling_a_union_of_f…_-_Try_to_cover_all_pos…_-_Truncation_for_long_…_(ec94b5e857284ef3).snap index 77582d963c..c652e3de0c 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/union_call.md_-_Calling_a_union_of_f…_-_Try_to_cover_all_pos…_-_Truncation_for_long_…_(ec94b5e857284ef3).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/union_call.md_-_Calling_a_union_of_f…_-_Try_to_cover_all_pos…_-_Truncation_for_long_…_(ec94b5e857284ef3).snap @@ -1,8 +1,8 @@ --- source: crates/ty_test/src/lib.rs -assertion_line: 427 expression: snapshot --- + --- mdtest name: union_call.md - Calling a union of function types - Try to cover all possible reasons - Truncation for long unions and literals mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/union_call.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/unions.md_-_Comparison___Unions_-_Unsupported_operatio…_(e15acf820f65e3e4).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/unions.md_-_Comparison___Unions_-_Unsupported_operatio…_(e15acf820f65e3e4).snap index 219bb20795..68e3427351 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/unions.md_-_Comparison___Unions_-_Unsupported_operatio…_(e15acf820f65e3e4).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/unions.md_-_Comparison___Unions_-_Unsupported_operatio…_(e15acf820f65e3e4).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: unions.md - Comparison: Unions - Unsupported operations mdtest path: crates/ty_python_semantic/resources/mdtest/comparison/unions.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/unknown_argument.md_-_Unknown_argument_dia…_(f419c2a8e2ce2412).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/unknown_argument.md_-_Unknown_argument_dia…_(f419c2a8e2ce2412).snap index 2e384bd517..3e6cefc039 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/unknown_argument.md_-_Unknown_argument_dia…_(f419c2a8e2ce2412).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/unknown_argument.md_-_Unknown_argument_dia…_(f419c2a8e2ce2412).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: unknown_argument.md - Unknown argument diagnostics mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/unknown_argument.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/unpacking.md_-_Unpacking_-_Exactly_too_few_valu…_(f920ea85eefe9cfe).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/unpacking.md_-_Unpacking_-_Exactly_too_few_valu…_(f920ea85eefe9cfe).snap index 55d6a1a7ea..a6cd65e2f1 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/unpacking.md_-_Unpacking_-_Exactly_too_few_valu…_(f920ea85eefe9cfe).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/unpacking.md_-_Unpacking_-_Exactly_too_few_valu…_(f920ea85eefe9cfe).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: unpacking.md - Unpacking - Exactly too few values to unpack mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/unpacking.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/unpacking.md_-_Unpacking_-_Exactly_too_many_val…_(a53a2aec02bc999).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/unpacking.md_-_Unpacking_-_Exactly_too_many_val…_(a53a2aec02bc999).snap index 8aad685ea4..4c03801e56 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/unpacking.md_-_Unpacking_-_Exactly_too_many_val…_(a53a2aec02bc999).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/unpacking.md_-_Unpacking_-_Exactly_too_many_val…_(a53a2aec02bc999).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: unpacking.md - Unpacking - Exactly too many values to unpack mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/unpacking.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/unpacking.md_-_Unpacking_-_Right_hand_side_not_…_(fae6e2d526396252).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/unpacking.md_-_Unpacking_-_Right_hand_side_not_…_(fae6e2d526396252).snap index e26eb8fae4..5431636986 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/unpacking.md_-_Unpacking_-_Right_hand_side_not_…_(fae6e2d526396252).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/unpacking.md_-_Unpacking_-_Right_hand_side_not_…_(fae6e2d526396252).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: unpacking.md - Unpacking - Right hand side not iterable mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/unpacking.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/unpacking.md_-_Unpacking_-_Too_few_values_to_un…_(cef19e6b2b58e6a3).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/unpacking.md_-_Unpacking_-_Too_few_values_to_un…_(cef19e6b2b58e6a3).snap index c255da479b..7174be7e04 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/unpacking.md_-_Unpacking_-_Too_few_values_to_un…_(cef19e6b2b58e6a3).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/unpacking.md_-_Unpacking_-_Too_few_values_to_un…_(cef19e6b2b58e6a3).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: unpacking.md - Unpacking - Too few values to unpack mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/unpacking.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/unreachable.md_-_Unreachable_code_-_`Never`-inferred_var…_(6ce5aa6d2a0ce029).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/unreachable.md_-_Unreachable_code_-_`Never`-inferred_var…_(6ce5aa6d2a0ce029).snap index aa86b9cbef..4963a7411e 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/unreachable.md_-_Unreachable_code_-_`Never`-inferred_var…_(6ce5aa6d2a0ce029).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/unreachable.md_-_Unreachable_code_-_`Never`-inferred_var…_(6ce5aa6d2a0ce029).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: unreachable.md - Unreachable code - `Never`-inferred variables in type expressions mdtest path: crates/ty_python_semantic/resources/mdtest/unreachable.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/unresolved_import.md_-_Unresolved_import_di…_-_An_unresolvable_impo…_(72d090df51ea97b8).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/unresolved_import.md_-_Unresolved_import_di…_-_An_unresolvable_impo…_(72d090df51ea97b8).snap index fbaa1abc00..d5f0355381 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/unresolved_import.md_-_Unresolved_import_di…_-_An_unresolvable_impo…_(72d090df51ea97b8).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/unresolved_import.md_-_Unresolved_import_di…_-_An_unresolvable_impo…_(72d090df51ea97b8).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: unresolved_import.md - Unresolved import diagnostics - An unresolvable import that does not use `from` mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/unresolved_import.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/unresolved_import.md_-_Unresolved_import_di…_-_Using_`from`_with_a_…_(12d4a70b7fc67cc6).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/unresolved_import.md_-_Unresolved_import_di…_-_Using_`from`_with_a_…_(12d4a70b7fc67cc6).snap index 2972b4a66c..aa430341eb 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/unresolved_import.md_-_Unresolved_import_di…_-_Using_`from`_with_a_…_(12d4a70b7fc67cc6).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/unresolved_import.md_-_Unresolved_import_di…_-_Using_`from`_with_a_…_(12d4a70b7fc67cc6).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: unresolved_import.md - Unresolved import diagnostics - Using `from` with a resolvable module but unresolvable item mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/unresolved_import.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/unresolved_import.md_-_Unresolved_import_di…_-_Using_`from`_with_an…_(6cff507dc64a1bff).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/unresolved_import.md_-_Unresolved_import_di…_-_Using_`from`_with_an…_(6cff507dc64a1bff).snap index 9179defb29..c34511d957 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/unresolved_import.md_-_Unresolved_import_di…_-_Using_`from`_with_an…_(6cff507dc64a1bff).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/unresolved_import.md_-_Unresolved_import_di…_-_Using_`from`_with_an…_(6cff507dc64a1bff).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: unresolved_import.md - Unresolved import diagnostics - Using `from` with an unknown nested module mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/unresolved_import.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/unresolved_import.md_-_Unresolved_import_di…_-_Using_`from`_with_an…_(9da56616d6332a83).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/unresolved_import.md_-_Unresolved_import_di…_-_Using_`from`_with_an…_(9da56616d6332a83).snap index a034b43e95..c85d54ee41 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/unresolved_import.md_-_Unresolved_import_di…_-_Using_`from`_with_an…_(9da56616d6332a83).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/unresolved_import.md_-_Unresolved_import_di…_-_Using_`from`_with_an…_(9da56616d6332a83).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: unresolved_import.md - Unresolved import diagnostics - Using `from` with an unknown current module mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/unresolved_import.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/unresolved_import.md_-_Unresolved_import_di…_-_Using_`from`_with_an…_(9fa713dfa17cc404).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/unresolved_import.md_-_Unresolved_import_di…_-_Using_`from`_with_an…_(9fa713dfa17cc404).snap index 83f03b7929..00f511907e 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/unresolved_import.md_-_Unresolved_import_di…_-_Using_`from`_with_an…_(9fa713dfa17cc404).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/unresolved_import.md_-_Unresolved_import_di…_-_Using_`from`_with_an…_(9fa713dfa17cc404).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: unresolved_import.md - Unresolved import diagnostics - Using `from` with an unresolvable module mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/unresolved_import.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/unresolved_import.md_-_Unresolved_import_di…_-_Using_`from`_with_to…_(4b8ba6ee48180cdd).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/unresolved_import.md_-_Unresolved_import_di…_-_Using_`from`_with_to…_(4b8ba6ee48180cdd).snap index 2df94a06f5..4191027cb2 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/unresolved_import.md_-_Unresolved_import_di…_-_Using_`from`_with_to…_(4b8ba6ee48180cdd).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/unresolved_import.md_-_Unresolved_import_di…_-_Using_`from`_with_to…_(4b8ba6ee48180cdd).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: unresolved_import.md - Unresolved import diagnostics - Using `from` with too many leading dots mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/unresolved_import.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/unresolved_reference…_-_Diagnostics_for_unre…_-_New_builtin_used_on_…_(51edda0b1aebc2bf).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/unresolved_reference…_-_Diagnostics_for_unre…_-_New_builtin_used_on_…_(51edda0b1aebc2bf).snap index fd14c51a15..ff392dbd66 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/unresolved_reference…_-_Diagnostics_for_unre…_-_New_builtin_used_on_…_(51edda0b1aebc2bf).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/unresolved_reference…_-_Diagnostics_for_unre…_-_New_builtin_used_on_…_(51edda0b1aebc2bf).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: unresolved_reference.md - Diagnostics for unresolved references - New builtin used on old Python version mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/unresolved_reference.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/unsupported.md_-_Comparison___Unsuppor…_(c13dd5902282489a).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/unsupported.md_-_Comparison___Unsuppor…_(c13dd5902282489a).snap index c1593bfd0a..70360cb3df 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/unsupported.md_-_Comparison___Unsuppor…_(c13dd5902282489a).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/unsupported.md_-_Comparison___Unsuppor…_(c13dd5902282489a).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: unsupported.md - Comparison: Unsupported operators mdtest path: crates/ty_python_semantic/resources/mdtest/comparison/unsupported.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/unsupported_bool_con…_-_Different_ways_that_…_-_Has_a_`__bool__`_att…_(2721d40bf12fe8b7).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/unsupported_bool_con…_-_Different_ways_that_…_-_Has_a_`__bool__`_att…_(2721d40bf12fe8b7).snap index bcb4ffb0c6..d2add40d2a 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/unsupported_bool_con…_-_Different_ways_that_…_-_Has_a_`__bool__`_att…_(2721d40bf12fe8b7).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/unsupported_bool_con…_-_Different_ways_that_…_-_Has_a_`__bool__`_att…_(2721d40bf12fe8b7).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: unsupported_bool_conversion.md - Different ways that `unsupported-bool-conversion` can occur - Has a `__bool__` attribute, but it's not callable mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/unsupported_bool_conversion.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/unsupported_bool_con…_-_Different_ways_that_…_-_Has_a_`__bool__`_met…_(15636dc4074e5335).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/unsupported_bool_con…_-_Different_ways_that_…_-_Has_a_`__bool__`_met…_(15636dc4074e5335).snap index b3a86fac93..4d10d32ecd 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/unsupported_bool_con…_-_Different_ways_that_…_-_Has_a_`__bool__`_met…_(15636dc4074e5335).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/unsupported_bool_con…_-_Different_ways_that_…_-_Has_a_`__bool__`_met…_(15636dc4074e5335).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: unsupported_bool_conversion.md - Different ways that `unsupported-bool-conversion` can occur - Has a `__bool__` method, but has an incorrect return type mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/unsupported_bool_conversion.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/unsupported_bool_con…_-_Different_ways_that_…_-_Has_a_`__bool__`_met…_(ce8b8da49eaf4cda).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/unsupported_bool_con…_-_Different_ways_that_…_-_Has_a_`__bool__`_met…_(ce8b8da49eaf4cda).snap index 0e35519ee4..5c9880baaf 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/unsupported_bool_con…_-_Different_ways_that_…_-_Has_a_`__bool__`_met…_(ce8b8da49eaf4cda).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/unsupported_bool_con…_-_Different_ways_that_…_-_Has_a_`__bool__`_met…_(ce8b8da49eaf4cda).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: unsupported_bool_conversion.md - Different ways that `unsupported-bool-conversion` can occur - Has a `__bool__` method, but has incorrect parameters mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/unsupported_bool_conversion.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/unsupported_bool_con…_-_Different_ways_that_…_-_Part_of_a_union_wher…_(7cca8063ea43c1a).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/unsupported_bool_con…_-_Different_ways_that_…_-_Part_of_a_union_wher…_(7cca8063ea43c1a).snap index d86b17b1dc..a7b30105a8 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/unsupported_bool_con…_-_Different_ways_that_…_-_Part_of_a_union_wher…_(7cca8063ea43c1a).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/unsupported_bool_con…_-_Different_ways_that_…_-_Part_of_a_union_wher…_(7cca8063ea43c1a).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: unsupported_bool_conversion.md - Different ways that `unsupported-bool-conversion` can occur - Part of a union where at least one member has incorrect `__bool__` method mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/unsupported_bool_conversion.md diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/version_related_synt…_-_Version-related_synt…_-_`match`_statement_-_Before_3.10_(2545eaa83b635b8b).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/version_related_synt…_-_Version-related_synt…_-_`match`_statement_-_Before_3.10_(2545eaa83b635b8b).snap index a2cea52ff9..88db0a2485 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/version_related_synt…_-_Version-related_synt…_-_`match`_statement_-_Before_3.10_(2545eaa83b635b8b).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/version_related_synt…_-_Version-related_synt…_-_`match`_statement_-_Before_3.10_(2545eaa83b635b8b).snap @@ -2,6 +2,7 @@ source: crates/ty_test/src/lib.rs expression: snapshot --- + --- mdtest name: version_related_syntax_errors.md - Version-related syntax error diagnostics - `match` statement - Before 3.10 mdtest path: crates/ty_python_semantic/resources/mdtest/diagnostics/version_related_syntax_errors.md diff --git a/crates/ty_python_semantic/src/types/display.rs b/crates/ty_python_semantic/src/types/display.rs index 4b29d343a2..f19a99e863 100644 --- a/crates/ty_python_semantic/src/types/display.rs +++ b/crates/ty_python_semantic/src/types/display.rs @@ -2822,7 +2822,7 @@ mod tests { ], Some(Type::none(&db)) ), - @r" + @" ( x=..., y: str = ... @@ -2840,7 +2840,7 @@ mod tests { ], Some(Type::none(&db)) ), - @r" + @" ( x, y, @@ -2859,7 +2859,7 @@ mod tests { ], Some(Type::none(&db)) ), - @r" + @" ( x, /, @@ -2878,7 +2878,7 @@ mod tests { ], Some(Type::none(&db)) ), - @r" + @" ( *, x, @@ -2897,7 +2897,7 @@ mod tests { ], Some(Type::none(&db)) ), - @r" + @" ( x, *, @@ -2936,7 +2936,7 @@ mod tests { ], Some(KnownClass::Bytes.to_instance(&db)) ), - @r" + @" ( a, b: int, diff --git a/crates/ty_server/tests/e2e/notebook.rs b/crates/ty_server/tests/e2e/notebook.rs index 71b91f9ce7..2247be813d 100644 --- a/crates/ty_server/tests/e2e/notebook.rs +++ b/crates/ty_server/tests/e2e/notebook.rs @@ -200,7 +200,7 @@ fn swap_cells() -> anyhow::Result<()> { let notebook = builder.open(&mut server); let diagnostics = server.collect_publish_diagnostic_notifications(3); - assert_json_snapshot!(diagnostics, @r###" + assert_json_snapshot!(diagnostics, @r#" { "vscode-notebook-cell://src/test.ipynb#0": [ { @@ -226,7 +226,7 @@ fn swap_cells() -> anyhow::Result<()> { "vscode-notebook-cell://src/test.ipynb#1": [], "vscode-notebook-cell://src/test.ipynb#2": [] } - "###); + "#); // Re-order the cells from `b`, `a`, `c` to `a`, `b`, `c` (swapping cell 1 and 2) server.send_notification::( @@ -269,13 +269,13 @@ fn swap_cells() -> anyhow::Result<()> { let diagnostics = server.collect_publish_diagnostic_notifications(3); - assert_json_snapshot!(diagnostics, @r###" + assert_json_snapshot!(diagnostics, @r#" { "vscode-notebook-cell://src/test.ipynb#0": [], "vscode-notebook-cell://src/test.ipynb#1": [], "vscode-notebook-cell://src/test.ipynb#2": [] } - "###); + "#); Ok(()) } @@ -460,12 +460,12 @@ fn invalid_syntax_with_syntax_errors_disabled() -> anyhow::Result<()> { let diagnostics = server.collect_publish_diagnostic_notifications(2); - assert_json_snapshot!(diagnostics, @r###" + assert_json_snapshot!(diagnostics, @r#" { "vscode-notebook-cell://src/test.ipynb#0": [], "vscode-notebook-cell://src/test.ipynb#1": [] } - "###); + "#); Ok(()) }