Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/astral-sh/ruff
/ functions
Functions
29,651 in github.com/astral-sh/ruff
⨍
Functions
29,651
◇
Types & classes
6,852
↳
Endpoints
82
↓ 51 callers
Method
extend
Extend the current region with the results of a speculative [`TypeInferenceBuilder`].
crates/ty_python_semantic/src/types/infer/builder.rs:12189
↓ 51 callers
Method
get
(&self)
crates/ruff_linter/src/checkers/ast/mod.rs:3614
↓ 51 callers
Method
place_table
(&self, scope_id: FileScopeId)
crates/ty_python_core/src/lib.rs:366
↓ 51 callers
Method
statement
(&self, node_id: NodeId)
crates/ruff_python_semantic/src/model.rs:1622
↓ 50 callers
Method
build
(self)
crates/ty_python_semantic/src/types/set_theoretic/builder.rs:1126
↓ 50 callers
Method
current_token_range
(&self)
crates/ruff_python_parser/src/parser/mod.rs:424
↓ 50 callers
Method
is_starred_expr
(&self)
crates/ruff_python_ast/src/generated.rs:2614
↓ 50 callers
Method
max
(self, other: Self)
crates/ty_python_semantic/src/place.rs:48
↓ 50 callers
Method
module
(&self)
crates/ty_python_semantic/src/types/infer/builder.rs:843
↓ 50 callers
Method
path
(&self)
crates/ty_wasm/src/lib.rs:868
↓ 50 callers
Method
project_path
(&self, relative: impl AsRef<SystemPath>)
crates/ty/tests/file_watching.rs:48
↓ 49 callers
Method
file
Returns the file containing the class definition.
crates/ty_python_semantic/src/types/class.rs:834
↓ 49 callers
Method
into_iter
(self)
crates/ty_python_semantic/src/types/call/bind.rs:4845
↓ 49 callers
Method
is_empty
Returns `true` if the module imports are empty.
crates/ruff_graph/src/lib.rs:77
↓ 49 callers
Method
message
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 callers
Method
parent
(&self)
crates/ruff_db/src/system/path.rs:168
↓ 49 callers
Function
walk_expr
(visitor: &mut V, expr: &'a Expr)
crates/ruff_python_ast/src/visitor.rs:362
↓ 48 callers
Method
check
(&self, contents: &str)
crates/ruff_wasm/src/lib.rs:342
↓ 48 callers
Method
extend
Extend the module imports with additional file paths.
crates/ruff_graph/src/lib.rs:72
↓ 48 callers
Method
into_boxed_slice
(self)
crates/ty_python_semantic/src/types/infer/builder.rs:12740
↓ 48 callers
Method
iter
Returns an iterator over all enabled lints and their severity.
crates/ty_python_semantic/src/lint.rs:599
↓ 48 callers
Method
name
(self)
crates/ty_python_semantic/src/types/class.rs:336
↓ 47 callers
Method
add
(&mut self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, ty: Type<'db>)
crates/ty_python_semantic/src/types/set_theoretic/builder.rs:532
↓ 47 callers
Method
get_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
↓ 47 callers
Method
ignore_possibly_undefined
Returns the inner type, unless it is definitely undefined.
crates/ty_python_semantic/src/types/member.rs:41
↓ 47 callers
Method
map
(self, f: &F)
crates/ty_python_semantic/src/types/call/bind.rs:441
↓ 47 callers
Method
python_file
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/class/static_literal.rs:515
↓ 47 callers
Method
write_dedented
Writes auto-dedented text to a file.
crates/ruff_db/src/system/test.rs:248
↓ 46 callers
Method
apply_changes
(&mut self, changes: &[ChangeEvent])
crates/ty/tests/file_watching.rs:192
↓ 46 callers
Function
call
(checker: &Checker, func: &Expr)
crates/ruff_linter/src/rules/pandas_vet/rules/call.rs:170
↓ 46 callers
Method
dangling
Returns the [dangling comments](self#dangling-comments) of `node`
crates/ruff_python_formatter/src/comments/mod.rs:299
↓ 46 callers
Method
get_mut
(&mut self, index: I)
crates/ruff_index/src/slice.rs:116
↓ 46 callers
Method
identifier
Returns the identifier of the command.
crates/ruff_server/src/server.rs:339
↓ 46 callers
Method
kind
(&self)
crates/ruff_linter/src/rules/pycodestyle/rules/logical_lines/mod.rs:280
↓ 46 callers
Method
line_position
(&self)
crates/ruff_python_formatter/src/comments/mod.rs:141
↓ 46 callers
Method
next
(&self)
crates/ty_python_semantic/src/types/typevar.rs:914
↓ 46 callers
Method
origin
()
crates/ty_python_semantic/src/types/constraints/paths.rs:100
↓ 46 callers
Function
parse
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 callers
Method
specialization
(specialization: Specialization<'db>)
crates/ty_python_semantic/src/types/generics.rs:2277
↓ 45 callers
Method
append
(self, x)
crates/ruff_linter/resources/test/fixtures/refurb/FURB113.py:15
↓ 45 callers
Function
create_dir_all
( paths: &mut RwLockWriteGuard<BTreeMap<Utf8PathBuf, Entry>>, normalized: &Utf8Path, )
crates/ruff_db/src/system/memory_fs.rs:479
↓ 45 callers
Function
empty
()
crates/ty_python_semantic/src/types/signatures.rs:6100
↓ 45 callers
Method
is_paramspec
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/typevar.rs:293
↓ 45 callers
Method
items
Bug in Clippy? Sizeof Arguments is 16
crates/ruff_formatter/src/arguments.rs:65
↓ 45 callers
Method
member
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types.rs:976
↓ 45 callers
Method
position
(&self)
crates/ruff_linter/src/noqa.rs:699
↓ 45 callers
Method
skip_trivia
(self)
crates/ruff_python_trivia/src/tokenizer.rs:793
↓ 45 callers
Method
split_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 callers
Method
types
Returns the typevars and stored bound types still reachable from the decision diagram. Source ordering can retain constraints that are no longer in t
crates/ty_python_semantic/src/types/constraints.rs:330
↓ 45 callers
Method
use_def_map
(&self, scope_id: FileScopeId)
crates/ty_python_core/src/lib.rs:383
↓ 45 callers
Method
write_file
( &mut self, path: impl AsRef<SystemPath>, content: &str, )
crates/ty_ide/src/lib.rs:447
↓ 44 callers
Method
format
(&self, contents: &str)
crates/ruff_wasm/src/lib.rs:483
↓ 44 callers
Function
get_result
( source: &str, expected_diagnostics: Vec<ExpectedDiagnostic>, )
crates/mdtest/src/matcher.rs:573
↓ 44 callers
Method
is_empty
Returns true if and only if this collection is empty.
crates/ty_ide/src/symbols.rs:136
↓ 44 callers
Method
is_empty
(&self)
crates/ty_python_semantic/src/types/set_theoretic/builder.rs:610
↓ 44 callers
Method
iter
(self)
crates/ty_python_semantic/src/types/class/typed_dict.rs:116
↓ 44 callers
Method
parent
(&self)
crates/ty_python_core/src/scope.rs:151
↓ 44 callers
Method
replace
(&mut self, line: usize, start: usize, end: usize, string: &str)
crates/ruff_annotate_snippets/src/renderer/styled_buffer.rs:118
↓ 44 callers
Function
setup_rayon
()
crates/ruff_benchmark/benches/ty_shared/mod.rs:21
↓ 44 callers
Method
symbol
(&self, id: ScopedSymbolId)
crates/ty_python_core/src/place.rs:220
↓ 44 callers
Method
with_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:5454
↓ 44 callers
Method
with_src_files
Specify files to be created in the `src` mock directory
crates/ty_module_resolver/src/testing.rs:127
↓ 43 callers
Function
event_for_file
(name: &str)
crates/ty/tests/file_watching.rs:268
↓ 43 callers
Method
generic_context
Returns the generic context if this is a generic class.
crates/ty_python_semantic/src/types/class.rs:790
↓ 43 callers
Method
get
(self, key: str)
crates/ruff_linter/resources/test/fixtures/flake8_return/RET501.py:8
↓ 43 callers
Method
help
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
↓ 43 callers
Method
iter_mro
Returns an iterator over the MRO.
crates/ty_python_semantic/src/types/class.rs:647
↓ 43 callers
Method
name
(self)
crates/ruff_linter/src/rules/flake8_tidy_imports/settings.rs:177
↓ 42 callers
Method
class
Return the [`KnownClass`] that inhabitants of this type are instances of at runtime
crates/ty_python_semantic/src/types/method.rs:359
↓ 42 callers
Method
f
(self)
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP008.py:121
↓ 42 callers
Method
file_uri
(&self, path: impl AsRef<SystemPath>)
crates/ty_server/tests/e2e/main.rs:806
↓ 42 callers
Method
get
Returns the [`OverloadLiteral`] representing this matching overload.
crates/ty_python_semantic/src/types/call/bind.rs:9904
↓ 42 callers
Method
is_always_satisfied
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, )
crates/ty_python_semantic/src/types/constraints.rs:573
↓ 42 callers
Method
is_ok
(&self)
crates/ruff_python_parser/tests/generate_inline_tests.rs:205
↓ 42 callers
Method
lines
(&self)
crates/ruff_linter/src/noqa.rs:337
↓ 42 callers
Method
path
(&self)
crates/ruff/src/commands/format.rs:859
↓ 42 callers
Method
sub
(mut self, sub: SubDiagnostic)
crates/ty_project/src/metadata/options.rs:2428
↓ 42 callers
Method
suite
Returns the module body contained in this parsed output as a [`Suite`].
crates/ruff_python_parser/src/lib.rs:528
↓ 41 callers
Method
extend
(&mut self, iter: T)
crates/ruff_linter/src/registry/rule_set.rs:322
↓ 41 callers
Method
field
Returns the field declared directly on this dynamic named tuple, if any.
crates/ty_python_semantic/src/types/class/named_tuple.rs:474
↓ 41 callers
Method
into_boxed_slice
(self)
crates/ty_python_core/src/definition.rs:290
↓ 41 callers
Function
resolve_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 callers
Method
secondary
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
↓ 41 callers
Method
with_initialization_options
Set the initial client options for the test server.
crates/ty_server/tests/e2e/main.rs:1291
↓ 40 callers
Function
bind_docstring_snapshot_filters
()
crates/ty_ide/src/docstring.rs:156
↓ 40 callers
Method
eat
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 callers
Method
iter
(&mut self)
crates/ruff_linter/src/checkers/ast/mod.rs:3585
↓ 40 callers
Function
setup_micro_case
(code: &str)
crates/ruff_benchmark/benches/ty_shared/mod.rs:35
↓ 39 callers
Method
add
Add a file with the given path and contents to this environment.
crates/ruff_db/src/diagnostic/render.rs:2617
↓ 39 callers
Method
at
Returns `true` if the current token is of the given kind.
crates/ruff_python_parser/src/parser/mod.rs:695
↓ 39 callers
Method
contains_range
(self, other: TextRange)
crates/ruff_text_size/src/range.rs:204
↓ 39 callers
Method
current_statement
Return the current [`Stmt`].
crates/ruff_python_semantic/src/model.rs:1474
↓ 39 callers
Method
function
(&'test self, name: &str)
crates/ty_python_semantic/src/types/dedicated/pytest.rs:3545
↓ 39 callers
Method
known
Returns the known class, if any.
crates/ty_python_semantic/src/types/class.rs:636
↓ 39 callers
Method
negate
Returns the negation of this constraint set.
crates/ty_python_semantic/src/types/constraints.rs:653
↓ 39 callers
Method
next
(&mut self)
crates/ruff_python_ast/src/nodes.rs:244
↓ 39 callers
Method
stop_watch
(&mut self, matcher: M)
crates/ty/tests/file_watching.rs:69
↓ 39 callers
Method
write_file_all
Stores a new file in the file system. The operation overrides the content for an existing file with the same normalized `path`. Enclosing directorie
crates/ruff_db/src/system/memory_fs.rs:229
↓ 38 callers
Method
build
(&self)
crates/ty_ide/src/symbols.rs:3354
↓ 38 callers
Method
contains
(&self, kind: TokenKind)
crates/ruff_python_parser/src/token_set.rs:28
← previous
next →
301–400 of 29,651, ranked by callers