MCPcopy Create free account

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

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

↓ 1 callersFunctionparse_precision
(iter: &mut ParseIter<I>)
crates/ruff_python_literal/src/cformat.rs:290
↓ 1 callersMethodparse_primary_expression
Parses an atom and any following calls, subscripts, or attributes. See: <https://docs.python.org/3/reference/expressions.html#primaries>
crates/ruff_python_parser/src/parser/expression.rs:582
↓ 1 callersFunctionparse_project_versions
( source: str, requested: Sequence[str], baseline: tuple[int, int], )
scripts/collect_ty_ecosystem_run_metadata.py:170
↓ 1 callersMethodparse_raise_statement
Parses a `raise` statement. # Panics If the parser isn't positioned at a `raise` token. See: <https://docs.python.org/3/reference/simple_stmts.html
crates/ruff_python_parser/src/parser/statement.rs:532
↓ 1 callersFunctionparse_raises
Parse the entries in a "Raises" section of a docstring. Attempts to parse using the specified [`SectionStyle`], falling back to the other style if no
crates/ruff_linter/src/rules/pydoclint/rules/check_docstring.rs:738
↓ 1 callersFunctionparse_raises_google
Parses Google-style "Raises" section of the form: ```python Raises: FasterThanLightError: If speed is greater than the speed of light. DivisionByZero
crates/ruff_linter/src/rules/pydoclint/rules/check_docstring.rs:760
↓ 1 callersFunctionparse_raises_numpy
Parses NumPy-style "Raises" section of the form: ```python Raises ------ FasterThanLightError If speed is greater than the speed of light. DivisionBy
crates/ruff_linter/src/rules/pydoclint/rules/check_docstring.rs:800
↓ 1 callersMethodparse_return_statement
Parses a `return` statement. # Panics If the parser isn't positioned at a `return` token. See: <https://docs.python.org/3/reference/simple_stmts.ht
crates/ruff_python_parser/src/parser/statement.rs:454
↓ 1 callersFunctionparse_ruff_toml
Parse a `ruff.toml` file.
crates/ruff_workspace/src/pyproject.rs:67
↓ 1 callersFunctionparse_run_reference
(value: str)
scripts/collect_ty_ecosystem_run_metadata.py:212
↓ 1 callersMethodparse_set_comprehension_expression
Parses a set 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:2670
↓ 1 callersMethodparse_set_expression
Parses a set expression. See: <https://docs.python.org/3/reference/expressions.html#set-displays>
crates/ruff_python_parser/src/parser/expression.rs:2432
↓ 1 callersMethodparse_set_or_dict_like_expression
Parses a set, dict, set comprehension, or dict comprehension. # Panics If the parser isn't positioned at a `{` token. See: - <https://docs.python.o
crates/ruff_python_parser/src/parser/expression.rs:2096
↓ 1 callersFunctionparse_shard_log
(log: str)
scripts/collect_ty_ecosystem_run_metadata.py:93
↓ 1 callersMethodparse_simple_statements
Parses a sequence of simple statements. If there is more than one statement in this sequence, it is expected to be separated by a semicolon. The sequ
crates/ruff_python_parser/src/parser/statement.rs:198
↓ 1 callersFunctionparse_simple_type_annotation
( string_literal: &StringLiteral, source: &str, )
crates/ruff_python_parser/src/typing.rs:75
↓ 1 callersMethodparse_single_expression
Parses a single expression. This is to be used for [`Mode::Expression`]. ## Recovery After parsing a single expression, an error is reported and al
crates/ruff_python_parser/src/parser/mod.rs:175
↓ 1 callersMethodparse_single_simple_statement
Parses a single simple statement. This statement must be terminated by a newline or semicolon. Use [`Parser::parse_simple_statements`] to parse a se
crates/ruff_python_parser/src/parser/statement.rs:157
↓ 1 callersMethodparse_slice
Parses a slice expression. See: <https://docs.python.org/3/reference/expressions.html#slicings>
crates/ruff_python_parser/src/parser/expression.rs:1000
↓ 1 callersFunctionparse_spec_mapping_key
(iter: &mut ParseIter<I>)
crates/ruff_python_literal/src/cformat.rs:165
↓ 1 callersMethodparse_starred_expression
Parses a starred expression with the given precedence. The expression is parsed with the highest precedence. If the precedence of the parsed expressi
crates/ruff_python_parser/src/parser/expression.rs:2703
↓ 1 callersFunctionparse_state
(contents: str)
scripts/pull_request_reviewers.py:90
↓ 1 callersMethodparse_string
(mut self)
crates/ruff_python_parser/src/string.rs:441
↓ 1 callersMethodparse_string
Parses a single string, byte literal, f-string, or t-string.
crates/ruff_python_parser/src/parser/expression.rs:1311
↓ 1 callersFunctionparse_string_literal
( source: &str, flags: AnyStringFlags, range: TextRange, )
crates/ruff_python_parser/src/string.rs:509
↓ 1 callersMethodparse_string_or_byte_literal
Parses a single string or byte literal. This does not handle implicitly concatenated strings. # Panics If the parser isn't positioned at a `String`
crates/ruff_python_parser/src/parser/expression.rs:1527
↓ 1 callersFunctionparse_struct_format
Parse a `struct` module format string and return the element types. Returns `None` if the format contains unsupported specifiers or repetition counts
crates/ty_python_semantic/src/types/call/bind.rs:11601
↓ 1 callersMethodparse_subscript_expression
Parses a subscript expression. # Panics If the parser isn't positioned at a `[` token. See: <https://docs.python.org/3/reference/expressions.html#s
crates/ruff_python_parser/src/parser/expression.rs:882
↓ 1 callersMethodparse_tables
Parse and return all tables from the DOM. Returns ------- list of parsed (header, body, footer) tuples from tables.
crates/ruff_server/resources/test/fixtures/pandas_html.py:242
↓ 1 callersFunctionparse_task_id_value
Parse a task ID value, which may be a plain quoted string or wrapped in a single-element list or tuple: `'task'`, `['task']`, `('task',)`.
crates/ruff_linter/src/rules/airflow/rules/xcom_pull_in_template_string.rs:284
↓ 1 callersFunctionparse_text_inside_parentheses
(iter: &mut ParseIter<I>)
crates/ruff_python_literal/src/cformat.rs:306
↓ 1 callersMethodparse_try_statement
Parses a `try` statement. # Panics If the parser isn't positioned at a `try` token. See: <https://docs.python.org/3/reference/compound_stmts.html#t
crates/ruff_python_parser/src/parser/statement.rs:1540
↓ 1 callersMethodparse_type_alias_statement
Parses a type alias statement. # Panics If the parser isn't positioned at a `type` token. See: <https://docs.python.org/3/reference/simple_stmts.ht
crates/ruff_python_parser/src/parser/statement.rs:1059
↓ 1 callersMethodparse_type_params
Parses a type parameter list. # Panics If the parser isn't positioned at a `[` token. See: <https://docs.python.org/3/reference/compound_stmts.html
crates/ruff_python_parser/src/parser/statement.rs:3636
↓ 1 callersMethodparse_unicode_name
(&mut self)
crates/ruff_python_parser/src/string.rs:201
↓ 1 callersFunctionparse_version
(meta: &ParseNestedMeta)
crates/ruff_macros/src/violation_metadata.rs:157
↓ 1 callersMethodparse_while_statement
Parses a `while` statement. # Panics If the parser isn't positioned at a `while` token. See: <https://docs.python.org/3/reference/compound_stmts.ht
crates/ruff_python_parser/src/parser/statement.rs:1958
↓ 1 callersMethodparse_with_item_optional_vars
Parses the optional variables in a `with` item. # Panics If the parser isn't positioned at an `as` token.
crates/ruff_python_parser/src/parser/statement.rs:2522
↓ 1 callersMethodparse_with_items
Parses a list of with items. See: <https://docs.python.org/3/reference/compound_stmts.html#the-with-statement>
crates/ruff_python_parser/src/parser/statement.rs:2236
↓ 1 callersFunctionparse_xcom_pull_template
Parse a Jinja template string to extract a single `xcom_pull` task ID. Returns the task ID if the entire string is a single `{{ ti.xcom_pull(task_ids
crates/ruff_linter/src/rules/airflow/rules/xcom_pull_in_template_string.rs:141
↓ 1 callersMethodparse_yield_expression
Parses a `yield` expression. # Panics If the parser isn't positioned at a `yield` token. See: <https://docs.python.org/3/reference/expressions.html
crates/ruff_python_parser/src/parser/expression.rs:2759
↓ 1 callersMethodparse_yield_from_expression
Parses a `yield from` expression. This method should not be used directly. Use [`Parser::parse_yield_expression`] even when parsing a `yield from` ex
crates/ruff_python_parser/src/parser/expression.rs:2807
↓ 1 callersFunctionparse_zero
(text: &str)
crates/ruff_python_literal/src/format.rs:310
↓ 1 callersMethodparsed
Returns the parsed AST for `path`
crates/ty_wasm/src/lib.rs:288
↓ 1 callersFunctionparsed_sections
(source: &str)
crates/ty_ide/src/docstring/markdown/structured/numpy.rs:361
↓ 1 callersFunctionparsed_sections
(normalized_source: &str)
crates/ty_ide/src/docstring/markdown/structured/google.rs:335
↓ 1 callersMethodpartial_application
Collects the parameter-level effects of a `functools.partial(...)` application.
crates/ty_python_semantic/src/types/call/bind.rs:9687
↓ 1 callersMethodpartial_application_specialization
Returns the specialization used for the callable signature exposed by a partial object. Surviving type variables that still appear in the reduced par
crates/ty_python_semantic/src/types/signatures.rs:2293
↓ 1 callersMethodpartial_callable
A partial stores one of the expanded argument lists. For this list, an overload that rejected a stored keyword is still available if the caller overri
crates/ty_python_semantic/src/types/call/bind.rs:5047
↓ 1 callersMethodpartial_cmp
(&self, other: &u32)
crates/ruff_linter/src/rules/pycodestyle/rules/blank_lines.rs:601
↓ 1 callersMethodpartial_keyword_override
Which stored keyword must the caller replace to make this overload applicable? A positional argument or an incompatible call shape cannot be repaired
crates/ty_python_semantic/src/types/call/bind.rs:10617
↓ 1 callersMethodpartial_specialization
Returns the merged specialization for this call while retaining missing bindings as unspecialized.
crates/ty_python_semantic/src/types/call/bind.rs:9902
↓ 1 callersMethodpartially_applied_callables
Reduces the compatible overloads and reports invalid bound arguments to the outer partial.
crates/ty_python_semantic/src/types/call/bind.rs:3770
↓ 1 callersMethodpartially_applied_signature
Synthesizes this overload's reduced partial signature.
crates/ty_python_semantic/src/types/call/bind.rs:9738
↓ 1 callersMethodpartially_apply
Reduces a specialized signature using bindings matched against that same signature.
crates/ty_python_semantic/src/types/signatures.rs:2193
↓ 1 callersMethodpartition_imports
Partitions imports into matched and unmatched names.
crates/ruff_linter/src/rules/pyupgrade/rules/deprecated_import.rs:717
↓ 1 callersFunctionpartition_tuple_union_elements
Partitions a union into two sets prior to rebuilding it: one for elements that are not candidates for tuple size promotion, and another for groups of
crates/ty_python_semantic/src/types/tuple/promotion.rs:255
↓ 1 callersFunctionpascal_case
Convert from snake-case to PascalCase.
scripts/add_rule.py:40
↓ 1 callersFunctionpascal_case
Convert from snake-case to PascalCase.
scripts/add_plugin.py:37
↓ 1 callersFunctionpass_in_class_body
PYI012
crates/ruff_linter/src/rules/flake8_pyi/rules/pass_in_class_body.rs:46
↓ 1 callersFunctionpass_statement_stub_body
PYI009
crates/ruff_linter/src/rules/flake8_pyi/rules/pass_statement_stub_body.rs:44
↓ 1 callersFunctionpatch_with_lambda
PT008
crates/ruff_linter/src/rules/flake8_pytest_style/rules/patch.rs:114
↓ 1 callersMethodpath
Returns the relative path as specified by the user.
crates/ty_project/src/metadata/value.rs:52
↓ 1 callersMethodpath
(&self)
crates/ruff_db/src/vendored.rs:337
↓ 1 callersFunctionpath_constructor_current_directory
PTH201
crates/ruff_linter/src/rules/flake8_use_pathlib/rules/path_constructor_current_directory.rs:59
↓ 1 callersMethodpath_exists
(&self, path: &SystemPath)
crates/ruff_db/src/system/os.rs:114
↓ 1 callersMethodpath_metadata
(&self, path: &SystemPath)
crates/ty_server/src/system.rs:168
↓ 1 callersMethodpaths_mut
Returns a transaction-like view for updating watched paths in one backend operation.
crates/ty_project/src/watch/watcher.rs:116
↓ 1 callersFunctionpattern
Run lint rules over a [`Pattern`] syntax node.
crates/ruff_linter/src/checkers/ast/analyze/pattern.rs:10
↓ 1 callersMethodpattern
(self)
crates/ruff_python_formatter/src/pattern/mod.rs:396
↓ 1 callersMethodpattern_kind
Pattern predicates narrow the match subject.
crates/ty_python_core/src/place.rs:816
↓ 1 callersFunctionpattern_success_types
( db: &'db dyn Db, pattern: PatternPredicate<'db>, )
crates/ty_python_semantic/src/types/narrow.rs:485
↓ 1 callersFunctionpayloads
(log: str)
scripts/collect_ty_ecosystem_run_metadata.py:54
↓ 1 callersMethodpeek_next_non_variadic
(&mut self)
crates/ruff_python_ast/src/nodes.rs:3595
↓ 1 callersMethodpeek_target
Peek at the next parameter in the `target` parameter iterator without consuming it.
crates/ty_python_semantic/src/types/signatures.rs:3197
↓ 1 callersFunctionpeel_lists
Recursively removes any `list` wrappers from the expression. For example, given `list(list(list([1, 2, 3])))`, this function would return the inner `
crates/ruff_linter/src/rules/refurb/rules/list_reverse_copy.rs:111
↓ 1 callersMethodpending_narrowing_normalized
Discard unresolved narrowing while preserving recursive structure around it. A bare pending marker carries no recursive identity and must not make a u
crates/ty_python_semantic/src/types.rs:3870
↓ 1 callersMethodpending_rst_literal_language
(&self)
crates/ty_ide/src/docstring/markdown/general.rs:506
↓ 1 callersMethodpep695_generic_context_inner
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/class/static_literal.rs:427
↓ 1 callersFunctionpep_484_positional_parameter
PYI063
crates/ruff_linter/src/rules/flake8_pyi/rules/pre_pep570_positional_argument.rs:59
↓ 1 callersFunctionpep_604_optional
Format the expression as a PEP 604-style optional.
crates/ruff_python_ast/src/helpers.rs:1688
↓ 1 callersFunctionpercent_format_expected_mapping
F502
crates/ruff_linter/src/rules/pyflakes/rules/strings.rs:575
↓ 1 callersFunctionpercent_format_expected_sequence
F503
crates/ruff_linter/src/rules/pyflakes/rules/strings.rs:598
↓ 1 callersFunctionpercent_format_extra_named_arguments
F504
crates/ruff_linter/src/rules/pyflakes/rules/strings.rs:610
↓ 1 callersFunctionpercent_format_missing_arguments
F505
crates/ruff_linter/src/rules/pyflakes/rules/strings.rs:676
↓ 1 callersFunctionpercent_format_mixed_positional_and_named
F506
crates/ruff_linter/src/rules/pyflakes/rules/strings.rs:723
↓ 1 callersFunctionpercent_format_positional_count_mismatch
F507
crates/ruff_linter/src/rules/pyflakes/rules/strings.rs:734
↓ 1 callersFunctionpercent_format_star_requires_sequence
F508
crates/ruff_linter/src/rules/pyflakes/rules/strings.rs:788
↓ 1 callersFunctionpermissions
()
crates/ruff_db/src/system/memory_fs.rs:800
↓ 1 callersMethodpermissions
(metadata: &std::fs::Metadata)
crates/ruff_db/src/system/os.rs:59
↓ 1 callersFunctionpersist
(workspace: Workspace)
playground/ty/src/Editor/persist.ts:25
↓ 1 callersFunctionpersist
( settingsSource: string, pythonSource: string, )
playground/ruff/src/Editor/settings.ts:37
↓ 1 callersFunctionpersistLocal
(workspace: Workspace)
playground/ty/src/Editor/persist.ts:69
↓ 1 callersFunctionpersistLocal
({ settingsSource, pythonSource, }: { settingsSource: string; pythonSource: string; })
playground/ruff/src/Editor/settings.ts:128
↓ 1 callersMethodplace_access_can_raise
Returns whether accessing a name, attribute, or subscript can raise. Only a definitely bound name in the current flow state is known to be safe. In p
crates/ty_python_core/src/builder.rs:2492
↓ 1 callersFunctionplace_comment
Manually attach comments to nodes that the default placement gets wrong.
crates/ruff_python_formatter/src/comments/placement.rs:23
↓ 1 callersMethodplace_expr_prefix_loads
Describes how to evaluate the tracked prefixes of `place_expr` in this scope.
crates/ty_python_semantic/src/place_load.rs:1256
↓ 1 callersFunctionplace_from_declarations_with_reachability_cache
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, declarations: DeclarationsIterator<'_, 'db>,
crates/ty_python_semantic/src/place.rs:865
↓ 1 callersMethodplace_id_by_instance_attribute_name
(&self, name: &str)
crates/ty_python_core/src/member.rs:579
↓ 1 callersFunctionplace_keywords
Tries to place every keyword of this length alongside the shorter keywords.
crates/ruff_python_parser/src/lexer/keywords.rs:131
← previousnext →12,301–12,400 of 31,766, ranked by callers