tests.test_long_lines moduleΒΆ
- tests.test_long_lines.LIMIT = 30ΒΆ
A short limit, so each case stays readable.
- tests.test_long_lines.test_is_overlong_skips_what_e501_skips(line, overlong)[source]ΒΆ
A line that no wrap can shorten is not reported, as in
E501.
- tests.test_long_lines.test_comment_words_move_into_the_next_line_of_the_block()[source]ΒΆ
The words past the limit open the next line, whose break stays.
- tests.test_long_lines.test_comment_words_open_a_line_after_the_last_one()[source]ΒΆ
Below the last line of a block, the words get a new comment line.
- tests.test_long_lines.test_docstring_paragraph_wraps_and_its_summary_stays()[source]ΒΆ
The summary stays one line, which
D205asks for, however long it is.
- tests.test_long_lines.test_list_item_words_hang_under_its_text()[source]ΒΆ
The next lines of a list item start under its text, not under its marker.
- tests.test_long_lines.test_field_words_hang_four_columns_past_its_name()[source]ΒΆ
The next lines of a reST field indent by four, as the docstrings here do.
- tests.test_long_lines.test_comment_list_item_words_keep_the_hash_marks()[source]ΒΆ
The next lines of a list item in a comment keep the hash marks.
- tests.test_long_lines.test_lines_no_wrap_can_shorten_are_left_alone()[source]ΒΆ
Code, strings, blocks and pragmas keep their length for a human to reword.
- tests.test_long_lines.test_ruff_line_length_reads_the_file_ruff_reads(tmp_path, files, expected)[source]ΒΆ
The limit is the one that Ruffβs own configuration search finds.
- tests.test_long_lines.test_fix_long_lines_leaves_a_file_that_does_not_parse(tmp_path, caplog)[source]ΒΆ
A file that is not Python stays as it is, and the run goes on.