MCPcopy Create free account

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

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

↓ 1 callersFunctionos_path_getmtime
PTH204
crates/ruff_linter/src/rules/flake8_use_pathlib/rules/os_path_getmtime.rs:69
↓ 1 callersFunctionos_path_getsize
PTH202
crates/ruff_linter/src/rules/flake8_use_pathlib/rules/os_path_getsize.rs:69
↓ 1 callersFunctionos_path_isabs
PTH117
crates/ruff_linter/src/rules/flake8_use_pathlib/rules/os_path_isabs.rs:64
↓ 1 callersFunctionos_path_isdir
PTH112
crates/ruff_linter/src/rules/flake8_use_pathlib/rules/os_path_isdir.rs:66
↓ 1 callersFunctionos_path_isfile
PTH113
crates/ruff_linter/src/rules/flake8_use_pathlib/rules/os_path_isfile.rs:66
↓ 1 callersFunctionos_path_islink
PTH114
crates/ruff_linter/src/rules/flake8_use_pathlib/rules/os_path_islink.rs:66
↓ 1 callersFunctionos_path_samefile
PTH121
crates/ruff_linter/src/rules/flake8_use_pathlib/rules/os_path_samefile.rs:69
↓ 1 callersFunctionos_readlink
PTH115
crates/ruff_linter/src/rules/flake8_use_pathlib/rules/os_readlink.rs:71
↓ 1 callersFunctionos_remove
PTH107
crates/ruff_linter/src/rules/flake8_use_pathlib/rules/os_remove.rs:67
↓ 1 callersFunctionos_rename
PTH104
crates/ruff_linter/src/rules/flake8_use_pathlib/rules/os_rename.rs:72
↓ 1 callersFunctionos_replace
PTH105
crates/ruff_linter/src/rules/flake8_use_pathlib/rules/os_replace.rs:75
↓ 1 callersFunctionos_rmdir
PTH106
crates/ruff_linter/src/rules/flake8_use_pathlib/rules/os_rmdir.rs:67
↓ 1 callersFunctionos_sep_split
PTH206
crates/ruff_linter/src/rules/flake8_use_pathlib/rules/os_sep_split.rs:68
↓ 1 callersFunctionos_stat
PTH116
crates/ruff_linter/src/rules/flake8_use_pathlib/rules/os_stat.rs:111
↓ 1 callersFunctionos_symlink
PTH211
crates/ruff_linter/src/rules/flake8_use_pathlib/rules/os_symlink.rs:69
↓ 1 callersMethodos_system
(&self)
crates/ty/tests/file_watching.rs:363
↓ 1 callersFunctionos_unlink
PTH108
crates/ruff_linter/src/rules/flake8_use_pathlib/rules/os_unlink.rs:67
↓ 1 callersFunctionoscillating_generic_alias
(db: &'db dyn Db, program: Program<'db>)
crates/ty_python_semantic/src/types/tests.rs:315
↓ 1 callersFunctionoutdated_version_block
UP036
crates/ruff_linter/src/rules/pyupgrade/rules/outdated_version_block.rs:92
↓ 1 callersMethodoutermost
Return the [`TextRange`] of the outermost f-string at the given offset.
crates/ruff_python_index/src/interpolated_string_ranges.rs:35
↓ 1 callersFunctionoutgoing
( server: &mut crate::TestServer, item: CallHierarchyItem, )
crates/ty_server/tests/e2e/call_hierarchy.rs:330
↓ 1 callersMethodoutgoing
Returns the server to client request queue.
crates/ty_server/src/session/request_queue.rs:29
↓ 1 callersMethodoutgoing
Returns the server to client request queue.
crates/ruff_server/src/session/request_queue.rs:29
↓ 1 callersFunctionoutgoing_calls
()
crates/ty_server/tests/e2e/call_hierarchy.rs:65
↓ 1 callersMethodoutgoing_mut
(&mut self)
crates/ty_server/src/session/request_queue.rs:24
↓ 1 callersMethodoutgoing_mut
(&mut self)
crates/ruff_server/src/session/request_queue.rs:24
↓ 1 callersFunctionoutput_format
Determine the output format from the `MDTEST_GITHUB_ANNOTATIONS_FORMAT` environment variable.
crates/mdtest/src/lib.rs:160
↓ 1 callersFunctionoverlapping_import_selectors
(left: &ImportSelector, right: &ImportSelector)
crates/ruff_workspace/src/options.rs:2284
↓ 1 callersFunctionoverlapping_root
(left: &'a str, right: &'a str)
crates/ruff_workspace/src/options.rs:2311
↓ 1 callersFunctionoverlaps
(a1: &LineAnnotation<'_>, a2: &LineAnnotation<'_>, padding: usize)
crates/ruff_annotate_snippets/src/renderer/render.rs:2431
↓ 1 callersMethodoverlaps
(&self, other: &Self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/equality/enums.rs:592
↓ 1 callersFunctionoverloaded_name
Return the name of the function, if it's overloaded.
crates/ruff_linter/src/rules/flake8_annotations/helpers.rs:19
↓ 1 callersMethodoverride_options
(&self)
crates/ty_project/src/metadata.rs:401
↓ 1 callersMethodoverride_options
(&self)
crates/ty_server/src/session/settings.rs:59
↓ 1 callersMethodoverrides
(&self)
crates/ty_project/src/metadata/settings.rs:63
↓ 1 callersFunctionoverriding_definition
( db: &'db dyn Db, function: FunctionType<'db>, )
crates/ty_python_semantic/src/types/overrides.rs:2241
↓ 1 callersMethodown_annotated_qualifiers
Return the type qualifiers attached to each reachable annotated assignment in source order. This uses the declaration history rather than [`StaticCla
crates/ty_python_semantic/src/types/class/static_literal.rs:2994
↓ 1 callersMethodown_class_member
Look up a class member defined directly on this class (not inherited). Returns [`Member::unbound`] if the member is not found in the namespace dict,
crates/ty_python_semantic/src/types/class/dynamic_literal.rs:456
↓ 1 callersMethodown_class_member
Look up an own class member (not inherited) by name. For known members, returns the `EnumLiteralType` if `name` matches. For unknown members, returns
crates/ty_python_semantic/src/types/class/enum_literal.rs:237
↓ 1 callersMethodown_fields_inner
( self, db: &'db dyn Db, specialization: Option<Specialization<'db>>, field_po
crates/ty_python_semantic/src/types/class/static_literal.rs:2768
↓ 1 callersMethodown_frozen_dataclass_subclass_method
Synthesize a `__setattr__` or `__delattr__` view for an ordinary subclass of a frozen dataclass. CPython's generated frozen-dataclass `__setattr__` a
crates/ty_python_semantic/src/types/class/static_literal.rs:2352
↓ 1 callersMethodown_instance_attribute_names
Names assigned through a method receiver in this class, excluding inherited names.
crates/ty_python_semantic/src/types/class.rs:2254
↓ 1 callersMethodown_instance_member
A helper function for `instance_member` that looks up the `name` attribute only on this class, not on its superclasses.
crates/ty_python_semantic/src/types/class/static_literal.rs:3082
↓ 1 callersFunctionown_line_suppression_range
Returns the range covered by an own-line suppression comment. A suppression before a logical line covers the entire logical line. A suppression insid
crates/ty_python_semantic/src/suppression.rs:761
↓ 1 callersFunctionown_meta
( db: &'db dyn Db, class: StaticClassLiteral<'db>, )
crates/ty_python_semantic/src/types/dedicated/django.rs:206
↓ 1 callersFunctionown_primary_key
Find a field constructed with `primary_key=True` in this class body.
crates/ty_python_semantic/src/types/dedicated/django.rs:310
↓ 1 callersMethodown_slot_descriptor
Synthesizes the class descriptor created for an instance slot. ```python class Example: __slots__ = ("value", "__weakref__") ``` Ordinary slots use
crates/ty_python_semantic/src/types/class/slots.rs:560
↓ 1 callersFunctionowning_scope_condition_definition_info
( db: &'db dyn Db, scope: ScopeId<'db>, place: ScopedPlaceId, )
crates/ty_python_semantic/src/types/infer/builder/suspicious_conditions/exemptions.rs:596
↓ 1 callersMethodp_bytes_repr
(&mut self, s: &[u8], flags: BytesLiteralFlags)
crates/ruff_python_codegen/src/generator.rs:185
↓ 1 callersMethodp_str_repr
(&mut self, s: &str, flags: impl Into<AnyStringFlags>)
crates/ruff_python_codegen/src/generator.rs:208
↓ 1 callersFunctionpad_end
Add trailing whitespace to a snippet, if it's immediately followed by an identifier or keyword.
crates/ruff_linter/src/fix/edits.rs:605
↓ 1 callersFunctionpad_start
Add leading whitespace to a snippet, if it's immediately preceded an identifier or keyword.
crates/ruff_linter/src/fix/edits.rs:590
↓ 1 callersMethodpanic_on_server_disconnect
(&mut self)
crates/ty_server/tests/e2e/main.rs:770
↓ 1 callersMethodpanic_on_server_disconnect
(&mut self)
crates/ruff_server/tests/e2e/main.rs:636
↓ 1 callersMethodparam_name
(self)
crates/ruff_linter/src/rules/flake8_bugbear/rules/re_sub_positional_args.rs:101
↓ 1 callersFunctionparameter
Run lint rules over a [`Parameter`] syntax node.
crates/ruff_linter/src/checkers/ast/analyze/parameter.rs:9
↓ 1 callersFunctionparameter_alias
Extract the expected in-route name for a given parameter, if it has an alias. For example, given `document_id: Annotated[str, Path(alias="documentId")
crates/ruff_linter/src/rules/fastapi/rules/fastapi_unused_path_parameter.rs:451
↓ 1 callersFunctionparameter_annotation_loosely_matches_predicate
( parameter: &ParameterWithDefault, predicate: impl FnOnce(&Expr) -> bool, checker: &C
crates/ruff_linter/src/rules/flake8_pyi/rules/exit_annotations.rs:310
↓ 1 callersFunctionparameter_default_type
(db: &'db dyn Db, parameter: Definition<'db>)
crates/ty_python_semantic/src/types/signatures.rs:6561
↓ 1 callersFunctionparameter_documentation
Returns docs for all parameters recognized in the given docstring. `normalized_source` must have already undergone PEP-257 trimming and universal new
crates/ty_ide/src/docstring/document.rs:17
↓ 1 callersFunctionparameter_documentation
Returns parameter documentation from recognized NumPy-style parameter sections. `normalized_source` must have already undergone PEP-257 trimming and
crates/ty_ide/src/docstring/document/numpy.rs:41
↓ 1 callersFunctionparameter_lookup_names
(display_name: &str)
crates/ty_ide/src/docstring/document/numpy.rs:93
↓ 1 callersMethodparameter_names
(&self)
crates/ruff_linter/src/rules/fastapi/rules/fastapi_unused_path_parameter.rs:239
↓ 1 callersMethodparameter_span
( self, db: &'db dyn Db, parameter_index: Option<usize>, )
crates/ty_python_semantic/src/types/function.rs:801
↓ 1 callersMethodparameter_span
Locates the matched source overload after restoring omitted receiver and prefix parameters.
crates/ty_python_semantic/src/types/call/bind.rs:10135
↓ 1 callersMethodparameter_type_by_name
Returns the bound type for the specified parameter, or `None` if no argument was matched to that parameter. Returns an error if the parameter name is
crates/ty_python_semantic/src/types/call/bind.rs:9585
↓ 1 callersFunctionparameter_with_default_argument
PT028
crates/ruff_linter/src/rules/flake8_pytest_style/rules/test_functions.rs:55
↓ 1 callersFunctionparameters
Run lint rules over a [`Parameters`] syntax node.
crates/ruff_linter/src/checkers/ast/analyze/parameters.rs:8
↓ 1 callersMethodparameters
Returns the package depth and the number of search roots containing packages.
crates/ruff_benchmark/benches/ty_ide.rs:104
↓ 1 callersMethodparameters
Return the [`Parameters`] of the function-like node.
crates/ruff_linter/src/rules/refurb/rules/reimplemented_operator.rs:164
↓ 1 callersFunctionparameters_from_signature
(docstring: &'a Docstring)
crates/ruff_linter/src/rules/pydoclint/rules/check_docstring.rs:1206
↓ 1 callersFunctionparameters_section
(checker: &Checker, docstring: &Docstring, context: &SectionContext)
crates/ruff_linter/src/rules/pydocstyle/rules/sections.rs:2036
↓ 1 callersFunctionparamiko_call
S601
crates/ruff_linter/src/rules/flake8_bandit/rules/paramiko_calls.rs:43
↓ 1 callersMethodparamspec_argument_context
Returns the specialized wrapped-call parameter type for a forwarded argument. The forwarded outer arguments are first projected into a sub-call again
crates/ty_python_semantic/src/types/call/bind.rs:8722
↓ 1 callersMethodparamspec_argument_indices
Returns argument-index mappings for arguments matched to the `ParamSpec` component. `prefix_len` is the number of parameters before the `ParamSpec` c
crates/ty_python_semantic/src/types/call/bind.rs:6181
↓ 1 callersMethodparamspec_call_argument_indices
Returns source argument indices matched to the `ParamSpec` component. The returned indices are relative to the original call site, excluding any synt
crates/ty_python_semantic/src/types/call/bind.rs:8687
↓ 1 callersMethodparamspec_component_binding
Returns the binding referenced by a direct `P.args` or `P.kwargs` variadic parameter. Returns `None` if this signature has no `ParamSpec` component p
crates/ty_python_semantic/src/types/signatures.rs:1093
↓ 1 callersMethodparamspec_component_bindings
Iterates over the `ParamSpec` bindings referenced by direct variadic component annotations. The returned bindings represent `P` itself, with the `arg
crates/ty_python_semantic/src/types/signatures.rs:5743
↓ 1 callersMethodparamspec_parameter_source
Returns the source callable whose parameters supplied a `ParamSpec` specialization. Forwarded arguments are checked against the wrapped callable, not
crates/ty_python_semantic/src/types/call/bind.rs:6213
↓ 1 callersMethodparent
(&self)
crates/ty_python_core/src/member.rs:462
↓ 1 callersFunctionparent_and_next_path_fragment_range
( semantic: &SemanticModel, tokens: &ruff_python_ast::token::Tokens, )
crates/ruff_linter/src/rules/flake8_use_pathlib/rules/path_constructor_current_directory.rs:122
↓ 1 callersMethodparent_expression
(&self, node_id: NodeId)
crates/ruff_python_semantic/src/model.rs:1608
↓ 1 callersMethodparent_scope
Returns the parent of the given [`Scope`], if any.
crates/ruff_python_semantic/src/model.rs:1560
↓ 1 callersMethodparent_scope
Classifies the nearest non-type-parameter parent of a fixture-request function.
crates/ty_python_semantic/src/types/dedicated/pytest/fixtures.rs:476
↓ 1 callersMethodparent_scope_id
Returns the ID of the parent of the given [`ScopeId`], if any.
crates/ruff_python_semantic/src/model.rs:1565
↓ 1 callersMethodparent_table
(self)
crates/ruff_dev/src/generate_ty_options.rs:294
↓ 1 callersFunctionparentheses_iterator
Returns an iterator over the ranges of the optional parentheses surrounding an expression. E.g. for `((f()))` with `f()` as expression, the iterator
crates/ruff_python_ast/src/parenthesize.rs:16
↓ 1 callersFunctionparenthesize
Propagate parentheses from a parent to a child expression, if necessary. For example, when splitting: ```python assert (a and b == """) ``` The pare
crates/ruff_linter/src/rules/flake8_pytest_style/rules/assertion.rs:694
↓ 1 callersFunctionparenthesize
Returns `true` if the expression should be parenthesized when used in an f-string.
crates/ruff_linter/src/rules/pyupgrade/rules/f_strings.rs:143
↓ 1 callersFunctionparenthesize_and_operand
(expr: libcst_native::Expression)
crates/ruff_linter/src/rules/flake8_simplify/rules/collapsible_if.rs:288
↓ 1 callersFunctionparenthesize_chained_logical_operators
RUF021
crates/ruff_linter/src/rules/ruff/rules/parenthesize_chained_operators.rs:55
↓ 1 callersFunctionparse
( short_title: &'s str, source: &'s str, )
crates/ruff_mdtest/src/lib.rs:230
↓ 1 callersMethodparse
(text: &str)
crates/ruff_python_literal/src/format.rs:17
↓ 1 callersMethodparse
(self)
crates/ruff_python_parser/src/string.rs:500
↓ 1 callersMethodparse
(mut self)
crates/mdtest/src/parser.rs:550
↓ 1 callersMethodparse
(mut self)
crates/ty_ide/src/docstring/document/numpy.rs:147
↓ 1 callersMethodparse
Parses comma-separated parameter names, optionally joined by a final conjunction. For example, `"stdin, stdout and stderr"` yields the three individu
crates/ty_ide/src/docstring/document/google.rs:149
↓ 1 callersFunctionparseSecondaryTool
(tool: string)
playground/ruff/src/Editor/Editor.tsx:327
↓ 1 callersFunctionparse_alternate_form
(text: &str)
crates/ruff_python_literal/src/format.rs:302
↓ 1 callersMethodparse_annotated_assignment_statement
Parses an annotated assignment statement. # Panics If the parser isn't positioned at a `:` token. See: <https://docs.python.org/3/reference/simple_
crates/ruff_python_parser/src/parser/statement.rs:1302
← previousnext →12,001–12,100 of 31,562, ranked by callers