]> git.madduck.net Git - etc/vim.git/commit

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Use inline flags for test cases (#3931)
authorJelle Zijlstra <jelle.zijlstra@gmail.com>
Tue, 10 Oct 2023 01:43:47 +0000 (18:43 -0700)
committerGitHub <noreply@github.com>
Tue, 10 Oct 2023 01:43:47 +0000 (18:43 -0700)
commita69bda3b9bde208d5489eb2e37fc982b6bc1d8df
treed8a8954517a613fb559cab190c8b7495fe0b1bc4
parent715f60c11bc12d8d6ffedded90c2b9a6a1b6a287
Use inline flags for test cases (#3931)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
132 files changed:
docs/contributing/the_basics.md
tests/data/cases/attribute_access_on_number_literals.py [moved from tests/data/simple_cases/attribute_access_on_number_literals.py with 100% similarity]
tests/data/cases/beginning_backslash.py [moved from tests/data/simple_cases/beginning_backslash.py with 100% similarity]
tests/data/cases/bracketmatch.py [moved from tests/data/simple_cases/bracketmatch.py with 100% similarity]
tests/data/cases/class_blank_parentheses.py [moved from tests/data/simple_cases/class_blank_parentheses.py with 100% similarity]
tests/data/cases/class_methods_new_line.py [moved from tests/data/simple_cases/class_methods_new_line.py with 100% similarity]
tests/data/cases/collections.py [moved from tests/data/simple_cases/collections.py with 100% similarity]
tests/data/cases/comment_after_escaped_newline.py [moved from tests/data/simple_cases/comment_after_escaped_newline.py with 100% similarity]
tests/data/cases/comments.py [moved from tests/data/simple_cases/comments.py with 100% similarity]
tests/data/cases/comments2.py [moved from tests/data/simple_cases/comments2.py with 100% similarity]
tests/data/cases/comments3.py [moved from tests/data/simple_cases/comments3.py with 100% similarity]
tests/data/cases/comments4.py [moved from tests/data/simple_cases/comments4.py with 100% similarity]
tests/data/cases/comments5.py [moved from tests/data/simple_cases/comments5.py with 100% similarity]
tests/data/cases/comments6.py [moved from tests/data/simple_cases/comments6.py with 100% similarity]
tests/data/cases/comments8.py [moved from tests/data/simple_cases/comments8.py with 100% similarity]
tests/data/cases/comments9.py [moved from tests/data/simple_cases/comments9.py with 100% similarity]
tests/data/cases/comments_non_breaking_space.py [moved from tests/data/simple_cases/comments_non_breaking_space.py with 100% similarity]
tests/data/cases/composition.py [moved from tests/data/simple_cases/composition.py with 100% similarity]
tests/data/cases/composition_no_trailing_comma.py [moved from tests/data/simple_cases/composition_no_trailing_comma.py with 100% similarity]
tests/data/cases/docstring.py [moved from tests/data/simple_cases/docstring.py with 100% similarity]
tests/data/cases/docstring_no_extra_empty_line_before_eof.py [moved from tests/data/simple_cases/docstring_no_extra_empty_line_before_eof.py with 100% similarity]
tests/data/cases/docstring_no_string_normalization.py [moved from tests/data/miscellaneous/docstring_no_string_normalization.py with 98% similarity]
tests/data/cases/docstring_preview.py [moved from tests/data/simple_cases/docstring_preview.py with 100% similarity]
tests/data/cases/docstring_preview_no_string_normalization.py [moved from tests/data/miscellaneous/docstring_preview_no_string_normalization.py with 88% similarity]
tests/data/cases/empty_lines.py [moved from tests/data/simple_cases/empty_lines.py with 100% similarity]
tests/data/cases/expression.diff [moved from tests/data/simple_cases/expression.diff with 100% similarity]
tests/data/cases/expression.py [moved from tests/data/simple_cases/expression.py with 100% similarity]
tests/data/cases/fmtonoff.py [moved from tests/data/simple_cases/fmtonoff.py with 100% similarity]
tests/data/cases/fmtonoff2.py [moved from tests/data/simple_cases/fmtonoff2.py with 100% similarity]
tests/data/cases/fmtonoff3.py [moved from tests/data/simple_cases/fmtonoff3.py with 100% similarity]
tests/data/cases/fmtonoff4.py [moved from tests/data/simple_cases/fmtonoff4.py with 100% similarity]
tests/data/cases/fmtonoff5.py [moved from tests/data/simple_cases/fmtonoff5.py with 100% similarity]
tests/data/cases/fmtpass_imports.py [moved from tests/data/simple_cases/fmtpass_imports.py with 100% similarity]
tests/data/cases/fmtskip.py [moved from tests/data/simple_cases/fmtskip.py with 100% similarity]
tests/data/cases/fmtskip2.py [moved from tests/data/simple_cases/fmtskip2.py with 100% similarity]
tests/data/cases/fmtskip3.py [moved from tests/data/simple_cases/fmtskip3.py with 100% similarity]
tests/data/cases/fmtskip4.py [moved from tests/data/simple_cases/fmtskip4.py with 100% similarity]
tests/data/cases/fmtskip5.py [moved from tests/data/simple_cases/fmtskip5.py with 100% similarity]
tests/data/cases/fmtskip6.py [moved from tests/data/simple_cases/fmtskip6.py with 100% similarity]
tests/data/cases/fmtskip7.py [moved from tests/data/simple_cases/fmtskip7.py with 100% similarity]
tests/data/cases/fmtskip8.py [moved from tests/data/simple_cases/fmtskip8.py with 100% similarity]
tests/data/cases/fstring.py [moved from tests/data/simple_cases/fstring.py with 100% similarity]
tests/data/cases/funcdef_return_type_trailing_comma.py [moved from tests/data/preview_py_310/funcdef_return_type_trailing_comma.py with 99% similarity]
tests/data/cases/function.py [moved from tests/data/simple_cases/function.py with 100% similarity]
tests/data/cases/function2.py [moved from tests/data/simple_cases/function2.py with 100% similarity]
tests/data/cases/function_trailing_comma.py [moved from tests/data/simple_cases/function_trailing_comma.py with 100% similarity]
tests/data/cases/ignore_pyi.py [moved from tests/data/simple_cases/ignore_pyi.py with 97% similarity]
tests/data/cases/import_spacing.py [moved from tests/data/simple_cases/import_spacing.py with 100% similarity]
tests/data/cases/linelength6.py [moved from tests/data/miscellaneous/linelength6.py with 80% similarity]
tests/data/cases/long_strings_flag_disabled.py [moved from tests/data/miscellaneous/long_strings_flag_disabled.py with 100% similarity]
tests/data/cases/multiline_consecutive_open_parentheses_ignore.py [moved from tests/data/simple_cases/multiline_consecutive_open_parentheses_ignore.py with 100% similarity]
tests/data/cases/nested_stub.py [moved from tests/data/miscellaneous/nested_stub.pyi with 94% similarity]
tests/data/cases/numeric_literals.py [moved from tests/data/py_36/numeric_literals.py with 91% similarity]
tests/data/cases/numeric_literals_skip_underscores.py [moved from tests/data/py_36/numeric_literals_skip_underscores.py with 77% similarity]
tests/data/cases/one_element_subscript.py [moved from tests/data/simple_cases/one_element_subscript.py with 100% similarity]
tests/data/cases/parenthesized_context_managers.py [moved from tests/data/py_310/parenthesized_context_managers.py with 95% similarity]
tests/data/cases/pattern_matching_complex.py [moved from tests/data/py_310/pattern_matching_complex.py with 98% similarity]
tests/data/cases/pattern_matching_extras.py [moved from tests/data/py_310/pattern_matching_extras.py with 98% similarity]
tests/data/cases/pattern_matching_generic.py [moved from tests/data/py_310/pattern_matching_generic.py with 98% similarity]
tests/data/cases/pattern_matching_simple.py [moved from tests/data/py_310/pattern_matching_simple.py with 98% similarity]
tests/data/cases/pattern_matching_style.py [moved from tests/data/py_310/pattern_matching_style.py with 97% similarity]
tests/data/cases/pep604_union_types_line_breaks.py [moved from tests/data/preview_py_310/pep604_union_types_line_breaks.py with 99% similarity]
tests/data/cases/pep_570.py [moved from tests/data/py_38/pep_570.py with 95% similarity]
tests/data/cases/pep_572.py [moved from tests/data/py_38/pep_572.py with 96% similarity]
tests/data/cases/pep_572_do_not_remove_parens.py [moved from tests/data/fast/pep_572_do_not_remove_parens.py with 96% similarity]
tests/data/cases/pep_572_py310.py [moved from tests/data/py_310/pep_572_py310.py with 93% similarity]
tests/data/cases/pep_572_py39.py [moved from tests/data/py_39/pep_572_py39.py with 89% similarity]
tests/data/cases/pep_572_remove_parens.py [moved from tests/data/py_38/pep_572_remove_parens.py with 98% similarity]
tests/data/cases/pep_604.py [moved from tests/data/simple_cases/pep_604.py with 100% similarity]
tests/data/cases/pep_646.py [moved from tests/data/py_311/pep_646.py with 98% similarity]
tests/data/cases/pep_654.py [moved from tests/data/py_311/pep_654.py with 96% similarity]
tests/data/cases/pep_654_style.py [moved from tests/data/py_311/pep_654_style.py with 98% similarity]
tests/data/cases/power_op_newline.py [moved from tests/data/miscellaneous/power_op_newline.py with 73% similarity]
tests/data/cases/power_op_spacing.py [moved from tests/data/simple_cases/power_op_spacing.py with 100% similarity]
tests/data/cases/prefer_rhs_split_reformatted.py [moved from tests/data/simple_cases/prefer_rhs_split_reformatted.py with 100% similarity]
tests/data/cases/preview_async_stmts.py [moved from tests/data/preview/async_stmts.py with 93% similarity]
tests/data/cases/preview_cantfit.py [moved from tests/data/preview/cantfit.py with 99% similarity]
tests/data/cases/preview_comments7.py [moved from tests/data/preview/comments7.py with 99% similarity]
tests/data/cases/preview_context_managers_38.py [moved from tests/data/preview_context_managers/targeting_py38.py with 96% similarity]
tests/data/cases/preview_context_managers_39.py [moved from tests/data/preview_context_managers/targeting_py39.py with 98% similarity]
tests/data/cases/preview_context_managers_autodetect_310.py [moved from tests/data/preview_context_managers/auto_detect/features_3_10.py with 93% similarity]
tests/data/cases/preview_context_managers_autodetect_311.py [moved from tests/data/preview_context_managers/auto_detect/features_3_11.py with 92% similarity]
tests/data/cases/preview_context_managers_autodetect_38.py [moved from tests/data/preview_context_managers/auto_detect/features_3_8.py with 98% similarity]
tests/data/cases/preview_context_managers_autodetect_39.py [moved from tests/data/preview_context_managers/auto_detect/features_3_9.py with 93% similarity]
tests/data/cases/preview_dummy_implementations.py [moved from tests/data/preview/dummy_implementations.py with 98% similarity]
tests/data/cases/preview_format_unicode_escape_seq.py [moved from tests/data/preview/format_unicode_escape_seq.py with 96% similarity]
tests/data/cases/preview_long_dict_values.py [moved from tests/data/preview/long_dict_values.py with 99% similarity]
tests/data/cases/preview_long_strings.py [moved from tests/data/preview/long_strings.py with 99% similarity]
tests/data/cases/preview_long_strings__east_asian_width.py [moved from tests/data/preview/long_strings__east_asian_width.py with 96% similarity]
tests/data/cases/preview_long_strings__edge_case.py [moved from tests/data/preview/long_strings__edge_case.py with 99% similarity]
tests/data/cases/preview_long_strings__regression.py [moved from tests/data/preview/long_strings__regression.py with 99% similarity]
tests/data/cases/preview_long_strings__type_annotations.py [moved from tests/data/preview/long_strings__type_annotations.py with 98% similarity]
tests/data/cases/preview_multiline_strings.py [moved from tests/data/preview/multiline_strings.py with 99% similarity]
tests/data/cases/preview_no_blank_line_before_docstring.py [moved from tests/data/preview/no_blank_line_before_docstring.py with 97% similarity]
tests/data/cases/preview_pep_572.py [moved from tests/data/preview/pep_572.py with 75% similarity]
tests/data/cases/preview_percent_precedence.py [moved from tests/data/preview/percent_precedence.py with 96% similarity]
tests/data/cases/preview_prefer_rhs_split.py [moved from tests/data/preview/prefer_rhs_split.py with 99% similarity]
tests/data/cases/preview_return_annotation_brackets_string.py [moved from tests/data/preview/return_annotation_brackets_string.py with 97% similarity]
tests/data/cases/preview_trailing_comma.py [moved from tests/data/preview/trailing_comma.py with 97% similarity]
tests/data/cases/py310_pep572.py [moved from tests/data/preview_py_310/pep_572.py with 77% similarity]
tests/data/cases/python37.py [moved from tests/data/py_37/python37.py with 95% similarity]
tests/data/cases/python38.py [moved from tests/data/py_38/python38.py with 93% similarity]
tests/data/cases/python39.py [moved from tests/data/py_39/python39.py with 91% similarity]
tests/data/cases/remove_await_parens.py [moved from tests/data/simple_cases/remove_await_parens.py with 100% similarity]
tests/data/cases/remove_except_parens.py [moved from tests/data/simple_cases/remove_except_parens.py with 100% similarity]
tests/data/cases/remove_for_brackets.py [moved from tests/data/simple_cases/remove_for_brackets.py with 100% similarity]
tests/data/cases/remove_newline_after_code_block_open.py [moved from tests/data/simple_cases/remove_newline_after_code_block_open.py with 100% similarity]
tests/data/cases/remove_newline_after_match.py [moved from tests/data/py_310/remove_newline_after_match.py with 88% similarity]
tests/data/cases/remove_parens.py [moved from tests/data/simple_cases/remove_parens.py with 100% similarity]
tests/data/cases/remove_with_brackets.py [moved from tests/data/py_39/remove_with_brackets.py with 98% similarity]
tests/data/cases/return_annotation_brackets.py [moved from tests/data/simple_cases/return_annotation_brackets.py with 100% similarity]
tests/data/cases/skip_magic_trailing_comma.py [moved from tests/data/simple_cases/skip_magic_trailing_comma.py with 97% similarity]
tests/data/cases/slices.py [moved from tests/data/simple_cases/slices.py with 100% similarity]
tests/data/cases/starred_for_target.py [moved from tests/data/py_310/starred_for_target.py with 92% similarity]
tests/data/cases/string_prefixes.py [moved from tests/data/simple_cases/string_prefixes.py with 100% similarity]
tests/data/cases/stub.py [moved from tests/data/miscellaneous/stub.pyi with 99% similarity]
tests/data/cases/torture.py [moved from tests/data/simple_cases/torture.py with 100% similarity]
tests/data/cases/trailing_comma_optional_parens1.py [moved from tests/data/simple_cases/trailing_comma_optional_parens1.py with 100% similarity]
tests/data/cases/trailing_comma_optional_parens2.py [moved from tests/data/simple_cases/trailing_comma_optional_parens2.py with 100% similarity]
tests/data/cases/trailing_comma_optional_parens3.py [moved from tests/data/simple_cases/trailing_comma_optional_parens3.py with 100% similarity]
tests/data/cases/trailing_commas_in_leading_parts.py [moved from tests/data/simple_cases/trailing_commas_in_leading_parts.py with 100% similarity]
tests/data/cases/tricky_unicode_symbols.py [moved from tests/data/simple_cases/tricky_unicode_symbols.py with 100% similarity]
tests/data/cases/tupleassign.py [moved from tests/data/simple_cases/tupleassign.py with 100% similarity]
tests/data/cases/type_aliases.py [moved from tests/data/py_312/type_aliases.py with 81% similarity]
tests/data/cases/type_comment_syntax_error.py [moved from tests/data/type_comments/type_comment_syntax_error.py with 100% similarity]
tests/data/cases/type_params.py [moved from tests/data/py_312/type_params.py with 97% similarity]
tests/data/cases/whitespace.py [moved from tests/data/simple_cases/whitespace.py with 100% similarity]
tests/data/miscellaneous/force_pyi.py
tests/test_black.py
tests/test_blackd.py
tests/test_format.py
tests/util.py