ruff
1eccbbb6 - Format StmtFor (#5163)

Commit
2 years ago
Format StmtFor (#5163) <!-- Thank you for contributing to Ruff! To help us out with reviewing, please consider the following: - Does this pull request include a summary of the change? (See below.) - Does this pull request include a descriptive title? - Does this pull request include references to any relevant issues? --> ## Summary format StmtFor still trying to learn how to help out with the formatter. trying something slightly more advanced than [break](#5158) mostly copied form StmtWhile ## Test Plan snapshots
Author
Parents
  • crates/ruff_python_formatter
    • resources/test/fixtures/ruff/statement
      • File
        for.py
    • src
      • snapshots
        • ruff_python_formatter__tests__black_test__bracketmatch_py.snap
        • ruff_python_formatter__tests__black_test__collections_py.snap
        • ruff_python_formatter__tests__black_test__comments3_py.snap
        • ruff_python_formatter__tests__black_test__comments5_py.snap
        • ruff_python_formatter__tests__black_test__expression_py.snap
        • ruff_python_formatter__tests__black_test__fmtonoff5_py.snap
        • ruff_python_formatter__tests__black_test__fmtonoff_py.snap
        • ruff_python_formatter__tests__black_test__fmtskip8_py.snap
        • ruff_python_formatter__tests__black_test__function_py.snap
        • ruff_python_formatter__tests__black_test__remove_for_brackets_py.snap
        • ruff_python_formatter__tests__black_test__remove_newline_after_code_block_open_py.snap
        • ruff_python_formatter__tests__ruff_test__statement__for_py.snap
      • statement
        • File
          stmt_for.rs