MCPcopy Create free account

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

Functions27,807 in github.com/astral-sh/ruff

↓ 22 callersMethodbinding_context
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/typevar.rs:902
↓ 22 callersMethodcomponents
(&self)
crates/ty_module_resolver/src/module_name.rs:82
↓ 22 callersMethodcontains
(self, offset: TextSize)
crates/ruff_text_size/src/range.rs:165
↓ 22 callersMethodcurrent_use_def_map_mut
(&mut self)
crates/ty_python_core/src/builder.rs:1090
↓ 22 callersMethodextend
(&mut self, it: T)
crates/ty_ide/src/completion.rs:264
↓ 22 callersMethodfile
(&self)
crates/ty_python_semantic/src/lint.rs:138
↓ 22 callersMethodin_stub
(&self)
crates/ty_python_semantic/src/types/infer/builder.rs:871
↓ 22 callersMethodinsert
(&mut self, file: File)
crates/ty_project/src/files.rs:221
↓ 22 callersMethodinto_class
(self)
crates/ty_python_semantic/src/types/class_base.rs:335
↓ 22 callersMethodis_unknown
(&self)
crates/ty_python_semantic/src/types.rs:1184
↓ 22 callersMethodkeys
(&self)
crates/ruff_linter/src/linter.rs:83
↓ 22 callersMethodnext
(&mut self)
crates/ruff_python_formatter/src/comments/map.rs:573
↓ 22 callersMethodopenness
Returns whether this `TypedDict` is implicitly open, closed, or has explicit extra items. A class-based `TypedDict` inherits the first explicit polic
crates/ty_python_semantic/src/types/typed_dict.rs:237
↓ 22 callersFunctionpad
Add leading or trailing whitespace to a snippet, if it's immediately preceded or followed by an identifier or keyword.
crates/ruff_linter/src/fix/edits.rs:615
↓ 22 callersMethodpath
(&self)
crates/ruff_db/src/system.rs:333
↓ 22 callersMethodquery
(&self)
crates/ruff_server/src/session.rs:226
↓ 22 callersMethodremove
(self, kind: TokenKind)
crates/ruff_python_parser/src/token_set.rs:24
↓ 22 callersMethodsource
(&self)
crates/ruff_linter/src/rules/isort/settings.rs:204
↓ 22 callersMethodto_owned
(&self)
crates/ruff_index/src/slice.rs:197
↓ 22 callersMethodwith_site_packages_files
Specify files to be created in the `site-packages` mock directory
crates/ty_module_resolver/src/testing.rs:123
↓ 21 callersMethodadd
(&mut self, db: &'db dyn Db, ty: Type<'db>)
crates/ty_python_semantic/src/types/set_theoretic/builder.rs:558
↓ 21 callersMethodas_class
(&self)
crates/ty_python_core/src/scope.rs:404
↓ 21 callersMethodbuild
Build the test server
crates/ruff_server/tests/e2e/main.rs:1127
↓ 21 callersMethodcmp
(&self, other: &Self)
crates/ty_python_semantic/src/types/literal.rs:336
↓ 21 callersMethodcodegen_stylist
(&self, stylist: &'a Stylist)
crates/ruff_linter/src/fix/codemods.rs:28
↓ 21 callersFunctioncontains_effect
Return `true` if the `Expr` contains an expression that appears to include a side-effect (like a function call). Accepts a closure that determines wh
crates/ruff_python_ast/src/helpers.rs:221
↓ 21 callersMethodcontent
Returns the new content for an insertion or deletion.
crates/ruff_diagnostics/src/edit.rs:61
↓ 21 callersMethodget
(&self, index: usize)
crates/ruff_db/src/parsed.rs:484
↓ 21 callersMethodhas_known_class
Returns whether this is a nominal instance of a particular [`KnownClass`].
crates/ty_python_semantic/src/types/instance.rs:269
↓ 21 callersFunctioninfer_same_file_expression_type
Infers the type of an `expression` that is guaranteed to be in the same file as the calling query. This is a small helper around [`infer_expression_t
crates/ty_python_semantic/src/types/infer.rs:417
↓ 21 callersMethodinner
( builder: &mut TypeInferenceBuilder<'db, '_>, subscript: &ast::ExprSubscript,
crates/ty_python_semantic/src/types/infer/builder/type_expression.rs:1869
↓ 21 callersMethodinto_iter
(self)
crates/ty_python_semantic/src/types/infer/builder.rs:11837
↓ 21 callersMethodis_dynamic
(self)
crates/ty_python_semantic/src/types/subclass_of.rs:148
↓ 21 callersMethodis_empty
Returns `true` if there are no fixes in the map.
crates/ruff/src/diagnostics.rs:136
↓ 21 callersMethodis_known
Returns whether this is a known class.
crates/ty_python_semantic/src/types/class.rs:627
↓ 21 callersMethodkeys
(&self)
crates/ty_python_core/src/frozen.rs:25
↓ 21 callersMethodline_column
(&self, offset: TextSize)
crates/ruff_source_file/src/lib.rs:39
↓ 21 callersMethodmember_lookup_with_policy
Similar to [`Type::member`], but allows the caller to specify what policy should be used when looking up attributes. See [`MemberLookupPolicy`] for mo
crates/ty_python_semantic/src/types.rs:3842
↓ 21 callersMethodnext
(&mut self)
crates/ruff_linter/src/rules/flake8_simplify/rules/split_static_string.rs:342
↓ 21 callersFunctionparse_suite
(source: &str)
crates/ruff_linter/src/rules/mccabe/rules/function_is_too_complex.rs:196
↓ 21 callersMethodpreceding_node
Returns the comment's preceding node. The direct child node (ignoring lists) of the [`enclosing_node`](DecoratedComment::enclosing_node) that precede
crates/ruff_python_formatter/src/comments/visitor.rs:255
↓ 21 callersMethodpush
(&mut self, value: T)
crates/ruff_formatter/src/printer/stack.rs:18
↓ 21 callersMethodpush
Pushes the given line as part of this code example.
crates/ruff_python_formatter/src/string/docstring.rs:1235
↓ 21 callersMethodresolve
Returns the re-mapped position or `position` if no mapping exists.
crates/ruff_linter/src/noqa.rs:1305
↓ 21 callersMethodrun
Run the benchmark using `hyperfine`.
scripts/ty_benchmark/src/benchmark/__init__.py:45
↓ 21 callersMethodsend
(&mut self, message: Message)
crates/ty_server/tests/e2e/main.rs:373
↓ 21 callersFunctiontest_contents
A convenient wrapper around [`check_path`], that additionally asserts that fixes converge after a fixed number of iterations.
crates/ruff_linter/src/test.rs:245
↓ 21 callersMethodto_lsp_range
( &self, db: &dyn Db, file: File, encoding: PositionEncoding, )
crates/ty_server/src/document/range.rs:288
↓ 21 callersMethodtop_materialization
Returns the top materialization for this class.
crates/ty_python_semantic/src/types/class.rs:916
↓ 21 callersMethoduri
(&self)
crates/ty_server/src/document/range.rs:78
↓ 21 callersMethodwith_workspace
Add a workspace to the test server with the given root path.
crates/ruff_server/tests/e2e/main.rs:1017
↓ 20 callersMethodbody
(self)
crates/ruff_linter/src/rules/flake8_simplify/rules/collapsible_if.rs:175
↓ 20 callersFunctionbool
()
crates/ruff_linter/resources/test/fixtures/flake8_simplify/SIM210.py:12
↓ 20 callersMethodclass
(&self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/instance.rs:237
↓ 20 callersMethodconcrete_base_type
Walk the `NewTypeBase` chain to find the underlying non-newtype `Type`. There might not be one if this `NewType` is cyclical, and we fall back to `obj
crates/ty_python_semantic/src/types/newtype.rs:104
↓ 20 callersMethoddrain
(&mut self, range: R)
crates/ruff_index/src/vec.rs:42
↓ 20 callersMethodeat_char
(&mut self, c: char)
crates/ruff_python_trivia/src/cursor.rs:91
↓ 20 callersMethodencoding
Returns the position encoding that was negotiated during initialization.
crates/ty_server/src/session.rs:1380
↓ 20 callersMethodexpression_type
( &self, expression: impl Into<ExpressionNodeKey>, )
crates/ty_python_semantic/src/types/infer.rs:222
↓ 20 callersMethodextend_from_slice
(&mut self, segments: &[&'a str])
crates/ruff_python_ast/src/name.rs:477
↓ 20 callersMethodfile_type
(&self)
crates/ruff_db/src/system.rs:292
↓ 20 callersMethodfind_positional
Return the positional argument at the given index, or `None` if no such argument exists.
crates/ruff_python_ast/src/nodes.rs:3564
↓ 20 callersMethodfmt
(&self, expression: &Expr, f: &mut PyFormatter)
crates/ruff_python_formatter/src/expression/mod.rs:76
↓ 20 callersMethodfull_range
(&self, db: &dyn Db)
crates/ty_python_semantic/src/types/definition.rs:42
↓ 20 callersMethodgetLogger
(self)
crates/ruff_linter/resources/test/fixtures/flake8_logging/LOG002.py:20
↓ 20 callersFunctionindentation
( logical_line: &LogicalLine, prev_logical_line: Option<&LogicalLine>, indent_char: char, inde
crates/ruff_linter/src/rules/pycodestyle/rules/logical_lines/indentation.rs:269
↓ 20 callersMethodinterior_node_data
(&self, node: NodeId)
crates/ty_python_semantic/src/types/constraints.rs:1312
↓ 20 callersMethodis_trivia
(&self)
crates/ruff_python_ast/src/token.rs:437
↓ 20 callersMethoditer
Returns an iterator over the fixes in the map, along with the file path.
crates/ruff/src/diagnostics.rs:141
↓ 20 callersMethoditer_mut
( &mut self, )
crates/ty_python_core/src/frozen.rs:18
↓ 20 callersMethodkind
(&self)
crates/ty_ide/src/lib.rs:211
↓ 20 callersMethodline_start
(&self, line: OneIndexed)
crates/ruff_source_file/src/lib.rs:75
↓ 20 callersMethodload
Loads a reference to the parsed module. Note that holding on to the reference will prevent garbage collection of the AST. This method will reparse th
crates/ruff_db/src/parsed.rs:130
↓ 20 callersMethodmatching_overloads
Returns an iterator over all the overloads that matched for this call binding.
crates/ty_python_semantic/src/types/call/bind.rs:4141
↓ 20 callersMethodprefix_elements
(&self)
crates/ty_python_semantic/src/types/tuple.rs:1084
↓ 20 callersMethodpush
Pushes a new [`Binding`] and returns its [`BindingId`].
crates/ruff_python_semantic/src/binding.rs:466
↓ 20 callersMethodpush
(&mut self, bindings: &Bindings)
crates/ty_python_core/src/use_def.rs:465
↓ 20 callersMethodpush
(&mut self, constraint: ConstraintAssignment)
crates/ty_python_semantic/src/types/constraints.rs:7285
↓ 20 callersMethodrange
(&self)
crates/ruff_linter/src/rules/pydoclint/rules/check_docstring.rs:486
↓ 20 callersFunctionremove_argument
Generic function to remove arguments or keyword arguments in function calls and class definitions. (For classes, `args` should be considered `bases`.)
crates/ruff_linter/src/fix/edits.rs:208
↓ 20 callersMethodto_instance
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types.rs:6052
↓ 20 callersMethodtrailing
(&self, node: T)
crates/ruff_python_formatter/src/comments/mod.rs:310
↓ 20 callersMethodwith_file
( mut self, path: &'a (impl AsRef<SystemPath> + ?Sized), content: &'a str,
crates/ty_python_semantic/src/db.rs:220
↓ 19 callersMethodancestor_ids
Returns an iterator over all [`NodeId`] ancestors, starting from the given [`NodeId`].
crates/ruff_python_semantic/src/nodes.rs:63
↓ 19 callersMethodapply_specialization
( self, db: &'db dyn Db, f: impl FnOnce(GenericContext<'db>) -> Specialization<'db>,
crates/ty_python_semantic/src/types/class/static_literal.rs:430
↓ 19 callersMethodas_str
(&self)
crates/ruff_db/src/diagnostic/mod.rs:956
↓ 19 callersMethodas_str
(self)
crates/ruff_linter/src/rules/pyupgrade/rules/pep695/private_type_parameter.rs:81
↓ 19 callersMethodbump
Consumes the next character
crates/ruff_python_trivia/src/cursor.rs:82
↓ 19 callersMethodbytes
Returns an iterator over the bytes of the concatenated bytestring.
crates/ruff_python_ast/src/nodes.rs:1886
↓ 19 callersMethodclose
Closes the virtual file.
crates/ruff_db/src/files.rs:636
↓ 19 callersFunctioncreate_dir
Helper function to create a directory and all parent directories
crates/ruff_linter/src/rules/isort/categorize.rs:462
↓ 19 callersMethodcurrent_statements
Returns an [`Iterator`] over the current statement hierarchy, from the current [`Stmt`] through to any parents.
crates/ruff_python_semantic/src/model.rs:1466
↓ 19 callersMethodfile_name
(&self)
crates/ty_project/src/watch.rs:73
↓ 19 callersMethodfinish
(self)
crates/ruff_python_formatter/src/comments/visitor.rs:613
↓ 19 callersMethodfinish
(&mut self)
crates/ruff_db/src/display.rs:49
↓ 19 callersMethodfollowing_node
Returns the node following the comment. The direct child node (ignoring lists) of the [`enclosing_node`](DecoratedComment::enclosing_node) that follo
crates/ruff_python_formatter/src/comments/visitor.rs:313
↓ 19 callersFunctionindentation_at_offset
Extract the leading indentation from a line.
crates/ruff_python_trivia/src/whitespace.rs:49
↓ 19 callersFunctioninfer_definition_types
( db: &'db dyn Db, definition: Definition<'db>, )
crates/ty_python_semantic/src/types/infer.rs:133
↓ 19 callersMethodis_ascii
Returns `true` if the text only consists of ASCII characters
crates/ruff_source_file/src/line_index.rs:227
↓ 19 callersMethodis_empty
(&self, snapshot: &ScratchSnapshot)
crates/ruff_python_parser/src/parser/scratch_buffer.rs:29
← previousnext →601–700 of 27,807, ranked by callers