MCPcopy Create free account

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

Functions29,290 in github.com/astral-sh/ruff

↓ 29 callersMethodadd_positive
(mut self, ty: Type<'db>)
crates/ty_python_semantic/src/types/set_theoretic/builder.rs:1237
↓ 29 callersMethodarg
Adds an argument to the command.
crates/ruff_db/src/system/command.rs:24
↓ 29 callersMethodas_str
(self)
crates/ty_site_packages/src/lib.rs:435
↓ 29 callersFunctionassert_parameter_documentation
(raw: &str, expected: &[(&str, &str)])
crates/ty_ide/src/docstring/document/google.rs:1640
↓ 29 callersMethodborrow
(&self)
crates/ruff_index/src/vec.rs:111
↓ 29 callersMethodchecked_sub
(self, rhs: TextSize)
crates/ruff_text_size/src/size.rs:106
↓ 29 callersMethodcurrent_scope
(&self)
crates/ty_python_core/src/builder.rs:378
↓ 29 callersMethodid
(&self)
crates/ty_python_semantic/src/suppression.rs:483
↓ 29 callersMethodis_empty
(&self)
crates/ty_site_packages/src/lib.rs:93
↓ 29 callersMethodis_known
Return `true` if this class represents `known_class`
crates/ty_python_semantic/src/types/class/static_literal.rs:216
↓ 29 callersMethodlast_mut
(&mut self)
crates/ruff_index/src/slice.rs:54
↓ 29 callersMethodline_start
Compute the start position of the docstring's opening line
crates/ruff_linter/src/docstrings/mod.rs:40
↓ 29 callersFunctionmap_callable
Given an [`Expr`] that can be callable or not (like a decorator, which could be used with or without explicit call syntax), return the underlying call
crates/ruff_python_ast/src/helpers.rs:896
↓ 29 callersMethodopen
(self, server: &mut TestServer)
crates/ty_server/tests/e2e/notebook.rs:675
↓ 29 callersFunctionprogram_file
(db: &TestDb, file: File)
crates/ty_python_core/src/lib.rs:1129
↓ 29 callersMethodreference
(&self, id: ResolvedReferenceId)
crates/ruff_python_semantic/src/model.rs:236
↓ 29 callersMethodsleep
(x, cls, z)
crates/ruff_linter/resources/test/fixtures/pylint/bad_staticmethod_argument.py:36
↓ 29 callersFunctiontest_case
(content: &str)
crates/ty_python_core/src/lib.rs:1116
↓ 29 callersMethodto_comments
(&self)
crates/ruff_python_formatter/src/comments/mod.rs:531
↓ 29 callersFunctiontoken
(text: &'static str)
crates/ruff_formatter/src/builders.rs:254
↓ 29 callersFunctiontokenize
(source: &'static str)
crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs:45
↓ 29 callersMethodtokens
Returns the token stream for `path` serialized as a string.
crates/ty_wasm/src/lib.rs:311
↓ 28 callersFunctionPython
({ height = 24, width = 24, }: { height?: number; width?: number; })
playground/shared/src/Icons.tsx:209
↓ 28 callersMethodas_attribute_expr
(&self)
crates/ruff_python_ast/src/generated.rs:2569
↓ 28 callersMethodbinding_context
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/typevar.rs:1026
↓ 28 callersMethodclear
Clears state such that this group is indistinguishable from an empty group.
crates/ty_ide/src/all_symbols.rs:375
↓ 28 callersMethodcontains_line_break
(&self, range: TextRange)
crates/ruff_linter/src/locator.rs:177
↓ 28 callersMethodenter_node
(&mut self, _node: AnyNodeRef<'a>)
crates/ruff_python_ast/src/visitor/source_order.rs:15
↓ 28 callersMethodentry
( &'a mut self, members: &IndexVec<ScopedMemberId, Member>, member: &Member, )
crates/ty_python_core/src/member.rs:511
↓ 28 callersMethodexact_tuple_instance_spec
If this type is an *exact* tuple type (*not* a subclass of `tuple`), returns the tuple spec. You usually don't want to use this method, as you usuall
crates/ty_python_semantic/src/types.rs:2301
↓ 28 callersFunctionexit
(e)
crates/ruff_linter/resources/test/fixtures/pylint/sys_exit_alias_6.py:5
↓ 28 callersFunctionfrom_tokens
( context: &LintContext, path: &Path, locator: &Locator, comment_ranges: &CommentRanges, )
crates/ruff_linter/src/rules/flake8_executable/rules/mod.rs:21
↓ 28 callersMethodinfer_type_expression
Infer the type of a type expression.
crates/ty_python_semantic/src/types/infer/builder/type_expression.rs:43
↓ 28 callersMethodinferred_type
(&self, model: &SemanticModel<'db>)
crates/ty_python_semantic/src/semantic_model.rs:798
↓ 28 callersMethodinsert
(&mut self, file: File)
crates/ty_project/src/files.rs:221
↓ 28 callersMethodinterface
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/instance.rs:1529
↓ 28 callersMethodleave_node
(&mut self, _node: AnyNodeRef<'a>)
crates/ruff_python_ast/src/visitor/source_order.rs:20
↓ 28 callersMethodnode
(self, db: &'db dyn Db)
crates/ty_python_core/src/scope.rs:42
↓ 28 callersMethodresolver_environment
(&self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/context.rs:111
↓ 28 callersMethodsignature_help
(&self)
crates/ty_ide/src/signature_help.rs:1555
↓ 28 callersMethodstarts_with
(&self, other: &QualifiedName<'_>)
crates/ruff_python_ast/src/name.rs:377
↓ 28 callersMethodstore_expression_type
(&mut self, expression: &ast::Expr, ty: Type<'db>)
crates/ty_python_semantic/src/types/infer/builder.rs:6743
↓ 28 callersFunctionwalk_stmt
(checker: &Checker, body: &[Stmt], f: fn(&Stmt) -> bool)
crates/ruff_linter/src/rules/flake8_bugbear/rules/jump_statement_in_finally.rs:58
↓ 27 callersMethodafter
(&self, offset: TextSize)
crates/ruff_linter/src/locator.rs:53
↓ 27 callersFunctionany_over_expr
Call `func` over every `Expr` in `expr`, returning `true` if any expression returns `true`..
crates/ruff_python_ast/src/helpers.rs:258
↓ 27 callersFunctionany_over_type
Return `true` if `ty`, or any of the types contained in `ty`, match the closure passed in. The function guards against infinite recursion by keeping
crates/ty_python_semantic/src/types/visitor.rs:713
↓ 27 callersMethodextend
(&mut self, segments: impl IntoIterator<Item = &'a str>)
crates/ruff_python_ast/src/name.rs:472
↓ 27 callersMethodget
(&self, index: I)
crates/ruff_index/src/slice.rs:111
↓ 27 callersMethodlen
(&self)
crates/ty_python_core/src/rank.rs:68
↓ 27 callersMethodnominal_class
If this type is a class instance, returns its class.
crates/ty_python_semantic/src/types.rs:2203
↓ 27 callersMethodor_default
(self, code: Option<&SecondaryCode>)
crates/ruff_linter/src/linter.rs:100
↓ 27 callersMethodprogram_file
(&self)
crates/ty_python_semantic/src/types/infer/builder.rs:792
↓ 27 callersMethodsubclass_of
Return the inner [`SubclassOfInner`] value wrapped by this `SubclassOfType`.
crates/ty_python_semantic/src/types/subclass_of.rs:140
↓ 27 callersMethodto_class_type
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/tuple.rs:269
↓ 27 callersMethodvalues
(&self)
crates/ty_python_core/src/frozen.rs:29
↓ 27 callersMethodwith_python_version
(mut self, python_version: PythonVersion)
crates/ty_module_resolver/src/db.rs:59
↓ 27 callersMethodwith_workspace
Add a workspace to the test server with the given root path.
crates/ruff_server/tests/e2e/main.rs:1016
↓ 26 callersMethodadd_in_place
Adds a type to this union.
crates/ty_python_semantic/src/types/set_theoretic/builder.rs:650
↓ 26 callersFunctionall
(exp)
crates/ruff_linter/resources/test/fixtures/flake8_simplify/SIM111.py:131
↓ 26 callersMethodancestors
Returns an iterator of this module name and all of its parent modules. # Examples ``` use ty_module_resolver::ModuleName; assert_eq!( ModuleName::n
crates/ty_module_resolver/src/module_name.rs:302
↓ 26 callersFunctioncollect_unused_names
(source: &str)
crates/ty_python_semantic/src/types/ide_support/unused_bindings.rs:264
↓ 26 callersFunctioncreate_constraint
( db: &'db TestDb, builder: &'c ConstraintSetBuilder<'db>, bound_typevar: BoundTypeVar
crates/ty_python_semantic/src/types/constraints.rs:5425
↓ 26 callersMethodcurrent_dir
Sets the working directory for the command.
crates/ruff_db/src/system/command.rs:40
↓ 26 callersMethodcurrent_use_def_map_mut
(&mut self)
crates/ty_python_core/src/builder.rs:1090
↓ 26 callersMethodenclosing_node
The closest parent node that fully encloses the comment. A node encloses a comment when the comment is between two of its direct children (ignoring l
crates/ruff_python_formatter/src/comments/visitor.rs:206
↓ 26 callersMethodentry
(&mut self, item: &dyn Display)
crates/ruff_db/src/display.rs:26
↓ 26 callersMethodentry
(&mut self, id: DiagnosticId)
crates/ruff_linter/src/linter.rs:74
↓ 26 callersMethodexception
(self)
crates/ruff_linter/resources/test/fixtures/mccabe/C901.py:135
↓ 26 callersMethodfull_display
Return the full snippet for user-facing display, or `None` if the snippet should be truncated.
crates/ruff_linter/src/fix/snippet.rs:18
↓ 26 callersMethodfunction
(self)
crates/ty_python_semantic/src/types/enums.rs:94
↓ 26 callersMethodinner_type
Forget about type qualifiers and only return the inner type.
crates/ty_python_semantic/src/types.rs:9955
↓ 26 callersMethodinto_iter
(self)
crates/ruff_python_ast/src/token/tokens.rs:233
↓ 26 callersMethodis_expression_parenthesized
(&self, expression: ExprRef)
crates/ruff_python_formatter/src/context.rs:89
↓ 26 callersMethodis_object
Return `true` if this class represents the builtin class `object`
crates/ty_python_semantic/src/types/class.rs:1303
↓ 26 callersFunctionnew_tokens
Helper function to create [`Tokens`] from an iterator of (kind, range).
crates/ruff_python_ast/src/token/tokens.rs:439
↓ 26 callersMethodnext
Advances the cursor and returns the next line.
crates/ty_ide/src/docstring/document/rst.rs:93
↓ 26 callersMethodnode
(self)
crates/ty_python_semantic/src/types/constraints.rs:2867
↓ 26 callersMethodprogram_file
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/class/static_literal.rs:520
↓ 26 callersMethodresolve
Returns the re-mapped position or `position` if no mapping exists.
crates/ruff_linter/src/noqa.rs:1326
↓ 26 callersMethodtests
(&self)
crates/mdtest/src/parser.rs:50
↓ 26 callersMethodtop_materialization
Returns the top materialization for this class.
crates/ty_python_semantic/src/types/class.rs:1047
↓ 26 callersMethodvalue
Return the numeric value for this [`LineWidth`]
crates/ruff_formatter/src/lib.rs:111
↓ 25 callersMethodannotation
(&self)
crates/ruff_python_ast/src/nodes.rs:2845
↓ 25 callersMethodas_class
(&self)
crates/ty_python_core/src/scope.rs:416
↓ 25 callersMethodassert_indexed_project_files
(&self, expected: impl IntoIterator<Item = File>)
crates/ty/tests/file_watching.rs:219
↓ 25 callersMethodbindings
(&self)
crates/ty_python_semantic/src/types/infer.rs:257
↓ 25 callersMethodcurrent_expression_parent
Return the parent [`Expr`] of the current [`Expr`], if any.
crates/ruff_python_semantic/src/model.rs:1500
↓ 25 callersMethodfull_line_end
(&self, offset: TextSize)
crates/ruff_linter/src/locator.rs:157
↓ 25 callersMethodget
(&self, index: usize)
crates/ruff_db/src/parsed.rs:496
↓ 25 callersMethodget
( &self, expression: ExpressionNodeKey, tcx: TypeContext<'db>, )
crates/ty_python_semantic/src/types/infer/builder.rs:11853
↓ 25 callersMethodis_dynamic
(self)
crates/ty_python_semantic/src/types/subclass_of.rs:164
↓ 25 callersMethodor
(self, other: Self)
crates/ty_python_semantic/src/types/dedicated/pydantic.rs:455
↓ 25 callersMethodpath
(&self)
crates/ty_project/src/uv/sync.rs:223
↓ 25 callersMethodrange
(&self)
crates/ruff_linter/src/rules/pyflakes/rules/unused_import.rs:558
↓ 25 callersMethodrun
Run the benchmark using `hyperfine`.
scripts/ty_benchmark/src/benchmark/__init__.py:49
↓ 25 callersMethodsend
(&mut self, message: Message)
crates/ty_server/tests/e2e/main.rs:376
↓ 25 callersMethodsort
(&mut self)
crates/ruff_linter/src/rules/ruff/rules/invalid_formatter_suppression_comment.rs:203
↓ 25 callersFunctionsum
()
crates/ruff_text_size/tests/main.rs:15
↓ 25 callersMethodvisit_body
(&mut self, body: &[ruff_python_ast::Stmt])
crates/ruff_linter/src/rules/numpy/helpers.rs:42
↓ 25 callersMethodvisit_node
(&mut self, node: &'ast T)
crates/ruff_db/src/parsed.rs:630
← previousnext →501–600 of 29,290, ranked by callers