MCPcopy Create free account

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

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

↓ 1 callersFunctionparse_args
()
python/ruff-ecosystem/ruff_ecosystem/cli.py:115
↓ 1 callersFunctionparse_args
Parse command-line arguments
python/py-fuzzer/fuzz.py:859
↓ 1 callersFunctionparse_args
(argv: list[str] | None = None)
scripts/publish-crates.py:168
↓ 1 callersFunctionparse_args
()
scripts/memory_report.py:471
↓ 1 callersFunctionparse_args
()
scripts/conformance.py:1042
↓ 1 callersFunctionparse_array
(src: str, pos: Pos, parse_float: ParseFloat)
crates/ruff_benchmark/resources/tomllib/_parser.py:412
↓ 1 callersMethodparse_assert_statement
Parses an `assert` statement. # Panics If the parser isn't positioned at an `assert` token. See: <https://docs.python.org/3/reference/simple_stmts.
crates/ruff_python_parser/src/parser/statement.rs:924
↓ 1 callersMethodparse_assign_statement
Parse an assignment statement. # Panics If the parser isn't positioned at an `=` token. See: <https://docs.python.org/3/reference/simple_stmts.html
crates/ruff_python_parser/src/parser/statement.rs:1234
↓ 1 callersMethodparse_async_statement
Parses a statement that is valid after an `async` token. If the statement is not a valid `async` statement, an error will be reported and it will be
crates/ruff_python_parser/src/parser/statement.rs:2874
↓ 1 callersFunctionparse_attr
( path: [&'static str; LEN], attr: &'a Attribute, )
crates/ruff_macros/src/rust_doc.rs:40
↓ 1 callersFunctionparse_attr
( path: [&'static str; LEN], attr: &'a Attribute, )
crates/ruff_macros/src/violation_metadata.rs:133
↓ 1 callersMethodparse_attr_expr_for_match_pattern
Parses an attribute expression until the current token is not a `.`.
crates/ruff_python_parser/src/parser/pattern.rs:659
↓ 1 callersMethodparse_augmented_assignment_statement
Parses an augmented assignment statement. # Panics If the parser isn't positioned at an augmented assignment token. See: <https://docs.python.org/3
crates/ruff_python_parser/src/parser/statement.rs:1382
↓ 1 callersMethodparse_await_expression
Parses an `await` expression. # Panics If the parser isn't positioned at an `await` token. See: <https://docs.python.org/3/reference/expressions.ht
crates/ruff_python_parser/src/parser/expression.rs:2736
↓ 1 callersFunctionparse_basic_str_escape
( src: str, pos: Pos, *, multiline: bool = False )
crates/ruff_benchmark/resources/tomllib/_parser.py:468
↓ 1 callersMethodparse_binary_expression_or_higher_recursive
( &mut self, mut left: ParsedExpr, left_precedence: OperatorPrecedence, contex
crates/ruff_python_parser/src/parser/expression.rs:257
↓ 1 callersMethodparse_block
Parses a block of statements. # Panics If the parser isn't positioned at an `Indent` token.
crates/ruff_python_parser/src/parser/statement.rs:3154
↓ 1 callersMethodparse_boolean_expression
Parses a boolean operation expression. Note that the boolean `not` operator is parsed as a unary expression and not as a boolean expression. # Panic
crates/ruff_python_parser/src/parser/expression.rs:1158
↓ 1 callersMethodparse_break_statement
Parses a `break` statement. # Panics If the parser isn't positioned at a `break` token. See: <https://docs.python.org/3/reference/simple_stmts.html
crates/ruff_python_parser/src/parser/statement.rs:908
↓ 1 callersFunctionparse_build_log
(log: str)
scripts/collect_ty_ecosystem_run_metadata.py:105
↓ 1 callersMethodparse_bytes
(mut self)
crates/ruff_python_parser/src/string.rs:371
↓ 1 callersMethodparse_call_expression
Parse a call expression. The function name is parsed by the caller and passed as `func` along with the `start` position of the call expression. # Pa
crates/ruff_python_parser/src/parser/expression.rs:702
↓ 1 callersFunctionparse_cli
(dirs: &[PathBuf])
crates/ruff_dev/src/format_dev.rs:39
↓ 1 callersMethodparse_comment
(&mut self)
crates/ty_python_semantic/src/suppression/parser.rs:21
↓ 1 callersMethodparse_comment_inner
( &mut self, comment_start: TextSize, )
crates/ruff_linter/src/suppression.rs:1242
↓ 1 callersMethodparse_comparison_expression
Parse a comparison expression. This includes the following operators: - Value comparisons: `==`, `!=`, `<`, `<=`, `>`, and `>=`. - Membership tests:
crates/ruff_python_parser/src/parser/expression.rs:1226
↓ 1 callersMethodparse_complex_literal_pattern
Parses a complex literal pattern, given the `lhs` pattern and the `start` position of the pattern. # Panics If the parser isn't positioned at a `+`
crates/ruff_python_parser/src/parser/pattern.rs:610
↓ 1 callersFunctionparse_complex_type_annotation
(string_expr: &ExprStringLiteral)
crates/ruff_python_parser/src/typing.rs:85
↓ 1 callersMethodparse_comprehension
Parses a comprehension. # Panics If the parser isn't positioned at an `async` or `for` token. See: <https://docs.python.org/3/reference/expressions
crates/ruff_python_parser/src/parser/expression.rs:2554
↓ 1 callersMethodparse_continue_statement
Parses a `continue` statement. # Panics If the parser isn't positioned at a `continue` token. See: <https://docs.python.org/3/reference/simple_stmt
crates/ruff_python_parser/src/parser/statement.rs:892
↓ 1 callersMethodparse_decorators
Parses a decorator list followed by a class, function or async function definition. See: <https://docs.python.org/3/reference/compound_stmts.html#gra
crates/ruff_python_parser/src/parser/statement.rs:2924
↓ 1 callersMethodparse_delete_statement
Parses a delete statement. # Panics If the parser isn't positioned at a `del` token. See: <https://docs.python.org/3/reference/simple_stmts.html#gr
crates/ruff_python_parser/src/parser/statement.rs:401
↓ 1 callersFunctionparse_deprecated_attribute
(attribute: &Attribute)
crates/ruff_macros/src/config.rs:302
↓ 1 callersMethodparse_dictionary_comprehension_expression
Parses a dictionary comprehension expression. See: <https://docs.python.org/3/reference/expressions.html#displays-for-lists-sets-and-dictionaries>
crates/ruff_python_parser/src/parser/expression.rs:2648
↓ 1 callersMethodparse_dictionary_expression
Parses a dictionary expression. See: <https://docs.python.org/3/reference/expressions.html#dictionary-displays>
crates/ruff_python_parser/src/parser/expression.rs:2483
↓ 1 callersFunctionparse_doc_attr
Parses an attribute in the form of `#[doc = " [name](https://example.com/)"]` into a tuple of link label and URL.
crates/ruff_macros/src/rule_namespace.rs:164
↓ 1 callersFunctionparse_ecosystem_analyzer_revision
(lockfile: str)
scripts/collect_ty_ecosystem_run_metadata.py:126
↓ 1 callersMethodparse_elif_or_else_clause
Parses an `elif` or `else` clause. # Panics If the parser isn't positioned at an `elif` or `else` token.
crates/ruff_python_parser/src/parser/statement.rs:1494
↓ 1 callersMethodparse_enum_members_arg
Parse the `names` argument of a functional enum call. Handles forms like: - `"RED GREEN BLUE"` (space/comma-separated string) - `["RED", "GREEN", "BL
crates/ty_python_semantic/src/types/infer/builder/enum_call.rs:655
↓ 1 callersMethodparse_enum_members_from_dict
Parse enum members from a dict literal like `{"RED": 1, "GREEN": 2}`. When `auto()` is used in a dict, CPython derives the next value from the previo
crates/ty_python_semantic/src/types/infer/builder/enum_call.rs:789
↓ 1 callersMethodparse_enum_members_from_sequence
( &mut self, elts: &[ast::Expr], start: EnumStart, base_class: KnownClass,
crates/ty_python_semantic/src/types/infer/builder/enum_call.rs:699
↓ 1 callersMethodparse_except_clause
Parses an `except` clause of a `try` statement. # Panics If the parser isn't positioned at an `except` token.
crates/ruff_python_parser/src/parser/statement.rs:1694
↓ 1 callersMethodparse_explicit_enum_member
Extract a `(name, value)` pair from a tuple element like `("RED", 1)`.
crates/ty_python_semantic/src/types/infer/builder/enum_call.rs:834
↓ 1 callersFunctionparse_expr
(expr: &Expr, strings: &mut TokenStream)
crates/ruff_macros/src/derive_message_formats.rs:30
↓ 1 callersFunctionparse_expression_range
Parses a Python expression for the given range in the source. This function allows to specify the range of the expression in the source code, other t
crates/ruff_python_parser/src/lib.rs:159
↓ 1 callersFunctionparse_field_attributes
(attribute: &Attribute)
crates/ruff_macros/src/config.rs:244
↓ 1 callersFunctionparse_fill_and_align
(text: &str)
crates/ruff_python_literal/src/format.rs:271
↓ 1 callersFunctionparse_flags
(iter: &mut ParseIter<I>)
crates/ruff_python_literal/src/cformat.rs:182
↓ 1 callersFunctionparse_format_type
( iter: &mut ParseIter<I>, context: CFormatContext, )
crates/ruff_python_literal/src/cformat.rs:216
↓ 1 callersMethodparse_from_import_statement
Parses a `from` import statement. # Panics If the parser isn't positioned at a `from` token. See: <https://docs.python.org/3/reference/simple_stmts
crates/ruff_python_parser/src/parser/statement.rs:655
↓ 1 callersMethodparse_global_statement
Parses a global statement. # Panics If the parser isn't positioned at a `global` token. See: <https://docs.python.org/3/reference/simple_stmts.html
crates/ruff_python_parser/src/parser/statement.rs:974
↓ 1 callersFunctionparse_google_sections
( checker: &Checker, docstring: &Docstring, section_contexts: &SectionContexts, )
crates/ruff_linter/src/rules/pydocstyle/rules/sections.rs:2148
↓ 1 callersMethodparse_header
(&self, index: usize)
crates/ty_ide/src/docstring/document/numpy.rs:196
↓ 1 callersFunctionparse_hex_char
(src: str, pos: Pos, hex_len: int)
crates/ruff_benchmark/resources/tomllib/_parser.py:501
↓ 1 callersFunctionparse_identifier
(cursor: &mut Cursor<'a>)
crates/ruff_linter/src/rules/airflow/rules/xcom_pull_in_template_string.rs:245
↓ 1 callersMethodparse_if_expression
Parses an `if` expression. # Panics If the parser isn't positioned at an `if` token. See: <https://docs.python.org/3/reference/expressions.html#con
crates/ruff_python_parser/src/parser/expression.rs:2935
↓ 1 callersMethodparse_if_statement
Parses an `if` statement. # Panics If the parser isn't positioned at an `if` token. See: <https://docs.python.org/3/reference/compound_stmts.html#t
crates/ruff_python_parser/src/parser/statement.rs:1437
↓ 1 callersMethodparse_impl
(&mut self)
crates/mdtest/src/parser.rs:591
↓ 1 callersMethodparse_import_statement
Parses an import statement. # Panics If the parser isn't positioned at an `import` token. See: <https://docs.python.org/3/reference/simple_stmts.ht
crates/ruff_python_parser/src/parser/statement.rs:612
↓ 1 callersFunctionparse_inline_table
(src: str, pos: Pos, parse_float: ParseFloat)
crates/ruff_benchmark/resources/tomllib/_parser.py:436
↓ 1 callersMethodparse_interpolated_element
Parses an f/t-string expression element. # Panics If the parser isn't positioned at a `{` token.
crates/ruff_python_parser/src/parser/expression.rs:1698
↓ 1 callersMethodparse_interpolated_string
Parses an f/t-string. This does not handle implicitly concatenated strings. # Panics If the parser isn't positioned at an `FStringStart` or `TStrin
crates/ruff_python_parser/src/parser/expression.rs:1576
↓ 1 callersFunctionparse_interpolated_string_literal_element
( source: &str, flags: AnyStringFlags, range: TextRange, )
crates/ruff_python_parser/src/string.rs:517
↓ 1 callersMethodparse_interpolated_string_middle
( mut self, )
crates/ruff_python_parser/src/string.rs:275
↓ 1 callersMethodparse_ipython_escape_command_expression
Parses an IPython escape command at the expression level. # Panics If the parser isn't positioned at a `IpyEscapeCommand` token. If the escape comma
crates/ruff_python_parser/src/parser/expression.rs:2960
↓ 1 callersMethodparse_ipython_escape_command_statement
Parses an IPython escape command at the statement level. # Panics If the parser isn't positioned at an `IpyEscapeCommand` token.
crates/ruff_python_parser/src/parser/statement.rs:1110
↓ 1 callersMethodparse_ipython_escape_command_value
( &self, context: IpyEscapeContext, )
crates/ruff_python_parser/src/parser/mod.rs:501
↓ 1 callersMethodparse_ipython_help_end_escape_command_statement
Parses an IPython help end escape command at the statement level. # Panics If the parser isn't positioned at a `?` token.
crates/ruff_python_parser/src/parser/statement.rs:1133
↓ 1 callersFunctionparse_key_part
(src: str, pos: Pos)
crates/ruff_benchmark/resources/tomllib/_parser.py:391
↓ 1 callersMethodparse_lhs_expression
Parses the left-hand side of an expression. This includes prefix expressions such as unary operators, boolean `not`, `await`, `lambda`. It also parse
crates/ruff_python_parser/src/parser/expression.rs:332
↓ 1 callersMethodparse_line
(&mut self)
crates/ty_ide/src/docstring/document/numpy.rs:159
↓ 1 callersMethodparse_line
Parse a single line of the `pyvenv.cfg` file and advance the cursor to the beginning of the next line.
crates/ty_site_packages/src/lib.rs:1122
↓ 1 callersFunctionparse_line_offset
(s: &str)
crates/ruff_db/src/diagnostic/render.rs:2928
↓ 1 callersMethodparse_list_comprehension_expression
Parses a list comprehension expression. See: <https://docs.python.org/3/reference/expressions.html#displays-for-lists-sets-and-dictionaries>
crates/ruff_python_parser/src/parser/expression.rs:2628
↓ 1 callersMethodparse_list_expression
Parses a list expression. See: <https://docs.python.org/3/reference/expressions.html#list-displays>
crates/ruff_python_parser/src/parser/expression.rs:2404
↓ 1 callersMethodparse_list_into_thin_vec
Parses a list of elements into a thin vector where each element is parsed using the given `parse_element` function.
crates/ruff_python_parser/src/parser/mod.rs:686
↓ 1 callersMethodparse_list_like_expression
Parses a list or a list comprehension expression. # Panics If the parser isn't positioned at a `[` token. See: <https://docs.python.org/3/reference
crates/ruff_python_parser/src/parser/expression.rs:2030
↓ 1 callersFunctionparse_markdown_link
(link: &str)
crates/ruff_macros/src/rule_namespace.rs:190
↓ 1 callersFunctionparse_mask
Partially evaluate `expr` as a mask expression, tracking which bits are statically known to be 0 or 1. Sub-expressions that cannot be analyzed contrib
crates/ruff_linter/src/rules/flake8_bandit/rules/bad_file_permissions.rs:208
↓ 1 callersMethodparse_match_case
Parses a single match case block. # Panics If the parser isn't positioned at a `case` token. See: <https://docs.python.org/3/reference/compound_stm
crates/ruff_python_parser/src/parser/statement.rs:2802
↓ 1 callersMethodparse_match_case_blocks
Parses a list of match case blocks.
crates/ruff_python_parser/src/parser/statement.rs:2768
↓ 1 callersMethodparse_match_pattern_class
Parses the [pattern arguments] in a class pattern. # Panics If the parser isn't positioned at a `(` token. See: <https://docs.python.org/3/referenc
crates/ruff_python_parser/src/parser/pattern.rs:680
↓ 1 callersMethodparse_match_pattern_literal
Parses a literal pattern. See: <https://docs.python.org/3/reference/compound_stmts.html#grammar-token-python-grammar-literal_pattern>
crates/ruff_python_parser/src/parser/pattern.rs:404
↓ 1 callersMethodparse_match_pattern_mapping
Parses a mapping pattern. # Panics If the parser isn't positioned at a `{` token. See: <https://docs.python.org/3/reference/compound_stmts.html#map
crates/ruff_python_parser/src/parser/pattern.rs:184
↓ 1 callersMethodparse_match_pattern_star
Parses a star pattern. # Panics If the parser isn't positioned at a `*` token. See: <https://docs.python.org/3/reference/compound_stmts.html#gramma
crates/ruff_python_parser/src/parser/pattern.rs:275
↓ 1 callersMethodparse_match_patterns
Entry point to start parsing a pattern. See: <https://docs.python.org/3/reference/compound_stmts.html#grammar-token-python-grammar-patterns>
crates/ruff_python_parser/src/parser/pattern.rs:70
↓ 1 callersMethodparse_match_statement
Parses a match statement. # Panics If the parser isn't positioned at a `match` token. See: <https://docs.python.org/3/reference/compound_stmts.html
crates/ruff_python_parser/src/parser/statement.rs:2653
↓ 1 callersFunctionparse_minimum_python
(source: str)
scripts/collect_ty_ecosystem_run_metadata.py:145
↓ 1 callersMethodparse_missing_name
(&mut self)
crates/ruff_python_parser/src/parser/expression.rs:485
↓ 1 callersMethodparse_module
Parses a Python module. This is to be used for [`Mode::Module`] and [`Mode::Ipython`].
crates/ruff_python_parser/src/parser/mod.rs:211
↓ 1 callersFunctionparse_multiline_str
(src: str, pos: Pos, *, literal: bool)
crates/ruff_benchmark/resources/tomllib/_parser.py:521
↓ 1 callersFunctionparse_mypy_primer_revision
(pyproject: str)
scripts/collect_ty_ecosystem_run_metadata.py:164
↓ 1 callersMethodparse_named_expression
Parses a named expression (`:=`). # Panics If the parser isn't positioned at a `:=` token. See: <https://docs.python.org/3/reference/expressions.ht
crates/ruff_python_parser/src/parser/expression.rs:2848
↓ 1 callersFunctionparse_nested_placeholder
Parses a placeholder format part within a format specification
crates/ruff_python_literal/src/format.rs:337
↓ 1 callersFunctionparse_nested_placeholders
Parse all placeholders in a format specification If no placeholders are present, an empty vector will be returned
crates/ruff_python_literal/src/format.rs:348
↓ 1 callersMethodparse_nonlocal_statement
Parses a nonlocal statement. # Panics If the parser isn't positioned at a `nonlocal` token. See: <https://docs.python.org/3/reference/simple_stmts.
crates/ruff_python_parser/src/parser/statement.rs:1013
↓ 1 callersFunctionparse_numpy_sections
( checker: &Checker, docstring: &Docstring, section_contexts: &SectionContexts, )
crates/ruff_linter/src/rules/pydocstyle/rules/sections.rs:2137
↓ 1 callersMethodparse_octet
(&mut self, o: u8)
crates/ruff_python_parser/src/string.rs:182
↓ 1 callersMethodparse_parameter_with_default
Parses a parameter with an optional default expression. Matches the `param_maybe_default` rule in the [Python grammar]. This method doesn't allow st
crates/ruff_python_parser/src/parser/statement.rs:3281
↓ 1 callersFunctionparse_parameters
Parse the entries in a "Parameters" section of a docstring. Attempts to parse using the specified [`SectionStyle`], falling back to the other style i
crates/ruff_linter/src/rules/pydoclint/rules/check_docstring.rs:602
← previousnext →12,101–12,200 of 31,562, ranked by callers