MCPcopy Create free account

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

Functions28,410 in github.com/astral-sh/ruff

↓ 28 callersMethodstore_expression_type
(&mut self, expression: &ast::Expr, ty: Type<'db>)
crates/ty_python_semantic/src/types/infer/builder.rs:6334
↓ 28 callersMethodtokens
Returns the token stream for `path` serialized as a string.
crates/ty_wasm/src/lib.rs:303
↓ 28 callersFunctionwalk_stmt
(checker: &Checker, body: &[Stmt], f: fn(&Stmt) -> bool)
crates/ruff_linter/src/rules/flake8_bugbear/rules/jump_statement_in_finally.rs:57
↓ 27 callersMethodafter
(&self, offset: TextSize)
crates/ruff_linter/src/locator.rs:64
↓ 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 callersMethodas_attribute_expr
(&self)
crates/ruff_python_ast/src/generated.rs:2569
↓ 27 callersMethodas_static
Returns the static class definition if this is one.
crates/ty_python_semantic/src/types/class.rs:776
↓ 27 callersMethodas_str
(self)
crates/ty_site_packages/src/lib.rs:430
↓ 27 callersMethodbuild
Build the test server
crates/ruff_server/tests/e2e/main.rs:1127
↓ 27 callersMethodenable_pull_diagnostics
Enable or disable pull diagnostics capability
crates/ty_server/tests/e2e/main.rs:1259
↓ 27 callersMethodentry
(&mut self, item: &dyn Display)
crates/ruff_db/src/display.rs:26
↓ 27 callersMethodentry
(&'a mut self, code: &'a SecondaryCode)
crates/ruff_linter/src/linter.rs:73
↓ 27 callersMethodget
(&self, index: I)
crates/ruff_index/src/slice.rs:111
↓ 27 callersMethodid
(&self)
crates/ty_python_semantic/src/suppression.rs:482
↓ 27 callersMethodis_empty
(&self)
crates/ty_python_semantic/src/types/set_theoretic/builder.rs:628
↓ 27 callersMethodis_known
Return `true` if this class represents `known_class`
crates/ty_python_semantic/src/types/class/static_literal.rs:194
↓ 27 callersMethodmodule
The module for which the types are inferred.
crates/ty_python_semantic/src/types/context.rs:74
↓ 27 callersMethodplace
(&self, place_id: impl Into<ScopedPlaceId>)
crates/ty_python_core/src/place.rs:263
↓ 27 callersMethodvalues
(&self)
crates/ty_python_core/src/frozen.rs:29
↓ 26 callersMethodadd
(self, delta: u32)
crates/ty_python_semantic/src/types/typevar.rs:759
↓ 26 callersFunctionall
(exp)
crates/ruff_linter/resources/test/fixtures/flake8_simplify/SIM111.py:131
↓ 26 callersFunctioncollect_unused_names
(source: &str)
crates/ty_python_semantic/src/types/ide_support/unused_bindings.rs:264
↓ 26 callersMethodcontains_line_break
(&self, range: TextRange)
crates/ruff_linter/src/locator.rs:200
↓ 26 callersMethoddefinition
Returns the definition where this `TypedDict` is created, if it was assigned to a variable.
crates/ty_python_semantic/src/types/class/typed_dict.rs:857
↓ 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 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 callersMethodinner_type
Forget about type qualifiers and only return the inner type.
crates/ty_python_semantic/src/types.rs:8186
↓ 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 callersMethodmetadata
(&self, path: impl AsRef<VendoredPath>)
crates/ruff_db/src/vendored.rs:74
↓ 26 callersFunctionnew_tokens
Helper function to create [`Tokens`] from an iterator of (kind, range).
crates/ruff_python_ast/src/token/tokens.rs:439
↓ 26 callersMethodopen
Open or create a new cache. `package_root` is the path to root of the package that is contained within this cache and must be canonicalized (to avoid
crates/ruff/src/cache.rs:94
↓ 26 callersMethodtests
(&self)
crates/mdtest/src/parser.rs:50
↓ 26 callersMethodwith_python_version
(mut self, python_version: PythonVersion)
crates/ty_module_resolver/src/db.rs:64
↓ 26 callersMethodwith_workspace
Add a workspace to the test server with the given root path.
crates/ruff_server/tests/e2e/main.rs:1017
↓ 26 callersMethodwrite_dedented
Writes auto-dedented text to a file.
crates/ruff_db/src/system/test.rs:254
↓ 25 callersMethodannotation
(&self)
crates/ruff_python_ast/src/nodes.rs:2823
↓ 25 callersMethodassert_indexed_project_files
(&self, expected: impl IntoIterator<Item = File>)
crates/ty/tests/file_watching.rs:207
↓ 25 callersMethodcurrent_expression_parent
Return the parent [`Expr`] of the current [`Expr`], if any.
crates/ruff_python_semantic/src/model.rs:1500
↓ 25 callersMethodeat_while
Eats symbols while predicate returns true or until the end of file is reached.
crates/ruff_python_trivia/src/cursor.rs:147
↓ 25 callersMethodfull_line_end
(&self, offset: TextSize)
crates/ruff_linter/src/locator.rs:180
↓ 25 callersMethodget
( &self, expression: ExpressionNodeKey, tcx: TypeContext<'db>, )
crates/ty_python_semantic/src/types/infer/builder.rs:11392
↓ 25 callersMethodgetLogger
(self)
crates/ruff_linter/resources/test/fixtures/flake8_logging/LOG002.py:20
↓ 25 callersMethodlen
(&self)
crates/ty_python_core/src/rank.rs:68
↓ 25 callersMethodrange
(&self)
crates/ruff_python_parser/src/parser/expression.rs:3187
↓ 25 callersMethodrange
(&self)
crates/ruff_linter/src/rules/pyflakes/rules/unused_import.rs:551
↓ 25 callersMethodsort
(&mut self)
crates/ruff_linter/src/rules/ruff/rules/invalid_formatter_suppression_comment.rs:202
↓ 25 callersMethodto_class_type
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/tuple.rs:247
↓ 25 callersMethodvalue
Return the numeric value for this [`LineWidth`]
crates/ruff_formatter/src/lib.rs:111
↓ 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:610
↓ 24 callersMethodas_class_literal
(self)
crates/ty_python_semantic/src/types.rs:1626
↓ 24 callersMethodas_str
Returns the python code as a `str`.
crates/ruff_db/src/source.rs:75
↓ 24 callersFunctionbinding_type
Infer the type of a binding.
crates/ty_python_semantic/src/types.rs:218
↓ 24 callersMethodbindings
( &self, )
crates/ty_python_semantic/src/types/infer.rs:235
↓ 24 callersMethodborrow
(&self)
crates/ruff_index/src/vec.rs:111
↓ 24 callersMethodchecked_sub
(self, rhs: TextSize)
crates/ruff_text_size/src/size.rs:106
↓ 24 callersMethodcontext
Returns the context used during formatting.
crates/ruff_formatter/src/lib.rs:305
↓ 24 callersFunctioncreate_constraint
( db: &'db dyn Db, builder: &'c ConstraintSetBuilder<'db>, bound_typevar: BoundTypeVar
crates/ty_python_semantic/src/types/constraints.rs:7689
↓ 24 callersMethodfile_name
(&self)
crates/ruff_db/src/system/path.rs:265
↓ 24 callersMethodfiles
(&self)
crates/mdtest/src/parser.rs:147
↓ 24 callersFunctionfmt
(old: int, new: int, *, greater_is_better: bool = True)
scripts/conformance.py:749
↓ 24 callersMethodinterface
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/instance.rs:1317
↓ 24 callersMethodinto_iter
(self)
crates/ruff_linter/src/rules/flake8_tidy_imports/rules/banned_module_level_imports.rs:116
↓ 24 callersMethodis_directory
(&self, resolver: &ResolverContext)
crates/ty_module_resolver/src/path.rs:91
↓ 24 callersMethodis_end_of_line
(self)
crates/ruff_python_trivia/src/comments.rs:101
↓ 24 callersMethodis_match
(&self, banned_module: &str)
crates/ruff_linter/src/rules/flake8_tidy_imports/matchers.rs:10
↓ 24 callersMethodisolate
(mut self, isolation: IsolationLevel)
crates/ruff_diagnostics/src/fix.rs:168
↓ 24 callersMethoditer_mro
Iterate over the [method resolution order] ("MRO") of the class. If the MRO could not be accurately resolved, this method falls back to iterating ove
crates/ty_python_semantic/src/types/class/static_literal.rs:768
↓ 24 callersMethodlen_utf8
(self)
crates/ty_python_semantic/src/suppression.rs:498
↓ 24 callersMethodoptions
(&self)
crates/ruff_python_formatter/src/context.rs:134
↓ 24 callersMethodreferences
( self, semantic: &'a SemanticModel<'a>, )
crates/ruff_linter/src/rules/flake8_pyi/rules/custom_type_var_for_self.rs:486
↓ 24 callersMethodskip_builtins
When set, builtins from completions are skipped. This is useful in tests to reduce noise for scope based completions. Not enabled by default.
crates/ty_ide/src/completion.rs:10837
↓ 24 callersMethodskip_keywords
When set, keywords from completions are skipped. This is useful in tests to reduce noise for scope based completions. Not enabled by default. Note t
crates/ty_ide/src/completion.rs:10852
↓ 24 callersMethodsource
(&self)
crates/ruff_linter/src/rules/flake8_pytest_style/settings.rs:110
↓ 24 callersMethodspan
Conveniently create a `Span` that points into a file in this environment. The path given must have been added via `TestEnvironment::add`. The offset
crates/ruff_db/src/diagnostic/render.rs:2642
↓ 24 callersMethodsubclass_of
Return the inner [`SubclassOfInner`] value wrapped by this `SubclassOfType`.
crates/ty_python_semantic/src/types/subclass_of.rs:125
↓ 24 callersFunctionsum
()
crates/ruff_text_size/tests/main.rs:15
↓ 24 callersMethodto_instance_approximation
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types.rs:5963
↓ 24 callersMethodto_owned
(&self)
crates/ruff_index/src/slice.rs:197
↓ 24 callersMethodtop_materialization
Returns the top materialization for this class.
crates/ty_python_semantic/src/types/class.rs:916
↓ 24 callersMethodvisit_type
(&self, db: &'db dyn Db, ty: Type<'db>)
crates/ty_python_semantic/src/types/cyclic.rs:173
↓ 24 callersMethodwrite_file
(&self, path: impl AsRef<Path>, content: &str)
crates/ty/tests/cli/main.rs:948
↓ 23 callersMethodadd_unsupported_syntax_error
Add an [`UnsupportedSyntaxError`] with the given [`UnsupportedSyntaxErrorKind`] and [`TextRange`] if its minimum version is less than [`Parser::target
crates/ruff_python_parser/src/parser/mod.rs:691
↓ 23 callersMethodalways
(&self)
crates/ty_python_semantic/src/types/relation.rs:951
↓ 23 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:543
↓ 23 callersMethodas_class
(&self)
crates/ty_python_core/src/scope.rs:404
↓ 23 callersMethodas_tuple_expr
(&self)
crates/ruff_python_ast/src/generated.rs:2754
↓ 23 callersMethodclear
Clears state such that this group is indistinguishable from an empty group.
crates/ty_ide/src/all_symbols.rs:377
↓ 23 callersMethodcontains
Return `true` if the given version is required.
crates/ruff_linter/src/settings/types.rs:661
↓ 23 callersMethoddefault_type
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/typevar.rs:304
↓ 23 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:1572
↓ 23 callersMethodextend
(&mut self, it: T)
crates/ty_ide/src/completion.rs:264
↓ 23 callersMethodfile
(&self)
crates/ty_python_semantic/src/lint.rs:138
↓ 23 callersFunctionfoo
()
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B031.py:188
↓ 23 callersMethodinfo
(self, message)
crates/ruff_linter/resources/test/fixtures/mccabe/C901.py:132
↓ 23 callersMethodinner
( builder: &mut TypeInferenceBuilder<'db, '_>, subscript: &ast::ExprSubscript,
crates/ty_python_semantic/src/types/infer/builder/type_expression.rs:1887
↓ 23 callersMethodinsert
Inserts a new AST node into the tree and returns its unique ID.
crates/ruff_python_semantic/src/nodes.rs:37
↓ 23 callersMethodis_empty
(&self)
crates/ruff_python_ast/src/name.rs:457
← previousnext →501–600 of 28,410, ranked by callers