Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/astral-sh/ruff
/ functions
Functions
31,562 in github.com/astral-sh/ruff
⨍
Functions
31,562
◇
Types & classes
7,116
↳
Endpoints
82
↓ 1 callers
Function
tags
(diagnostic: &Diagnostic)
crates/ruff_server/src/lint.rs:601
↓ 1 callers
Method
tags
(&self)
crates/ty_wasm/src/lib.rs:953
↓ 1 callers
Method
take_deferred_messages
(&mut self)
crates/ty_server/src/session.rs:1086
↓ 1 callers
Method
take_index
Takes the index out of the system.
crates/ty_server/src/system.rs:105
↓ 1 callers
Method
take_pending
Takes all the pending line suffixes.
crates/ruff_formatter/src/printer/line_suffixes.rs:22
↓ 1 callers
Method
take_remaining_text
(&mut self)
crates/ty_ide/src/docstring/document/syntax.rs:105
↓ 1 callers
Method
take_suspended_workspace_diagnostic_request
( &mut self, )
crates/ty_server/src/session.rs:249
↓ 1 callers
Method
takes_space
(&self)
crates/ruff_annotate_snippets/src/renderer/render.rs:2526
↓ 1 callers
Function
tarfile_ignore_zeros_true
`tarfile-ignore-zeros-true`
crates/ruff_linter/src/rules/ruff/rules/tarfile_ignore_zeros_true.rs:58
↓ 1 callers
Function
tarfile_unsafe_members
S202
crates/ruff_linter/src/rules/flake8_bandit/rules/tarfile_unsafe_members.rs:53
↓ 1 callers
Method
target_belongs_to_class
Returns whether any of the rename target's definitions is an instance attribute of `class`. The target must name an actual instance attribute of `cla
crates/ty_ide/src/references.rs:968
↓ 1 callers
Function
task_branch_as_short_circuit
AIR004 (decorator form)
crates/ruff_linter/src/rules/airflow/rules/task_branch_as_short_circuit.rs:100
↓ 1 callers
Function
task_implicit_multiple_outputs
AIR202
crates/ruff_linter/src/rules/airflow/rules/task_implicit_multiple_outputs.rs:80
↓ 1 callers
Function
teardown
(test: LspTest)
scripts/ty_benchmark/src/benchmark/test_lsp_diagnostics.py:142
↓ 1 callers
Method
teardown
(self)
scripts/ty_benchmark/src/benchmark/test_lsp_diagnostics.py:263
↓ 1 callers
Function
tempdir_filter
(path: &Path)
crates/ty/tests/common/mod.rs:176
↓ 1 callers
Function
tempdir_filter
(path: impl AsRef<str>)
crates/ty_server/tests/e2e/main.rs:1729
↓ 1 callers
Function
tempdir_filter
Creates a regex filter for replacing temporary directory paths in snapshots
crates/ruff/tests/cli/main.rs:27
↓ 1 callers
Function
tempdir_filter
(path: impl AsRef<str>)
crates/ruff_server/tests/e2e/main.rs:1217
↓ 1 callers
Function
tempfile_in
(path: &Path)
crates/ruff/src/cache.rs:307
↓ 1 callers
Method
template_name
Return the Jinja template filename for this report kind.
python/py-fuzzer/fuzz.py:226
↓ 1 callers
Function
ten
()
crates/ruff_linter/resources/test/fixtures/refurb/FURB161.py:3
↓ 1 callers
Method
test
(self)
crates/ruff_python_formatter/resources/test/fixtures/black/cases/composition.py:2
↓ 1 callers
Function
test3
()
crates/ruff_python_formatter/resources/test/fixtures/ruff/range_formatting/indent.py:26
↓ 1 callers
Function
test_4
()
crates/ruff_linter/resources/test/fixtures/syntax_errors/load_before_global_declaration.py:17
↓ 1 callers
Function
test_function_definition
(db: &'db dyn Db, function: FunctionType<'db>)
crates/ty_python_semantic/src/types/dedicated/pytest/collection.rs:309
↓ 1 callers
Function
test_path_with_settings_diff
( path: impl AsRef<Path>, settings_before: &LinterSettings, settings_after: &LinterSettings, )
crates/ruff_linter/src/test.rs:156
↓ 1 callers
Function
test_query
(db: &dyn Database, input: Input)
crates/ruff_db/src/panic.rs:191
↓ 1 callers
Function
test_resource_path
(path: impl AsRef<Path>)
crates/ruff_workspace/src/lib.rs:14
↓ 1 callers
Method
test_system_mut
(&mut self)
crates/ruff_db/src/lib.rs:210
↓ 1 callers
Function
test_toml_path
( path: impl AsRef<Path>, settings: &LinterSettings, source_type: ruff_python_ast::TomlSourceType,
crates/ruff_linter/src/test.rs:138
↓ 1 callers
Method
text
(&self)
crates/ruff_annotate_snippets/src/renderer/render.rs:2334
↓ 1 callers
Method
text
(&self)
crates/ruff_python_formatter/src/string/normalize.rs:636
↓ 1 callers
Method
text
Returns logical line's text including comments, indents, dedent and trailing new lines.
crates/ruff_linter/src/rules/pycodestyle/rules/logical_lines/mod.rs:131
↓ 1 callers
Method
text_before
(&self, token: &'a LogicalLineToken)
crates/ruff_linter/src/rules/pycodestyle/rules/logical_lines/mod.rs:186
↓ 1 callers
Method
text_document_diagnostics_async
Returns the diagnostics for `path` Uses pull diagnostics if the server supports it or waits for a publish diagnostics notifi
scripts/ty_benchmark/src/benchmark/lsp_client.py:114
↓ 1 callers
Method
text_document_handles
Iterates over handles to all open text documents.
crates/ty_server/src/session.rs:1303
↓ 1 callers
Method
text_document_uris
(&self)
crates/ruff_server/src/session/index.rs:91
↓ 1 callers
Method
text_documents
( &self, )
crates/ty_server/src/session/index.rs:25
↓ 1 callers
Method
text_edits
Builds the text edits from all collected imports.
crates/ty_ide/src/inlay_hints.rs:842
↓ 1 callers
Method
text_len
(self)
crates/ruff_text_size/src/traits.rs:18
↓ 1 callers
Method
text_len
(self)
crates/ruff_text_size/tests/constructors.rs:7
↓ 1 callers
Function
text_range_to_lsp_range
( range: TextRange, text: &str, index: &LineIndex, encoding: PositionEncoding, )
crates/ty_server/src/document/range.rs:260
↓ 1 callers
Function
text_starts_at_consecutive_quote
Returns `true` if the [`TextRange`] is preceded by two consecutive quotes.
crates/ruff_linter/src/rules/flake8_quotes/rules/check_string_quotes.rs:243
↓ 1 callers
Method
text_trimmed
(&self)
crates/ruff_linter/src/rules/pycodestyle/rules/logical_lines/mod.rs:144
↓ 1 callers
Method
through_scope
(mut self, scope_laziness: ScopeLaziness)
crates/ty_python_core/src/builder.rs:174
↓ 1 callers
Function
timeout_error_alias_call
UP041
crates/ruff_linter/src/rules/pyupgrade/rules/timeout_error_alias.rs:215
↓ 1 callers
Function
timeout_error_alias_handlers
UP041
crates/ruff_linter/src/rules/pyupgrade/rules/timeout_error_alias.rs:185
↓ 1 callers
Function
timeout_error_alias_raise
UP041
crates/ruff_linter/src/rules/pyupgrade/rules/timeout_error_alias.rs:226
↓ 1 callers
Function
toDisplayDiagnosticDetail
(item: { message: string; severity?: string; location: DiagnosticLocation | null; })
playground/ruff/src/Editor/Diagnostics.tsx:149
↓ 1 callers
Function
to_allowed_value
Return `true` if the given expression is compatible with a membership test. E.g., `==` operators can be joined with `or` and `!=` operators can be joi
crates/ruff_linter/src/rules/pylint/rules/repeated_equality_comparison.rs:227
↓ 1 callers
Method
to_anyhow
( &self, result: Result<T, Self::Error<E>>, )
crates/ty_module_resolver/src/strategy.rs:124
↓ 1 callers
Function
to_applicability_annotate
(fix: &Fix)
crates/ruff_db/src/diagnostic/render/full.rs:411
↓ 1 callers
Method
to_ascii_spaces
Convert this indent level into a specific number of ASCII whitespace characters based on the given indent width.
crates/ruff_python_formatter/src/context.rs:345
↓ 1 callers
Method
to_black_args
(self)
python/ruff-ecosystem/ruff_ecosystem/projects.py:310
↓ 1 callers
Method
to_byte
(&self)
crates/ruff_python_ast/src/nodes.rs:455
↓ 1 callers
Method
to_bytes
(&self)
crates/ruff_db/src/source.rs:141
↓ 1 callers
Function
to_camel_case
Converts PascalCase to camel_case
crates/ruff_python_formatter/generate.py:80
↓ 1 callers
Method
to_char
Convert the fence kind to the actual character used to build the fence.
crates/ruff_python_formatter/src/string/docstring.rs:1497
↓ 1 callers
Method
to_check_mode
Returns this diagnostic mode as a check mode. This returns `None` when diagnostics are disabled.
crates/ty_server/src/session/options.rs:473
↓ 1 callers
Method
to_completion_kind
Maps this to a "completion" kind if a sensible mapping exists.
crates/ty_ide/src/symbols.rs:369
↓ 1 callers
Method
to_diagnostic
(&self)
crates/ty_project/src/walk.rs:374
↓ 1 callers
Method
to_diagnostic
(&self)
crates/ty_python_semantic/src/lib.rs:285
↓ 1 callers
Method
to_diagnostics
Convert formatted files into [`Diagnostic`]s.
crates/ruff/src/commands/format.rs:673
↓ 1 callers
Function
to_expr
Attempts to convert the `print` arguments to a suitable string expression. If the `sep` argument is provided, it will be used as the separator betwee
crates/ruff_linter/src/rules/ruff/rules/assert_with_print_message.rs:271
↓ 1 callers
Method
to_file
Resolves this path through the same directory validation used by the resolver.
crates/ty_module_resolver/src/path.rs:1551
↓ 1 callers
Method
to_fix_edit
(&self)
crates/ty_ide/src/inlay_hints.rs:8712
↓ 1 callers
Method
to_identity
(&self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/cyclic.rs:823
↓ 1 callers
Method
to_instance
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, )
crates/ty_python_semantic/src/types/set_theoretic.rs:493
↓ 1 callers
Method
to_instance
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, )
crates/ty_python_semantic/src/types/typevar.rs:472
↓ 1 callers
Method
to_instance
Returns an instance type for this dynamic namedtuple.
crates/ty_python_semantic/src/types/class/named_tuple.rs:215
↓ 1 callers
Function
to_interpolated_string_element
Convert an expression to an f-string or t-string element (if it looks like a good idea).
crates/ruff_linter/src/rules/flynt/helpers.rs:56
↓ 1 callers
Function
to_interpolated_string_interpolation_element
Wrap an expression in a [`ast::FStringElement::Expression`] with no special formatting.
crates/ruff_linter/src/rules/flynt/helpers.rs:5
↓ 1 callers
Function
to_interpolated_string_literal_element
Convert a string to a [`ast::InterpolatedStringLiteralElement `].
crates/ruff_linter/src/rules/flynt/helpers.rs:17
↓ 1 callers
Method
to_items
(&self)
crates/ty_ide/src/docstring/markdown/structured/rst.rs:106
↓ 1 callers
Function
to_keyword_or_other
(source: &str)
crates/ruff_python_trivia/src/tokenizer.rs:149
↓ 1 callers
Method
to_kind
Returns the LSP code action kind that map to this code action.
crates/ruff_server/src/server.rs:293
↓ 1 callers
Method
to_kind
Converts the unowned reference to an owned [`NodeWithScopeKind`]. Note that node wrapped by `self` must be a child of `module`.
crates/ty_python_core/src/scope.rs:303
↓ 1 callers
Method
to_kind
Safe conversion to the corresponding [`RecoveryContextKind`] (inverse of [`Self::from_kind`]). Returns `None` if the `RecoveryContext` is empty or ha
crates/ruff_python_parser/src/parser/mod.rs:1724
↓ 1 callers
Function
to_lsp_command
Maps an editor-neutral completion intent to the concrete LSP command the client should run after applying the completion. The intent itself is decide
crates/ty_server/src/server/api/requests/completion.rs:186
↓ 1 callers
Function
to_lsp_edits
( db: &dyn Db, file: File, encoding: PositionEncoding, edits: Vec<Edit>, )
crates/ty_server/src/server/api/requests/code_action.rs:131
↓ 1 callers
Method
to_meta_type
(self, db: &'db dyn Db, env: &ProgramEnvironment<'db>)
crates/ty_python_semantic/src/types/known_instance.rs:507
↓ 1 callers
Method
to_meta_type_with_recursion
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, context: &TypeRecursio
crates/ty_python_semantic/src/types/subclass_of.rs:347
↓ 1 callers
Method
to_module_name
Converts the lazy representation of a module name into an actual `ModuleName` that can be used for module resolution.
crates/ty_ide/src/symbols.rs:656
↓ 1 callers
Method
to_nominal_meta_type
Return the nominal meta-type used for internal class-member lookup on a protocol instance.
crates/ty_python_semantic/src/types/instance.rs:1870
↓ 1 callers
Method
to_options
(&self, file: File, diagnostics: &mut ScriptConfigurationDiagnostics)
crates/ty_project/src/script.rs:359
↓ 1 callers
Method
to_override
( &self, db: &dyn Db, project_root: &SystemPath, global_rules: Option<&Rules>,
crates/ty_project/src/metadata/options.rs:2240
↓ 1 callers
Method
to_overrides_settings
( &self, db: &dyn Db, project_root: &SystemPath, diagnostics: &mut Vec<OptionD
crates/ty_project/src/metadata/options.rs:606
↓ 1 callers
Function
to_pep585_generic
Returns the PEP 585 standard library generic variant for a `typing` module reference, if such a variant exists.
crates/ruff_python_semantic/src/analyze/typing.rs:131
↓ 1 callers
Method
to_position
(&self, len: usize)
crates/ty_python_semantic/src/subscript.rs:64
↓ 1 callers
Method
to_program_settings
Resolve configured paths and discover defaults according to the project or script context.
crates/ty_project/src/metadata/options.rs:213
↓ 1 callers
Function
to_pytest_raises_args
( checker: &Checker<'a>, attr: &str, arguments: &Arguments, )
crates/ruff_linter/src/rules/flake8_pytest_style/rules/assertion.rs:520
↓ 1 callers
Method
to_reference_kind
(self)
crates/ty_ide/src/references.rs:376
↓ 1 callers
Method
to_renderable
Creates a value that is amenable to rendering directly.
crates/ruff_db/src/diagnostic/render.rs:114
↓ 1 callers
Method
to_rules
(&self)
crates/ty_project/src/metadata/settings.rs:55
↓ 1 callers
Method
to_specialized_subclass_of
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, specialization: &[Type
crates/ty_python_semantic/src/types/class/known.rs:1491
↓ 1 callers
Method
to_tasks
Convert this "source" task (from the Ruff repository) into one or more evaluation tasks within a single Python project. Exactly one task is created fo
crates/ty_completion_eval/src/main.rs:456
↓ 1 callers
Method
to_text_range
Converts the line:column range to a byte offset range specific for `source`. Returns an empty range if the start range is past the end of `source`.
crates/ruff/src/args.rs:1174
↓ 1 callers
Method
to_type
(self, db: &'db dyn Db, env: &ProgramEnvironment<'db>)
crates/ty_python_semantic/src/types/class.rs:3513
↓ 1 callers
Method
to_vendored_path
Returns the path within the vendored filesystem, if this is a vendored module.
crates/ty_module_resolver/src/path.rs:160
← previous
next →
13,501–13,600 of 31,562, ranked by callers