Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/astral-sh/ruff
/ functions
Functions
31,766 in github.com/astral-sh/ruff
⨍
Functions
31,766
◇
Types & classes
7,128
↳
Endpoints
82
↓ 1 callers
Method
expression_scope
(&self, expression: &impl HasTrackedScope)
crates/ty_python_core/src/lib.rs:482
↓ 1 callers
Function
expression_starts_with_http_prefix
Resolves `expr` to its binding and checks if the resolved expression starts with an HTTP or HTTPS prefix.
crates/ruff_linter/src/rules/flake8_bandit/rules/suspicious_function_call.rs:1044
↓ 1 callers
Method
expression_types
( &self, )
crates/ty_python_semantic/src/types/infer.rs:378
↓ 1 callers
Function
extend
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, dict: &ast::ExprDict, expres
crates/ty_python_semantic/src/types/dict.rs:18
↓ 1 callers
Function
extend_collection_use_constraints
Extends the current collection-use constraints with those from the previous cycle iteration. Constraints for a collection can appear and disappear wh
crates/ty_python_semantic/src/types/infer.rs:217
↓ 1 callers
Method
extend_descendants
(&mut self, children_end: FileScopeId)
crates/ty_python_core/src/scope.rs:170
↓ 1 callers
Method
extend_expression_cache_entry
(&mut self, inference: &FullExpressionCacheEntry<'db>)
crates/ty_python_semantic/src/types/infer/builder.rs:847
↓ 1 callers
Method
extend_filtered
Extend with selected diagnostics while retaining all used suppressions.
crates/ty_python_semantic/src/types/diagnostic.rs:1717
↓ 1 callers
Function
extend_fixed_length_iterable
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, iterable: &ast::Expr, expres
crates/ty_python_semantic/src/types/iteration.rs:142
↓ 1 callers
Method
extend_fragments
(&mut self, fragments: Vec<BodyFragment>)
crates/ty_ide/src/docstring/document/numpy.rs:62
↓ 1 callers
Method
extend_fragments
(&mut self, fragments: Vec<BodyFragment>)
crates/ty_ide/src/docstring/document/google.rs:191
↓ 1 callers
Method
extend_function_deferred
( &mut self, definition: Definition<'db>, function: &ast::StmtFunctionDef, )
crates/ty_python_semantic/src/types/infer/builder/function.rs:754
↓ 1 callers
Method
extend_imported_definitions
Appends the reachable bindings of a `from` import's symbol in its target module. Follows one import at a time so an overwritten re-export cannot cont
crates/ty_python_semantic/src/semantic_model.rs:867
↓ 1 callers
Method
extend_match_subject_bindings
Retain captures that bind the entire subject to its original name. These definitions still refer to the saved subject if a guard fails, so later cases
crates/ty_python_core/src/builder.rs:2875
↓ 1 callers
Method
extend_members
(self, members: T)
crates/ruff_python_ast/src/name.rs:416
↓ 1 callers
Function
extend_range_to_include_indent
Extends `range` backwards (by reducing `range.start`) to include any directly preceding whitespace (`\t` or ` `). # Panics If `range.start` is out of
crates/ruff_formatter/src/lib.rs:516
↓ 1 callers
Function
extend_settings_constructor_parameters
Add the specialized constructor parameters accepted by a settings model. Pydantic settings models accept underscore-prefixed parameters that override
crates/ty_python_semantic/src/types/dedicated/pydantic.rs:748
↓ 1 callers
Method
extend_statement
(&mut self, inference: &StatementInference<'db>)
crates/ty_python_semantic/src/types/infer/builder.rs:736
↓ 1 callers
Method
extend_with_instance_members_for_class
Extend with instance members from a single class (not its MRO).
crates/ty_python_semantic/src/types/list_members.rs:586
↓ 1 callers
Method
extend_with_metaclass_members
Extend a class object's members with members set by its metaclass. A static metaclass can also assign attributes onto the class objects that it creat
crates/ty_python_semantic/src/types/list_members.rs:568
↓ 1 callers
Method
extend_with_synthetic_members
( &mut self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, ty: Type<'db>,
crates/ty_python_semantic/src/types/list_members.rs:652
↓ 1 callers
Method
extensions
Return the file extensions in the mapping.
crates/ruff_linter/src/settings/types.rs:502
↓ 1 callers
Function
external_stub_fixture_cursor_test
(test_source: &str)
crates/ty_ide/src/find_references.rs:3358
↓ 1 callers
Function
external_stub_fixture_definition_cursor_test
()
crates/ty_ide/src/find_references.rs:3331
↓ 1 callers
Method
extra
Create a new "Extra" search path
crates/ty_module_resolver/src/path.rs:618
↓ 1 callers
Method
extra_indent_ascii_spaces
This returns any extra indent that will be added after formatting this code example. The extra indent is expressed in units of ASCII space characters
crates/ruff_python_formatter/src/string/docstring.rs:835
↓ 1 callers
Function
extra_parameter
Create the catch-all keyword parameter for a Pydantic model constructor. Start with `extra` and append underscores until the name does not collide wi
crates/ty_python_semantic/src/types/dedicated/pydantic.rs:1583
↓ 1 callers
Method
extra_paths
(&self)
crates/ty_test/src/config.rs:73
↓ 1 callers
Function
extra_width_from_tabs
Count extra display columns from tabs in the first `n` chars of `s`. Each tab is displayed as 4 spaces, so the extra width per tab is 3.
crates/ruff_annotate_snippets/src/renderer/render.rs:2365
↓ 1 callers
Function
extract_base_class_names
Extracts the names of base classes from a class definition. For simple name references (e.g., `Foo`), returns the name as-is. For attribute accesses
crates/ty_ide/src/completion.rs:1784
↓ 1 callers
Function
extract_comment_blocks
Extract the comment blocks from the given source text. A comment block is a sequence of lines that start with `// ` and are separated by an empty lin
crates/ruff_python_parser/tests/generate_inline_tests.rs:263
↓ 1 callers
Function
extract_cryptographic_key
( checker: &Checker, call: &ExprCall, )
crates/ruff_linter/src/rules/flake8_bandit/rules/weak_cryptographic_key.rs:99
↓ 1 callers
Function
extract_definition
Extract a `Definition` from the AST node defined by a `Stmt`.
crates/ruff_linter/src/docstrings/extraction.rs:39
↓ 1 callers
Function
extract_dict_and_key_from_del
(targets: &[Expr])
crates/ruff_linter/src/rules/ruff/rules/if_key_in_dict_del.rs:98
↓ 1 callers
Function
extract_dict_and_key_from_test
(test: &Expr)
crates/ruff_linter/src/rules/ruff/rules/if_key_in_dict_del.rs:82
↓ 1 callers
Function
extract_dict_name
Extracts the name of the dictionary from the expression.
crates/ruff_linter/src/rules/pylint/rules/dict_index_missing_items.rs:169
↓ 1 callers
Function
extract_doc_string
Extract documentation from doc attributes into a single string
crates/ruff_macros/src/env_vars.rs:78
↓ 1 callers
Function
extract_docstring
Extract a docstring from a `Definition`.
crates/ruff_linter/src/docstrings/extraction.rs:23
↓ 1 callers
Method
extract_dunder_all_elts
( &self, expr: &'expr Expr, )
crates/ruff_python_semantic/src/model/all.rs:147
↓ 1 callers
Method
extract_dunder_all_names
Extract the names bound to a given __all__ assignment.
crates/ruff_python_semantic/src/model/all.rs:75
↓ 1 callers
Function
extract_float_literal
(arg: &ast::Expr, sign: Sign)
crates/ruff_linter/src/rules/ruff/rules/decimal_from_float_literal.rs:113
↓ 1 callers
Function
extract_indentation_range
(body: &[&Stmt], locator: &Locator)
crates/ruff_linter/src/rules/isort/rules/organize_imports.rs:101
↓ 1 callers
Function
extract_int_argument
(call: &ExprCall, name: &str, position: usize)
crates/ruff_linter/src/rules/flake8_bandit/rules/weak_cryptographic_key.rs:155
↓ 1 callers
Function
extract_mode
Returns the mode argument, if present.
crates/ruff_linter/src/rules/pylint/rules/bad_open_mode.rs:109
↓ 1 callers
Function
extract_name_from_reversed
Given a call to `reversed`, returns the inner argument. For example, given `reversed(l)`, this function would return `l`.
crates/ruff_linter/src/rules/refurb/rules/list_reverse_copy.rs:137
↓ 1 callers
Function
extract_name_from_sliced_reversed
Given a slice expression, returns the inner argument if it's a reversed slice. For example, given `l[::-1]`, this function would return `l`.
crates/ruff_linter/src/rules/refurb/rules/list_reverse_copy.rs:163
↓ 1 callers
Function
extract_range
(body: &[&Stmt])
crates/ruff_linter/src/rules/isort/rules/organize_imports.rs:95
↓ 1 callers
Function
extract_reversed
(expr: &'a Expr, semantic: &SemanticModel)
crates/ruff_linter/src/rules/refurb/rules/list_reverse_copy.rs:190
↓ 1 callers
Function
extract_type_alias_name
(stmt: &'a ast::Stmt, semantic: &SemanticModel)
crates/ruff_linter/src/rules/flake8_pyi/rules/unused_private_type_definition.rs:319
↓ 1 callers
Function
extract_type_argument
(rust_type_str: str)
crates/ruff_python_ast/generate.py:225
↓ 1 callers
Function
extract_typeddict_name
(stmt: &'a Stmt, semantic: &SemanticModel)
crates/ruff_linter/src/rules/flake8_pyi/rules/unused_private_type_definition.rs:374
↓ 1 callers
Function
extract_types
Extract the argument types and return type from a `Callable` annotation. The `Callable` import can be from either `collections.abc` or `typing`. If an
crates/ruff_linter/src/rules/pycodestyle/rules/lambda_assignment.rs:144
↓ 1 callers
Function
extract_version
Return the version tuple as a sequence of [`Int`] values.
crates/ruff_linter/src/rules/pyupgrade/rules/outdated_version_block.rs:433
↓ 1 callers
Function
extraneous_parentheses
UP034
crates/ruff_linter/src/rules/pyupgrade/rules/extraneous_parentheses.rs:120
↓ 1 callers
Function
extraneous_whitespace
E201, E202, E203
crates/ruff_linter/src/rules/pycodestyle/rules/logical_lines/extraneous_whitespace.rs:132
↓ 1 callers
Function
f
Black's `Preview.prefer_splitting_right_hand_side_of_assignments`
crates/ruff_python_formatter/resources/test/fixtures/ruff/preview.py:35
↓ 1 callers
Function
f
()
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/try.py:109
↓ 1 callers
Function
f
()
crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/named_expr.py:64
↓ 1 callers
Function
f
(arg: C)
crates/ty_python_semantic/resources/corpus/88_regression_issue_17792.py:9
↓ 1 callers
Function
f
()
crates/ty_python_semantic/resources/corpus/25_func_annotations_starred.py:5
↓ 1 callers
Function
f
(data)
crates/ruff_linter/resources/test/fixtures/flake8_comprehensions/C420.py:23
↓ 1 callers
Function
f
(x)
crates/ruff_linter/resources/test/fixtures/flake8_comprehensions/C404.py:4
↓ 1 callers
Function
f
(x)
crates/ruff_linter/resources/test/fixtures/flake8_comprehensions/C402.py:15
↓ 1 callers
Function
f
(x)
crates/ruff_linter/resources/test/fixtures/flake8_comprehensions/C401.py:8
↓ 1 callers
Function
f
(x)
crates/ruff_linter/resources/test/fixtures/flake8_comprehensions/C403.py:9
↓ 1 callers
Function
f
(a: "'' and 'b'")
crates/ruff_linter/resources/test/fixtures/flake8_simplify/SIM223.py:159
↓ 1 callers
Function
f
()
crates/ruff_linter/resources/test/fixtures/flake8_simplify/SIM117.py:186
↓ 1 callers
Function
f
(a: "'b' or 'c'")
crates/ruff_linter/resources/test/fixtures/flake8_simplify/SIM222.py:199
↓ 1 callers
Function
f
()
crates/ruff_linter/resources/test/fixtures/flake8_use_pathlib/full_name.py:61
↓ 1 callers
Function
f
()
crates/ruff_linter/resources/test/fixtures/ruff/RUF009.py:104
↓ 1 callers
Function
f
()
crates/ruff_linter/resources/test/fixtures/pycodestyle/W605_0.py:26
↓ 1 callers
Function
f
(x: int)
crates/ruff_linter/resources/test/fixtures/pycodestyle/E30.py:256
↓ 1 callers
Function
f
(cond:bool)
crates/ruff_linter/resources/test/fixtures/pylint/len_as_condition.py:189
↓ 1 callers
Function
f
()
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B023.py:66
↓ 1 callers
Function
f
(when=dt.datetime.now() + dt.timedelta(days=7))
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B006_B008.py:130
↓ 1 callers
Function
f
(x: Callable[[VarArg("os")], None])
crates/ruff_linter/resources/test/fixtures/pyflakes/F821_11.py:18
↓ 1 callers
Function
f
()
crates/ruff_linter/resources/test/fixtures/pyflakes/F704.py:1
↓ 1 callers
Function
f
()
crates/ruff_linter/resources/test/fixtures/pyflakes/F821_6.py:7
↓ 1 callers
Function
f
(x: Callable[[VarArg("os")], None])
crates/ruff_linter/resources/test/fixtures/pyflakes/F821_12.py:20
↓ 1 callers
Function
f
(*args: Unpack[tuple[int, ...]])
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP044.py:14
↓ 1 callers
Method
f
(self)
crates/ruff_python_formatter/resources/test/fixtures/black/cases/fmtskip6.py:2
↓ 1 callers
Method
f
(self)
crates/ruff_linter/resources/test/fixtures/pycodestyle/E30.py:274
↓ 1 callers
Method
f
(self, arg: "this isn't python")
crates/ruff_linter/resources/test/fixtures/pyflakes/F722_1.py:8
↓ 1 callers
Function
f3
()
crates/ruff_linter/resources/test/fixtures/pycodestyle/E741.py:32
↓ 1 callers
Function
f_string_in_gettext_func_call
INT001
crates/ruff_linter/src/rules/flake8_gettext/rules/f_string_in_gettext_func_call.rs:68
↓ 1 callers
Function
f_string_missing_placeholders
F541
crates/ruff_linter/src/rules/pyflakes/rules/f_string_missing_placeholders.rs:77
↓ 1 callers
Function
f_strings
UP032
crates/ruff_linter/src/rules/pyupgrade/rules/f_strings.rs:425
↓ 1 callers
Function
fail_call
PT016
crates/ruff_linter/src/rules/flake8_pytest_style/rules/fail.rs:62
↓ 1 callers
Function
fake_func
()
crates/ruff_linter/resources/test/fixtures/flake8_bandit/S701.py:27
↓ 1 callers
Method
fallback
( &self, result: Result<T, E>, fallback_fn: impl FnOnce(E) -> T, )
crates/ty_module_resolver/src/strategy.rs:102
↓ 1 callers
Method
fallback
Constructs [`RuffSettings`] by attempting to resolve settings from a user-provided configuration file, such as `pyproject.toml` or `ruff.toml`, within
crates/ruff_server/src/session/index/ruff_settings.rs:64
↓ 1 callers
Method
fallback_mro
Return the fallback MRO to use for type inference.
crates/ty_python_semantic/src/types/mro.rs:989
↓ 1 callers
Method
fallback_options
(&self)
crates/ty_server/src/session/settings.rs:63
↓ 1 callers
Method
fallback_registration
( &mut self, workspaces: &Workspaces, cache_key: u64, )
crates/ty_server/src/session/file_watcher.rs:183
↓ 1 callers
Method
fallback_return_type
( &self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, )
crates/ty_python_semantic/src/types/call.rs:535
↓ 1 callers
Method
fallback_type
(&self)
crates/ty_python_semantic/src/types/infer/builder.rs:616
↓ 1 callers
Function
fallible_context_manager
RUF075
crates/ruff_linter/src/rules/ruff/rules/fallible_context_manager.rs:64
↓ 1 callers
Function
falsy_dict_get_fallback
RUF056
crates/ruff_linter/src/rules/ruff/rules/falsy_dict_get_fallback.rs:63
↓ 1 callers
Function
fastapi_non_annotated_dependency
FAST002
crates/ruff_linter/src/rules/fastapi/rules/fastapi_non_annotated_dependency.rs:107
↓ 1 callers
Function
fastapi_redundant_response_model
FAST001
crates/ruff_linter/src/rules/fastapi/rules/fastapi_redundant_response_model.rs:83
← previous
next →
9,301–9,400 of 31,766, ranked by callers