]> crepu.dev Git - config.git/blame_incremental - djavu-asus/elpy/rpc-venv/lib/python3.11/site-packages/flake8/plugins/pycodestyle.py
ActualizaciĆ³n de Readme
[config.git] / djavu-asus / elpy / rpc-venv / lib / python3.11 / site-packages / flake8 / plugins / pycodestyle.py
... / ...
CommitLineData
1"""Generated using ./bin/gen-pycodestyle-plugin."""
2# fmt: off
3from __future__ import annotations
4
5from typing import Any
6from typing import Generator
7
8from pycodestyle import ambiguous_identifier as _ambiguous_identifier
9from pycodestyle import bare_except as _bare_except
10from pycodestyle import blank_lines as _blank_lines
11from pycodestyle import break_after_binary_operator as _break_after_binary_operator # noqa: E501
12from pycodestyle import break_before_binary_operator as _break_before_binary_operator # noqa: E501
13from pycodestyle import comparison_negative as _comparison_negative
14from pycodestyle import comparison_to_singleton as _comparison_to_singleton
15from pycodestyle import comparison_type as _comparison_type
16from pycodestyle import compound_statements as _compound_statements
17from pycodestyle import continued_indentation as _continued_indentation
18from pycodestyle import explicit_line_join as _explicit_line_join
19from pycodestyle import extraneous_whitespace as _extraneous_whitespace
20from pycodestyle import imports_on_separate_lines as _imports_on_separate_lines
21from pycodestyle import indentation as _indentation
22from pycodestyle import maximum_doc_length as _maximum_doc_length
23from pycodestyle import maximum_line_length as _maximum_line_length
24from pycodestyle import missing_whitespace as _missing_whitespace
25from pycodestyle import missing_whitespace_after_keyword as _missing_whitespace_after_keyword # noqa: E501
26from pycodestyle import module_imports_on_top_of_file as _module_imports_on_top_of_file # noqa: E501
27from pycodestyle import python_3000_invalid_escape_sequence as _python_3000_invalid_escape_sequence # noqa: E501
28from pycodestyle import tabs_obsolete as _tabs_obsolete
29from pycodestyle import tabs_or_spaces as _tabs_or_spaces
30from pycodestyle import trailing_blank_lines as _trailing_blank_lines
31from pycodestyle import trailing_whitespace as _trailing_whitespace
32from pycodestyle import whitespace_around_comma as _whitespace_around_comma
33from pycodestyle import whitespace_around_keywords as _whitespace_around_keywords # noqa: E501
34from pycodestyle import whitespace_around_named_parameter_equals as _whitespace_around_named_parameter_equals # noqa: E501
35from pycodestyle import whitespace_around_operator as _whitespace_around_operator # noqa: E501
36from pycodestyle import whitespace_before_comment as _whitespace_before_comment
37from pycodestyle import whitespace_before_parameters as _whitespace_before_parameters # noqa: E501
38
39
40def pycodestyle_logical(
41 blank_before: Any,
42 blank_lines: Any,
43 checker_state: Any,
44 hang_closing: Any,
45 indent_char: Any,
46 indent_level: Any,
47 indent_size: Any,
48 line_number: Any,
49 lines: Any,
50 logical_line: Any,
51 max_doc_length: Any,
52 noqa: Any,
53 previous_indent_level: Any,
54 previous_logical: Any,
55 previous_unindented_logical_line: Any,
56 tokens: Any,
57 verbose: Any,
58) -> Generator[tuple[int, str], None, None]:
59 """Run pycodestyle logical checks."""
60 yield from _ambiguous_identifier(logical_line, tokens)
61 yield from _bare_except(logical_line, noqa)
62 yield from _blank_lines(logical_line, blank_lines, indent_level, line_number, blank_before, previous_logical, previous_unindented_logical_line, previous_indent_level, lines) # noqa: E501
63 yield from _break_after_binary_operator(logical_line, tokens)
64 yield from _break_before_binary_operator(logical_line, tokens)
65 yield from _comparison_negative(logical_line)
66 yield from _comparison_to_singleton(logical_line, noqa)
67 yield from _comparison_type(logical_line, noqa)
68 yield from _compound_statements(logical_line)
69 yield from _continued_indentation(logical_line, tokens, indent_level, hang_closing, indent_char, indent_size, noqa, verbose) # noqa: E501
70 yield from _explicit_line_join(logical_line, tokens)
71 yield from _extraneous_whitespace(logical_line)
72 yield from _imports_on_separate_lines(logical_line)
73 yield from _indentation(logical_line, previous_logical, indent_char, indent_level, previous_indent_level, indent_size) # noqa: E501
74 yield from _maximum_doc_length(logical_line, max_doc_length, noqa, tokens)
75 yield from _missing_whitespace(logical_line, tokens)
76 yield from _missing_whitespace_after_keyword(logical_line, tokens)
77 yield from _module_imports_on_top_of_file(logical_line, indent_level, checker_state, noqa) # noqa: E501
78 yield from _python_3000_invalid_escape_sequence(logical_line, tokens, noqa)
79 yield from _whitespace_around_comma(logical_line)
80 yield from _whitespace_around_keywords(logical_line)
81 yield from _whitespace_around_named_parameter_equals(logical_line, tokens)
82 yield from _whitespace_around_operator(logical_line)
83 yield from _whitespace_before_comment(logical_line, tokens)
84 yield from _whitespace_before_parameters(logical_line, tokens)
85
86
87def pycodestyle_physical(
88 indent_char: Any,
89 line_number: Any,
90 lines: Any,
91 max_line_length: Any,
92 multiline: Any,
93 noqa: Any,
94 physical_line: Any,
95 total_lines: Any,
96) -> Generator[tuple[int, str], None, None]:
97 """Run pycodestyle physical checks."""
98 ret = _maximum_line_length(physical_line, max_line_length, multiline, line_number, noqa) # noqa: E501
99 if ret is not None:
100 yield ret
101 ret = _tabs_obsolete(physical_line)
102 if ret is not None:
103 yield ret
104 ret = _tabs_or_spaces(physical_line, indent_char)
105 if ret is not None:
106 yield ret
107 ret = _trailing_blank_lines(physical_line, lines, line_number, total_lines)
108 if ret is not None:
109 yield ret
110 ret = _trailing_whitespace(physical_line)
111 if ret is not None:
112 yield ret