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
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:1636
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:1035
Function
empty_notebook
()
crates/ruff_notebook/src/notebook.rs:547
Function
empty_raise_statement
()
crates/ty_ide/src/completion.rs:11479
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:644
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:2810
Method
enable_workspace_configuration
(mut self, enabled: bool)
crates/ruff_server/tests/e2e/main.rs:1092
Method
enabled
()
crates/ty/src/printer.rs:124
Method
enabled
( &self, meta: &tracing::Metadata<'_>, _: &tracing_subscriber::layer::Context<'_, S>,
crates/ty_server/src/logging.rs:113
Method
enabled
( &self, meta: &tracing::Metadata<'_>, _: &tracing_subscriber::layer::Context<'_, S>,
crates/ruff_server/src/logging.rs:103
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:1035
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:1254
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:599
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:5259
Method
enum_literal
Create a promotable enum literal.
crates/ty_python_semantic/src/types.rs:3413
Function
enum_named_fields_variant
()
crates/ruff_cache/tests/cache_key.rs:113
Function
enum_unit_variant
()
crates/ruff_cache/tests/cache_key.rs:100
Function
enum_unnamed_fields_variant
()
crates/ruff_cache/tests/cache_key.rs:129
Function
enumerates_directory_aliases_without_recursing_into_cycles
()
crates/ty_module_resolver/src/list.rs:1666
Function
enumerates_local_descendants_of_protected_standard_library_modules
()
crates/ty_module_resolver/src/list.rs:1614
Method
enumeration_allowed_after_step
Every step below a search root must use an ordinary directory.
crates/ty_module_resolver/src/path.rs:378
Function
enumeration_includes_stub_override_descendants_of_source_modules
()
crates/ty_module_resolver/src/list.rs:1577
Function
enumeration_tracks_file_and_initializer_changes
()
crates/ty_module_resolver/src/list.rs:1476
Function
enumeration_tracks_new_stub_override_descendants_of_file_children
()
crates/ty_module_resolver/src/list.rs:1588
Function
enumeration_tracks_typing_marker_changes
()
crates/ty_module_resolver/src/list.rs:1543
Function
enumeration_tracks_unresolved_name_changes
()
crates/ty_module_resolver/src/list.rs:1417
Method
env_var
Fetches the environment variable `key` from the current process. # Errors Returns [`std::env::VarError::NotPresent`] if: - The variable is not set.
crates/ruff_db/src/system.rs:222
Method
env_var
(&self, name: &str)
crates/ruff_db/src/system/test.rs:198
Method
env_var
(&self, name: &str)
crates/ruff_db/src/system/os.rs:222
Function
env_var_expansion_uses_system_env
()
crates/ty_project/src/metadata/value.rs:184
Function
environment_can_be_omitted
()
crates/ty_project/src/uv/metadata.rs:289
Function
environment_options
()
crates/ty/tests/cli/scripts.rs:335
Method
eq
(&self, other: &Self)
crates/ty_project/src/glob/exclude.rs:166
Method
eq
(&self, other: &Self)
crates/ty_project/src/glob/include.rs:153
Method
eq
(&self, other: &Self)
crates/ruff_source_file/src/lib.rs:95
← previous
next →
18,201–18,300 of 31,562, ranked by callers