MCPcopy Create free account

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

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

↓ 50 callersMethodmax
(self, other: Self)
crates/ty_python_semantic/src/place.rs:47
↓ 50 callersFunctionsetup
(setup_files: F)
crates/ty/tests/file_watching.rs:395
↓ 49 callersMethodcontains
(&self, key: &K)
crates/ty_python_core/src/frozen.rs:259
↓ 49 callersFunctioncreate_typevar
(db: &'db TestDb, name: &'static str)
crates/ty_python_semantic/src/types/constraints.rs:5416
↓ 49 callersMethodexpect_single_definition
( &self, definition_key: impl Into<DefinitionNodeKey> + std::fmt::Debug + Copy, )
crates/ty_python_core/src/lib.rs:621
↓ 49 callersMethodfile
Returns the file containing the class definition.
crates/ty_python_semantic/src/types/class.rs:831
↓ 49 callersMethodget
Get the symbol info for the symbol identified by the given ID. Returns `None` when the given ID does not reference a symbol in this collection.
crates/ty_ide/src/symbols.rs:131
↓ 49 callersMethodis_empty
Returns `true` if the module imports are empty.
crates/ruff_graph/src/lib.rs:77
↓ 49 callersMethodis_starred_expr
(&self)
crates/ruff_python_ast/src/generated.rs:2614
↓ 49 callersMethodmessage
A text [`Element`][crate::Element] in a [`Group`][crate::Group] <div class="warning"> Text passed to this function is allowed to be styled, as such
crates/ruff_annotate_snippets/src/level.rs:124
↓ 49 callersMethodpath
(&self)
crates/ty_wasm/src/lib.rs:871
↓ 49 callersFunctionwalk_expr
(visitor: &mut V, expr: &'a Expr)
crates/ruff_python_ast/src/visitor.rs:362
↓ 48 callersMethodextend
Extend the module imports with additional file paths.
crates/ruff_graph/src/lib.rs:72
↓ 47 callersMethodmap
(self, f: &F)
crates/ty_python_semantic/src/types/call/bind.rs:412
↓ 47 callersMethodmodule
(&self)
crates/ty_python_semantic/src/types/infer/builder.rs:801
↓ 47 callersMethodname
(self)
crates/ty_python_semantic/src/types/class.rs:335
↓ 46 callersMethodadd
(&mut self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, ty: Type<'db>)
crates/ty_python_semantic/src/types/set_theoretic/builder.rs:529
↓ 46 callersFunctioncall
(checker: &Checker, func: &Expr)
crates/ruff_linter/src/rules/pandas_vet/rules/call.rs:170
↓ 46 callersMethoddangling
Returns the [dangling comments](self#dangling-comments) of `node`
crates/ruff_python_formatter/src/comments/mod.rs:299
↓ 46 callersMethodidentifier
Returns the identifier of the command.
crates/ruff_server/src/server.rs:339
↓ 46 callersMethodignore_possibly_undefined
Returns the inner type, unless it is definitely undefined.
crates/ty_python_semantic/src/types/member.rs:41
↓ 46 callersMethodinto_iter
(self)
crates/ty_python_semantic/src/types/call/bind.rs:4686
↓ 46 callersMethoditems
Bug in Clippy? Sizeof Arguments is 16
crates/ruff_formatter/src/arguments.rs:65
↓ 46 callersMethoditer
Returns an iterator of all of the typevars in this support.
crates/ty_python_semantic/src/types/constraints/support.rs:44
↓ 46 callersMethodkind
(&self)
crates/ruff_linter/src/rules/pycodestyle/rules/logical_lines/mod.rs:280
↓ 46 callersMethodline_position
(&self)
crates/ruff_python_formatter/src/comments/mod.rs:141
↓ 46 callersFunctionparse
Parse the Markdown `source` as a test suite with given `title`. `validate_config` is invoked once for every literally-declared `toml` config block (a
crates/mdtest/src/parser.rs:25
↓ 46 callersMethodposition
(&self)
crates/ruff_linter/src/noqa.rs:699
↓ 45 callersMethodappend
(self, x)
crates/ruff_linter/resources/test/fixtures/refurb/FURB113.py:15
↓ 45 callersFunctionempty
()
crates/ty_python_semantic/src/types/signatures.rs:6073
↓ 45 callersMethodget_mut
(&mut self, index: I)
crates/ruff_index/src/slice.rs:116
↓ 45 callersMethodget_or_import_symbol
Generate an [`Edit`] to reference the given symbol. Returns the [`Edit`] necessary to make the symbol available in the current scope along with the bo
crates/ruff_linter/src/importer/mod.rs:281
↓ 45 callersMethodproject_path
(&self, relative: impl AsRef<SystemPath>)
crates/ty/tests/file_watching.rs:48
↓ 45 callersMethodpython_file
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/class/static_literal.rs:516
↓ 45 callersMethodskip_trivia
(self)
crates/ruff_python_trivia/src/tokenizer.rs:793
↓ 45 callersMethodspecialization
(specialization: Specialization<'db>)
crates/ty_python_semantic/src/types/generics.rs:2251
↓ 45 callersMethodsplit_at
Returns a pair of token slices from both before and after the given [`TextSize`] offset. If the given offset is between two tokens, the "before" slic
crates/ruff_python_ast/src/token/tokens.rs:204
↓ 45 callersMethodwrite_file
( &mut self, path: impl AsRef<SystemPath>, content: &str, )
crates/ty_ide/src/lib.rs:447
↓ 44 callersMethodcheck
(&self, contents: &str)
crates/ruff_wasm/src/lib.rs:342
↓ 44 callersFunctioncreate_dir_all
( paths: &mut RwLockWriteGuard<BTreeMap<Utf8PathBuf, Entry>>, normalized: &Utf8Path, )
crates/ruff_db/src/system/memory_fs.rs:479
↓ 44 callersMethodformat
(&self, contents: &str)
crates/ruff_wasm/src/lib.rs:483
↓ 44 callersFunctionget_result
( source: &str, expected_diagnostics: Vec<ExpectedDiagnostic>, )
crates/mdtest/src/matcher.rs:573
↓ 44 callersMethoditer
(self)
crates/ty_python_semantic/src/types/class/typed_dict.rs:116
↓ 44 callersMethodorigin
()
crates/ty_python_semantic/src/types/constraints/paths.rs:99
↓ 44 callersMethodtypes
Returns the types in constraints that are still reachable from the decision diagram. Source ordering also retains quantified-away constraints to pres
crates/ty_python_semantic/src/types/constraints.rs:329
↓ 44 callersMethodwith_annotated_type
Set the annotated type for this parameter. This also marks the annotation as explicit (not inferred), so it will be displayed.
crates/ty_python_semantic/src/types/signatures.rs:5434
↓ 44 callersMethodwith_src_files
Specify files to be created in the `src` mock directory
crates/ty_module_resolver/src/testing.rs:127
↓ 43 callersMethodget
(self, key: str)
crates/ruff_linter/resources/test/fixtures/flake8_return/RET501.py:8
↓ 43 callersMethodis_empty
(&self)
crates/ty_python_semantic/src/types/set_theoretic/builder.rs:607
↓ 43 callersMethoditer_mro
Returns an iterator over the MRO.
crates/ty_python_semantic/src/types/class.rs:644
↓ 43 callersMethodname
(self)
crates/ruff_linter/src/rules/flake8_tidy_imports/settings.rs:177
↓ 43 callersMethodnext
(&self)
crates/ty_python_semantic/src/types/typevar.rs:908
↓ 43 callersMethodparent
(&self)
crates/ty_python_core/src/scope.rs:151
↓ 43 callersMethoduse_def_map
(&self, scope_id: FileScopeId)
crates/ty_python_core/src/lib.rs:383
↓ 42 callersMethodapply_changes
(&mut self, changes: &[ChangeEvent])
crates/ty/tests/file_watching.rs:192
↓ 42 callersMethodextend
Extend the current region with the results of a speculative [`TypeInferenceBuilder`].
crates/ty_python_semantic/src/types/infer/builder.rs:11772
↓ 42 callersMethodf
(self)
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP008.py:121
↓ 42 callersMethodhelp
Adds a "help" sub-diagnostic with the given message. See the closely related [`Diagnostic::info`] method for more details.
crates/ruff_db/src/diagnostic/mod.rs:183
↓ 42 callersMethodinto_boxed_slice
(self)
crates/ty_python_semantic/src/types/infer/builder.rs:12302
↓ 42 callersMethodis_empty
Returns true if and only if this collection is empty.
crates/ty_ide/src/symbols.rs:136
↓ 42 callersMethoditer
Returns an iterator over all enabled lints and their severity.
crates/ty_python_semantic/src/lint.rs:589
↓ 42 callersMethodpath
(&self)
crates/ruff/src/commands/format.rs:859
↓ 42 callersMethodsymbol
(&self, id: ScopedSymbolId)
crates/ty_python_core/src/place.rs:220
↓ 41 callersMethodextend
(&mut self, iter: T)
crates/ruff_linter/src/registry/rule_set.rs:322
↓ 41 callersMethodfield
Returns the field declared directly on this dynamic named tuple, if any.
crates/ty_python_semantic/src/types/class/named_tuple.rs:474
↓ 41 callersMethodlines
(&self)
crates/ruff_linter/src/noqa.rs:337
↓ 41 callersFunctionresolve_module_confident
Resolves a module name to a module, without desperate resolution available. This is appropriate for resolving a `KnownModule`, or cases where for wha
crates/ty_module_resolver/src/resolve.rs:93
↓ 41 callersMethodwith_initialization_options
Set the initial client options for the test server
crates/ty_server/tests/e2e/main.rs:1253
↓ 40 callersFunctionbind_docstring_snapshot_filters
()
crates/ty_ide/src/docstring.rs:156
↓ 40 callersMethodclass
Return the [`KnownClass`] that inhabitants of this type are instances of at runtime
crates/ty_python_semantic/src/types/method.rs:353
↓ 40 callersMethoddefinition
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/class.rs:455
↓ 40 callersMethodeat
Consume the current token if it is of the given kind. Returns `true` if it matches, `false` otherwise.
crates/ruff_python_parser/src/parser/mod.rs:635
↓ 40 callersMethodis_ok
(&self)
crates/ruff_python_parser/tests/generate_inline_tests.rs:205
↓ 40 callersMethoditer
(&mut self)
crates/ruff_linter/src/checkers/ast/mod.rs:3585
↓ 40 callersMethodsecondary
Create a secondary annotation attached to the range of the given value in the file currently being type checked. The annotation returned has no messa
crates/ty_python_semantic/src/types/context.rs:224
↓ 40 callersMethodsub
(mut self, sub: SubDiagnostic)
crates/ty_project/src/metadata/options.rs:2428
↓ 39 callersMethodadd
Add a file with the given path and contents to this environment.
crates/ruff_db/src/diagnostic/render.rs:2617
↓ 39 callersMethodat
Returns `true` if the current token is of the given kind.
crates/ruff_python_parser/src/parser/mod.rs:695
↓ 39 callersFunctionevent_for_file
(name: &str)
crates/ty/tests/file_watching.rs:268
↓ 39 callersMethodgeneric_context
Returns the generic context if this is a generic class.
crates/ty_python_semantic/src/types/class.rs:787
↓ 39 callersFunctionsetup_rayon
()
crates/ruff_benchmark/benches/ty_shared/mod.rs:21
↓ 39 callersMethodsuite
Returns the module body contained in this parsed output as a [`Suite`].
crates/ruff_python_parser/src/lib.rs:528
↓ 38 callersMethodbuild
(&self)
crates/ty_ide/src/symbols.rs:3354
↓ 38 callersMethodcontains
(&self, kind: TokenKind)
crates/ruff_python_parser/src/token_set.rs:28
↓ 38 callersMethodcontains_range
(self, other: TextRange)
crates/ruff_text_size/src/range.rs:204
↓ 38 callersMethodfile_uri
(&self, path: impl AsRef<SystemPath>)
crates/ty_server/tests/e2e/main.rs:773
↓ 38 callersFunctionformat_with
Creates an object implementing `Format` that calls the passed closure to perform the formatting. # Examples ``` use ruff_formatter::prelude::*; use
crates/ruff_formatter/src/builders.rs:2319
↓ 38 callersMethodget
Returns the [`OverloadLiteral`] representing this matching overload.
crates/ty_python_semantic/src/types/call/bind.rs:9684
↓ 38 callersMethodinto_iter
(self)
crates/ruff_linter/src/rules/pycodestyle/rules/logical_lines/mod.rs:92
↓ 38 callersMethodis_paramspec
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/typevar.rs:288
↓ 38 callersMethodis_subtype_of
Return true if this type is a subtype of type `target`. See [`TypeRelation::Subtyping`] for more details.
crates/ty_python_semantic/src/types/relation.rs:328
↓ 38 callersMethodis_undefined
Returns `true` if the inner place is undefined (i.e. there is no such member).
crates/ty_python_semantic/src/types/member.rs:36
↓ 38 callersMethoditer
(&self)
crates/ty_python_semantic/src/types/signatures.rs:217
↓ 38 callersMethodknown
Returns the known class, if any.
crates/ty_python_semantic/src/types/class.rs:633
↓ 38 callersFunctionlex_inline_noqa
Lexes in-line `noqa` comment, e.g. `# noqa: F401`
crates/ruff_linter/src/noqa.rs:354
↓ 38 callersMethodnegate
Returns the negation of this constraint set.
crates/ty_python_semantic/src/types/constraints.rs:610
↓ 38 callersMethodnext
(&mut self)
crates/ruff_python_ast/src/nodes.rs:244
↓ 38 callersMethodopen
(self)
crates/ruff_linter/resources/test/fixtures/flake8_async/ASYNC230.py:66
↓ 38 callersMethodrange
(&self)
crates/ruff_linter/src/rules/refurb/rules/repeated_append.rs:158
↓ 38 callersMethodsaturating_add
(self, rhs: TextSize)
crates/ruff_text_size/src/size.rs:113
← previousnext →301–400 of 29,290, ranked by callers