MCPcopy Create free account

hub / github.com/astral-sh/ruff / functions

Functions31,766 in github.com/astral-sh/ruff

Functionlazy_import_mismatch_exclude
()
crates/ruff_linter/src/rules/flake8_tidy_imports/mod.rs:429
Functionlazy_import_mismatch_fix
()
crates/ruff_linter/src/rules/flake8_tidy_imports/mod.rs:307
Functionlazy_import_mismatch_pre_py315
()
crates/ruff_linter/src/rules/flake8_tidy_imports/mod.rs:202
Functionlazy_parameter_defaults
()
crates/ty_python_semantic/src/types/infer/tests.rs:1436
Methodleading
(node: impl Into<AnyNodeRef<'a>>, comment: DecoratedComment)
crates/ruff_python_formatter/src/comments/visitor.rs:479
Methodleading
Returns the *leading* parts of `key` in insertion-order.
crates/ruff_python_formatter/src/comments/map.rs:220
Methodleading
(content: &str)
crates/ruff_linter/src/rules/pycodestyle/rules/logical_lines/mod.rs:301
Functionleading_dangling_trailing
()
crates/ruff_python_formatter/src/comments/map.rs:594
Methodleading_dangling_trailing
Returns the *leading*, *dangling*, and *trailing* parts of `key`.
crates/ruff_python_formatter/src/comments/map.rs:252
Functionleading_most_outer
()
crates/ruff_python_formatter/src/comments/mod.rs:880
Functionleading_nbsp_no_overflow
()
crates/ruff_annotate_snippets/tests/formatter.rs:5449
Functionleading_node_comments
Formats the leading comments of a node.
crates/ruff_python_formatter/src/comments/format.rs:17
Functionleading_space
Utilities for parsing Python docstrings. Extract the leading whitespace from a line of text within a Python docstring.
crates/ruff_python_ast/src/docstrings.rs:4
Methodleave_node
(&mut self, _node: AnyNodeRef<'a>)
crates/ruff_python_ast_integration_tests/tests/source_order.rs:193
Methodleave_node
(&mut self, node: AnyNodeRef<'a>)
crates/ruff_python_ast/src/find_node.rs:33
Methodleave_node
(&mut self, node: AnyNodeRef<'ast>)
crates/ruff_python_parser/tests/fixtures.rs:563
Methodleave_node
(&mut self, node: AnyNodeRef<'a>)
crates/ty_ide/src/folding_range.rs:742
Methodleave_node
(&mut self, node: AnyNodeRef<'a>)
crates/ty_ide/src/inlay_hints.rs:508
Methodleave_node
(&mut self, node: AnyNodeRef<'a>)
crates/ty_ide/src/references.rs:715
Methodleave_node
(&mut self, node: AnyNodeRef<'a>)
crates/ty_ide/src/call_hierarchy/outgoing_calls.rs:275
Methodleave_node
(&mut self, node: AnyNodeRef<'a>)
crates/ty_ide/src/call_hierarchy/incoming_calls.rs:259
Methodleave_node
(&mut self, node: AnyNodeRef<'ast>)
crates/ruff_linter/src/rules/ruff/rules/suppression_comment_visitor.rs:110
Methodleaves
Yields the operands of a `|` union from left to right, flattening nested `|` unions. An evaluated union stays a single operand because its stored type
crates/ty_python_semantic/src/types/union_type_instance.rs:244
Functionleaves_indented_parameter_preambles_raw
()
crates/ty_ide/src/docstring/document/numpy.rs:1093
Functionleaves_misaligned_parameter_section_opaque
()
crates/ty_ide/src/docstring/document/numpy.rs:1059
Functionleaves_unconfirmed_parameter_item_opaque
()
crates/ty_ide/src/docstring/document/numpy.rs:1111
Functionleft_most
Returns the sub-expression to which the left-most character in expression belongs. For example, in the expression `a + b * c`, the left-most subexpre
crates/ruff_python_formatter/src/expression/mod.rs:1428
Methodleft_to_right
(value: &'a Expr, statement: S)
crates/ruff_python_formatter/src/statement/stmt_assign.rs:268
Functionlegacy_format_option
()
crates/ruff/tests/cli/format.rs:1128
Functionlegacy_namespace_locations_include_all_directories
()
crates/ty_module_resolver/src/resolve.rs:1962
Functionlegacy_tmpdir_plugin_takes_precedence_over_conftest_pytest_plugins
()
crates/ty_python_semantic/src/types/dedicated/pytest/fixtures.rs:3722
Functionlegacy_use_uv_overrides_script_setting
()
crates/ty_server/tests/e2e/script_preparation.rs:19
Methodlen
(&self)
crates/ruff_db/src/vendored.rs:390
Methodlen
(&self)
crates/ty_python_core/src/interned_nodes.rs:37
Methodlen
Return the number of bytes in the source code.
crates/ruff_linter/src/locator.rs:111
Methodlen
(&self)
crates/ruff_python_index/src/interpolated_string_ranges.rs:76
Methodlength_2
Iterate over an MRO of length 2 that consists of `first_element` and then `object`.
crates/ty_python_semantic/src/types/class_base.rs:583
Methodlength_3
Iterate over an MRO of length 3 that consists of `first_element`, then `second_element`, then `object`.
crates/ty_python_semantic/src/types/class_base.rs:592
Functionlength_doctest
Get the length of the given list of numbers. Args: numbers: List of numbers. Returns: Integer length of the list of numbers.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples_dynamic_line_width.py:224
Functionlength_doctest_underindent
Get the length of the given list of numbers. Args: numbers: List of numbers. Returns: Integer length of the
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples_dynamic_line_width.py:239
Functionlength_markdown
Get the length of the given list of numbers. Args: numbers: List of numbers. Returns: Integer length of the list of numbers.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples_dynamic_line_width.py:255
Functionlength_rst
Do cool stuff:: length([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21])
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples_dynamic_line_width.py:273
Functionlength_rst_in_section
Examples: Do cool stuff:: length([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20])
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples_dynamic_line_width.py:283
Functionlength_sort
(path: &Path)
crates/ruff_linter/src/rules/isort/mod.rs:1704
Functionlength_sort_straight
(path: &Path)
crates/ruff_linter/src/rules/isort/mod.rs:1724
Functionleq
Compare two objects for loose equality. Parameters ---------- x1, x2 : object Objects. Returns ------- bool
crates/ruff_linter/resources/test/fixtures/pydoclint/DOC102_numpy.py:375
Functionlex_fstring_error
(source: &str)
crates/ruff_python_parser/src/lexer.rs:2732
Functionlex_fstring_missing_brace
()
crates/ruff_python_parser/src/lexer.rs:2818
Functionlex_fstring_missing_brace_after_format_spec
()
crates/ruff_python_parser/src/lexer.rs:2850
Functionlex_fstring_unclosed
()
crates/ruff_python_parser/src/lexer.rs:2791
Functionlex_source_with_offset
(source: &str, start_offset: TextSize)
crates/ruff_python_parser/src/lexer.rs:1805
Functionlex_tstring_error
(source: &str)
crates/ruff_python_parser/src/lexer.rs:2776
Functionlexical_name_path_component_for_leaf
Computes the final component of a lexical name path. See [`lexical_name_path_for_definition`][] for details.
crates/ty_python_semantic/src/lexical_name_path.rs:81
Methodlexical_of_node
Returns the generic context visible while checking the scope introduced by `node`. For functions, this retains type variables that are moved to a ret
crates/ty_python_semantic/src/types/generics.rs:423
Functionlib64_site_packages_directory_on_unix
()
crates/ty/tests/cli/python_environment.rs:589
Functionlimit_offset_sql
Return LIMIT/OFFSET SQL clause.
crates/ruff_python_formatter/resources/test/fixtures/black/cases/conditional_expression.py:47
Methodline
(&self)
crates/ty_python_semantic/src/lint.rs:142
Functionline_before_docstring
Please move me up
crates/ruff_python_formatter/resources/test/fixtures/black/cases/no_blank_line_before_docstring.py:1
Functionline_break_in_header_1
()
crates/mdtest/src/parser.rs:1908
Functionline_break_in_header_2
()
crates/mdtest/src/parser.rs:1938
Functionline_continuation_at_eof
(eol: &str)
crates/ruff_python_parser/src/lexer.rs:2305
Functionline_continuation_at_eof_after_newline
(eol: &str)
crates/ruff_python_parser/src/lexer.rs:2285
Functionline_continuation_chars
No fix should be offered for D201/D202 because of the line continuation chars.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D.py:727
Methodline_count
Return the number of lines in the source code.
crates/ruff_source_file/src/line_index.rs:222
Methodline_end
Returns the [byte offset](TextSize) of the `line`'s end. The offset is the end of the line, up to and including the newline character ending the line
crates/ruff_source_file/src/line_index.rs:275
Methodline_end_exclusive
Returns the [byte offset](TextSize) of the `line`'s end. The offset is the end of the line, excluding the newline character ending the line (if any).
crates/ruff_source_file/src/line_index.rs:289
Functionline_end_exclusive_handles_different_line_endings
()
crates/ruff_source_file/src/line_index.rs:824
Functionline_ending
()
crates/ruff_python_codegen/src/stylist.rs:354
Methodline_ending
(&self)
crates/ruff_python_formatter/src/options.rs:139
Functionline_index_for_source
()
crates/ruff_db/src/source.rs:290
Methodline_start
(&self, offset: TextSize)
crates/ruff_linter/src/locator.rs:147
Methodline_starts_doctest
Whether or not the given line marks the start of a doctest.
crates/ty_ide/src/docstring/document/preformatted.rs:123
Methodline_starts_literal_block
Whether or not the given line marks the start of a reST literal block.
crates/ty_ide/src/docstring/document/preformatted.rs:213
Methodline_str
(&self, offset: TextSize)
crates/ruff_source_file/src/line_ranges.rs:381
Functionline_suffix
( inner: &Content, reserved_width: u32, )
crates/ruff_formatter/src/builders.rs:468
Functionline_suffix_boundary
Inserts a boundary for line suffixes that forces the printer to print all pending line suffixes. Helpful if a line suffix shouldn't pass a certain poi
crates/ruff_formatter/src/builders.rs:531
Functionline_suffix_printed_at_end
()
crates/ruff_formatter/src/printer/mod.rs:1944
Functionline_suffix_with_reserved_width
()
crates/ruff_formatter/src/printer/mod.rs:1974
Functionline_too_long_width_override
()
crates/ruff/tests/cli/lint.rs:346
Functionlineno_offset
()
crates/ruff_annotate_snippets/tests/formatter.rs:5536
Methodlines_added
(self)
python/ruff-ecosystem/ruff_ecosystem/types.py:53
Functionlines_after_before_a_new_line
()
crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs:386
Functionlines_after_before_comment_offset
()
crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs:396
Functionlines_after_empty_string
()
crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs:376
Functionlines_after_ignoring_trivia
Counts the empty lines after `offset`, ignoring any trailing trivia: end-of-line comments, own-line comments, and any intermediary newlines.
crates/ruff_python_trivia/src/tokenizer.rs:94
Functionlines_after_imports
(path: &Path)
crates/ruff_linter/src/rules/isort/mod.rs:1497
Functionlines_after_imports_default_settings
(path: &Path)
crates/ruff_linter/src/rules/isort/mod.rs:1517
Functionlines_after_in_the_middle_of_a_line
()
crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs:381
Functionlines_after_multiple_newlines
()
crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs:391
Functionlines_after_with_comment_only_line
()
crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs:401
Functionlines_before_empty_string
()
crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs:335
Functionlines_before_in_the_middle_of_a_line
()
crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs:340
Functionlines_before_multiple_leading_newlines
()
crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs:350
Functionlines_before_on_a_new_line
()
crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs:345
Functionlines_before_with_comment_offset
()
crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs:355
Functionlines_before_with_comment_only_line
()
crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs:368
Functionlines_before_with_trailing_comment
()
crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs:360
Functionlines_between_types
(path: &Path)
crates/ruff_linter/src/rules/isort/mod.rs:1535
Methodlines_removed
(self)
python/ruff-ecosystem/ruff_ecosystem/types.py:57
Methodlines_str
(&self, range: TextRange)
crates/ruff_source_file/src/line_ranges.rs:389
← previousnext →23,601–23,700 of 31,766, ranked by callers