Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/astral-sh/ruff
/ functions
Functions
31,766 in github.com/astral-sh/ruff
⨍
Functions
31,766
◇
Types & classes
7,128
↳
Endpoints
82
Method
empty
()
crates/ty_module_resolver/src/module_glob.rs:63
Method
empty
()
crates/ty_module_resolver/src/settings.rs:45
Method
empty
()
crates/ruff_formatter/src/lib.rs:540
Method
empty
()
crates/ruff_python_formatter/src/comments/mod.rs:233
Method
empty
Create an empty `Cache`.
crates/ruff/src/cache.rs:136
Method
empty
(offset: TextSize)
crates/ruff_text_size/src/range.rs:87
Method
empty
()
crates/ruff_python_ast/src/name.rs:50
Method
empty
Construct a new [`FStringFlags`] with **no flags set**. See [`FStringFlags::with_quote_style`], [`FStringFlags::with_triple_quotes`], and [`FStringFl
crates/ruff_python_ast/src/nodes.rs:1135
Method
empty
(vendored: &VendoredFileSystem)
crates/ty_python_core/src/program.rs:71
Method
empty
()
crates/ruff_unicode_names2/src/iter_str.rs:12
Method
empty
Creates an empty notebook with a single code cell.
crates/ruff_notebook/src/notebook.rs:201
Method
empty
()
crates/ty_ide/src/lib.rs:235
Method
empty
An empty scope for importing a name that is already known to be unbound. This avoids querying inferred types while constructing a diagnostic fix.
crates/ty_python_semantic/src/importer.rs:547
Method
empty
Create an empty parameter list.
crates/ty_python_semantic/src/types/signatures.rs:5093
Method
empty
(db: &'db dyn Db, env: &ProgramEnvironment<'db>)
crates/ty_python_semantic/src/types/protocol_class.rs:844
Method
empty
(db: &'db dyn Db, env: &ProgramEnvironment<'db>)
crates/ty_python_semantic/src/types/tuple.rs:195
Method
empty
()
crates/ty_python_semantic/src/types/enums.rs:520
Method
empty
Returns an empty rule set.
crates/ruff_linter/src/registry/rule_set.rs:23
Method
empty
Creates a new empty rule table.
crates/ruff_linter/src/settings/rule_table.rs:18
Method
empty
()
crates/ruff_index/src/slice.rs:17
Method
empty_1
(self)
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B027.py:18
Method
empty_1
(self)
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B027.py:88
Method
empty_2
(self)
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B027.py:21
Method
empty_2
(self)
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B027.py:91
Method
empty_3
docstring
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B027.py:24
Method
empty_4
multiple ellipsis/pass
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B027.py:28
Function
empty_and_unavailable_listing
()
crates/ruff_db/src/files/directory.rs:205
Function
empty_config
()
crates/ruff_wasm/tests/api.rs:55
Function
empty_file
()
crates/ruff_python_formatter/src/comments/mod.rs:649
Function
empty_file
()
crates/mdtest/src/parser.rs:1633
Function
empty_file
()
crates/ruff_linter/src/fix/mod.rs:203
Function
empty_interpolated_string_parts
()
crates/ruff_python_ast_integration_tests/tests/comparable.rs:155
Function
empty_line
()
crates/ruff_linter/src/rules/pycodestyle/rules/logical_lines/mod.rs:651
Function
empty_lines
Helper that inserts the appropriate number of empty lines before a comment, depending on the node level: - Top-level: Up to two empty lines. - Parenth
crates/ruff_python_formatter/src/comments/format.rs:319
Function
empty_member_pyproject_ty_configuration_precedes_uv_workspace
()
crates/ty_project/src/metadata.rs:1043
Function
empty_notebook
()
crates/ruff_notebook/src/notebook.rs:550
Function
empty_raise_statement
()
crates/ty_ide/src/completion.rs:11557
Function
empty_report
()
crates/ruff_db/src/diagnostic/render/junit.rs:251
Function
empty_section_ranges_are_rejected
()
crates/ty_ide/src/docstring/markdown/structured.rs:642
Function
empty_source_qualified
()
crates/ty_ide/src/importer.rs:73
Function
empty_source_unqualified
()
crates/ty_ide/src/importer.rs:83
Function
empty_span_after_line_terminator
()
crates/ruff_db/src/diagnostic/render/full.rs:642
Function
empty_span_end_line
()
crates/ruff_annotate_snippets/tests/formatter.rs:3704
Function
empty_span_start_line
()
crates/ruff_annotate_snippets/tests/formatter.rs:3778
Function
empty_statement_reachable
()
crates/ruff_linter/resources/test/fixtures/pylint/unreachable.py:1
Function
empty_string_literal
()
crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs:328
Function
empty_tool_ty_disables_project_settings_and_overrides
()
crates/ty/tests/cli/scripts.rs:294
Method
empty_tuple
(db: &'db dyn Db, env: &ProgramEnvironment<'db>)
crates/ty_python_semantic/src/types/instance.rs:126
Function
empty_types_are_normalized_to_absent
()
crates/ty_ide/src/docstring/markdown/structured.rs:634
Function
empty_vec
()
crates/ruff_python_ast/src/name.rs:968
Function
empty_workspace_folders
()
crates/ty_server/tests/e2e/initialize.rs:60
Method
enable_diagnostic_dynamic_registration
(mut self, enabled: bool)
crates/ruff_server/tests/e2e/main.rs:1060
Method
enable_pull_diagnostics
(mut self, enabled: bool)
crates/ruff_server/tests/e2e/main.rs:1046
Function
enable_single_code
()
crates/ruff_linter/src/suppression.rs:2809
Method
enable_workspace_configuration
(mut self, enabled: bool)
crates/ruff_server/tests/e2e/main.rs:1092
Method
enabled
()
crates/ty/src/printer.rs:121
Method
enabled
( &self, meta: &tracing::Metadata<'_>, _: &tracing_subscriber::layer::Context<'_, S>,
crates/ty_server/src/logging.rs:126
Method
enabled
( &self, meta: &tracing::Metadata<'_>, _: &tracing_subscriber::layer::Context<'_, S>,
crates/ruff_server/src/logging.rs:119
Method
enabled
Returns an iterator over all enabled lints.
crates/ty_python_semantic/src/lint.rs:642
Function
enclosing_classes_follow_binding_scope
()
crates/ty_python_semantic/src/types/dedicated/pytest/collection.rs:596
Function
enclosing_scope_collision
()
crates/ruff_linter/resources/test/fixtures/flake8_import_conventions/tricky.py:30
Method
end
The end offset of this item in the source text.
crates/ruff_text_size/src/traits.rs:51
Method
end_bound
(&self)
crates/ruff_text_size/src/range.rs:525
Function
end_of_file
()
crates/ruff_db/src/diagnostic/render/full.rs:1033
Function
end_of_file
()
crates/ruff_linter/resources/test/fixtures/flake8_return/RET503.py:326
Method
end_of_statement
Create an [`Insertion`] to insert (e.g.) an import after the end of the given [`Stmt`], along with a prefix and suffix to use for the insertion. For
crates/ruff_python_importer/src/insertion.rs:142
Method
end_tag
(&self, kind: TagKind)
crates/ruff_formatter/src/format_element.rs:293
Function
ends_in_quote
Sum\\mary.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D300.py:5
Function
ends_indented_parameter_section_at_aligned_prose
()
crates/ty_ide/src/docstring/document/google.rs:1131
Function
ends_indented_parameter_section_at_inline_section_header
()
crates/ty_ide/src/docstring/document/google.rs:1143
Function
ends_on_col0
()
crates/ruff_annotate_snippets/tests/rustc_tests.rs:11
Function
ends_on_col2
()
crates/ruff_annotate_snippets/tests/rustc_tests.rs:48
Function
ends_parameter_section_at_structured_section_header
()
crates/ty_ide/src/docstring/document/google.rs:1107
Function
ends_parameters_before_preformatted_block
()
crates/ty_ide/src/docstring/document/numpy.rs:1252
Function
ends_populated_return_section_at_aligned_prose
()
crates/ty_ide/src/docstring/document/google.rs:1555
Function
ends_unindented_parameter_section_at_aligned_prose
()
crates/ty_ide/src/docstring/document/google.rs:1119
Function
ends_unindented_parameter_section_at_inline_section_header
()
crates/ty_ide/src/docstring/document/google.rs:1156
Function
endswith
Whitespace at the end.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D.py:287
Function
endswith_quote
Whitespace at the end, but also a quote"
crates/ruff_linter/resources/test/fixtures/pydocstyle/D.py:580
Function
enforce_variadic_names
()
crates/ruff_linter/src/rules/flake8_unused_arguments/mod.rs:53
Function
ensure_all_examples_have_tests
()
crates/ruff_annotate_snippets/tests/examples.rs:99
Function
ensure_newline_count_correct
()
crates/ruff_annotate_snippets/src/renderer/render.rs:2887
Function
ensure_output_replacements_is_sorted
The [`OUTPUT_REPLACEMENTS`] array must be sorted (for binary search to work) and must contain no duplicate entries
crates/ruff_annotate_snippets/src/renderer/render.rs:2877
Method
ensure_parent_directory
(path: &Path)
crates/ty/tests/common/mod.rs:105
Method
ensure_parent_directory
Ensures that the parent directory of a path exists.
crates/ruff/tests/cli/main.rs:131
Method
enter_node
(&mut self, node: AnyNodeRef<'a>)
crates/ruff_python_ast_integration_tests/tests/source_order.rs:186
Method
enter_node
(&mut self, node: AnyNodeRef<'a>)
crates/ruff_python_formatter/src/comments/mod.rs:419
Method
enter_node
(&mut self, node: AnyNodeRef<'a>)
crates/ruff_python_ast/src/find_node.rs:22
Method
enter_node
(&mut self, node: AnyNodeRef<'ast>)
crates/ruff_python_parser/tests/fixtures.rs:509
Method
enter_node
(&mut self, node: AnyNodeRef<'_>)
crates/ty_ide/src/semantic_tokens.rs:819
Method
enter_node
(&mut self, node: AnyNodeRef<'a>)
crates/ty_ide/src/folding_range.rs:588
Method
enter_node
(&mut self, node: AnyNodeRef<'a>)
crates/ty_ide/src/references.rs:606
Method
enter_node
(&mut self, node: AnyNodeRef<'a>)
crates/ty_ide/src/call_hierarchy/outgoing_calls.rs:227
Method
enter_node
(&mut self, node: AnyNodeRef<'a>)
crates/ty_ide/src/call_hierarchy/incoming_calls.rs:218
Method
enter_node
(&mut self, node: AnyNodeRef<'ast>)
crates/ruff_linter/src/rules/ruff/rules/suppression_comment_visitor.rs:70
Method
enter_node
(&mut self, _node: AnyNodeRef<'a>)
crates/ruff_linter/src/rules/ruff/rules/unused_async.rs:64
Method
entry_to_out_of_order
( entry: &'a mut Entry, parts: &[V], out_of_order: &mut Vec<Vec<V>>, )
crates/ruff_python_formatter/src/comments/map.rs:183
Function
entrypoint
()
python/ruff-ecosystem/ruff_ecosystem/cli.py:33
Function
enum_attributes
()
crates/ty_ide/src/completion.rs:5269
Method
enum_literal
Create a promotable enum literal.
crates/ty_python_semantic/src/types.rs:3412
← previous
next →
18,301–18,400 of 31,766, ranked by callers