MCPcopy Create free account

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

Functions31,562 in github.com/astral-sh/ruff

Functionwhile_trailing_end_of_line_comment
()
crates/ruff_python_formatter/src/comments/mod.rs:1076
Functionwhile_true
()
crates/ruff_linter/resources/test/fixtures/flake8_return/RET503.py:279
Functionwhite_space_syntax_error_compatibility
()
crates/ruff_linter/src/rules/pycodestyle/mod.rs:215
Methodwiden
(db: &'db dyn Db, env: &ProgramEnvironment<'db>, elements: &[Type<'db>])
crates/ty_python_semantic/src/types/literal.rs:560
Methodwiden_growing_tuples
Widen tuple unions that acquire new lengths between successive cycle results. Normalizing an existing union during cycle recovery does not imply that
crates/ty_python_semantic/src/types/set_theoretic.rs:276
Functionwildcard
()
crates/ruff/tests/analyze_graph.rs:696
Functionwildcard_reexport_all_empty
()
crates/ty_ide/src/symbols.rs:2416
Functionwildcard_reexport_all_empty_not_applies_to_importer
()
crates/ty_ide/src/symbols.rs:2436
Functionwildcard_reexport_all_empty_then_added_to
()
crates/ty_ide/src/symbols.rs:2483
Functionwildcard_reexport_all_empty_then_added_to_incorrect
()
crates/ty_ide/src/symbols.rs:2537
Functionwildcard_reexport_all_include_all_and_non_existent
()
crates/ty_ide/src/symbols.rs:2607
Functionwildcard_reexport_all_include_all_applies_to_importer
()
crates/ty_ide/src/symbols.rs:2458
Functionwildcard_reexport_all_include_all_then_added_to
()
crates/ty_ide/src/symbols.rs:2506
Functionwildcard_reexport_all_include_all_then_added_to_correct
()
crates/ty_ide/src/symbols.rs:2560
Functionwildcard_reexport_all_include_all_with_others_applies_to_importer
()
crates/ty_ide/src/symbols.rs:2653
Functionwildcard_reexport_all_non_empty_but_non_existent
()
crates/ty_ide/src/symbols.rs:2586
Functionwildcard_reexport_all_not_applies_to_importer
()
crates/ty_ide/src/symbols.rs:2628
Functionwildcard_reexport_all_simple
()
crates/ty_ide/src/symbols.rs:2377
Functionwildcard_reexport_all_simple_include_all
()
crates/ty_ide/src/symbols.rs:2395
Functionwildcard_reexport_double_underscore_no_all
()
crates/ty_ide/src/symbols.rs:2302
Functionwildcard_reexport_normal_from_import_no_all
()
crates/ty_ide/src/symbols.rs:2346
Functionwildcard_reexport_normal_import_no_all
()
crates/ty_ide/src/symbols.rs:2318
Functionwildcard_reexport_redundant_from_import_no_all
()
crates/ty_ide/src/symbols.rs:2362
Functionwildcard_reexport_redundant_import_no_all
()
crates/ty_ide/src/symbols.rs:2334
Functionwildcard_reexport_simple_no_all
()
crates/ty_ide/src/symbols.rs:2274
Functionwildcard_reexport_single_underscore_no_all
()
crates/ty_ide/src/symbols.rs:2286
Methodwill_break
(&self)
crates/ruff_formatter/src/format_element/document.rs:692
Functionwindows_component_equality_and_borrowed_lookup
()
crates/ruff_db/src/system/path.rs:1032
Functionwith
()
crates/ty_python_core/src/use_def/place_state.rs:841
Functionwith
()
crates/ruff_linter/src/rules/mccabe/rules/function_is_too_complex.rs:455
Functionwith
()
crates/ruff_linter/src/rules/pylint/helpers.rs:605
Functionwith_backslash
Sum\\mary.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D300.py:1
Methodwith_capacity
Returns [`CFGBuilder`] with vector of blocks initialized at given capacity and with both initial and terminal blocks populated.
crates/ruff_python_semantic/src/cfg/graph.rs:171
Methodwith_capacity
Creates a buffer with the specified capacity
crates/ruff_formatter/src/buffer.rs:187
Methodwith_capacity
(capacity: usize)
crates/ruff_formatter/src/printer/mod.rs:912
Methodwith_capacity
(capacity: usize)
crates/ruff_python_ast/src/name.rs:475
Methodwith_capacity
(bindings: usize, declaration_map: usize, declarations: usize)
crates/ty_python_core/src/use_def.rs:361
Methodwith_capacity
(capacity: usize)
crates/ruff_python_parser/src/parser/scratch_buffer.rs:17
Methodwith_capacity
Create a new [`CellOffsets`] with the given capacity.
crates/ruff_notebook/src/cell.rs:264
Methodwith_capacity
(capacity: usize)
crates/ty_python_semantic/src/types/tuple.rs:2968
Methodwith_capacity
(capacity: usize)
crates/ruff_linter/src/noqa.rs:1319
Methodwith_capacity
(tokens: usize)
crates/ruff_linter/src/rules/pycodestyle/rules/logical_lines/mod.rs:384
Methodwith_capacity
(capacity: usize)
crates/ruff_index/src/vec.rs:26
Methodwith_client_capabilities
(mut self, capabilities: ClientCapabilities)
crates/ty_server/tests/e2e/main.rs:1609
Methodwith_client_capabilities
(mut self, capabilities: ClientCapabilities)
crates/ruff_server/tests/e2e/main.rs:1113
Functionwith_comment
()
crates/ruff_linter/resources/test/fixtures/flake8_simplify/SIM105_0.py:99
Methodwith_comments
(self)
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP008.py:136
Methodwith_condition
(mut self, condition: Option<Condition>)
crates/ruff_formatter/src/format_element/tag.rs:209
Methodwith_config
( path: &'static str, files: &[(&'static str, &'static str)], config: &'st
crates/ty_python_semantic/src/types/dedicated/pytest/fixtures.rs:3436
Methodwith_configured_search_paths
Starts a search using configured search paths.
crates/ty_module_resolver/src/resolve/search.rs:127
Methodwith_content
(content: String)
crates/ruff_python_semantic/src/cfg/visualize.rs:47
Methodwith_current_directory
Creates a new, empty in memory file system with the given current working directory.
crates/ruff_db/src/system/memory_fs.rs:45
Methodwith_dataclass_params
Returns a new `ClassLiteral` with the given dataclass params, preserving all other fields.
crates/ty_python_semantic/src/types/class.rs:1105
Methodwith_dataclass_params
Returns a new [`DynamicClassLiteral`] with the given dataclass params, preserving all other fields.
crates/ty_python_semantic/src/types/class/dynamic_literal.rs:541
Methodwith_definedness
( member: PlaceAndQualifiers<'db>, definedness: Definedness, )
crates/ty_python_semantic/src/types.rs:4725
Methodwith_definition
(mut self, definition: Definition<'db>)
crates/ty_python_semantic/src/place.rs:185
Methodwith_definition
(ty: Type<'db>, definition: Option<Definition<'db>>)
crates/ty_python_semantic/src/types/protocol_class.rs:1349
Methodwith_deprecated
(self, db: &'db dyn Db, deprecated: OverloadLiteral<'db>)
crates/ty_python_semantic/src/types/callable.rs:791
Methodwith_diff
(mut self, expected: String, actual: String)
crates/mdtest/src/matcher.rs:83
Methodwith_editor_settings
Merges the `configuration` with the editor-defined settings, falling back to the unmodified configuration if the editor settings are invalid.
crates/ruff_server/src/session/index/ruff_settings.rs:132
Functionwith_ellipsis
()
crates/ruff_linter/resources/test/fixtures/flake8_simplify/SIM105_0.py:83
Functionwith_ellipsis_and_return
()
crates/ruff_linter/resources/test/fixtures/flake8_simplify/SIM105_0.py:91
Methodwith_errors
(result_ty: Type<'db>, errors: Vec<SubscriptErrorKind<'db>>)
crates/ty_python_semantic/src/types/subscript.rs:248
Methodwith_expression_type
( annotation_ty: TypeAndQualifiers<'db>, expression_ty: Type<'db>, )
crates/ty_python_semantic/src/types/infer/builder/annotation_expression.rs:38
Functionwith_feature
Some decorator
crates/ruff_linter/resources/test/fixtures/pycodestyle/E30.py:131
Methodwith_file
(path: impl AsRef<Path>, content: &str)
crates/ty/tests/common/mod.rs:76
Methodwith_file
Creates a test fixture with a single file. # Arguments `path` - The relative path for the file `content` - The content to write to the file # Examp
crates/ruff/tests/cli/main.rs:124
Methodwith_file
(path: impl AsRef<std::path::Path>, content: &str)
crates/ruff/tests/cli/analyze_graph.rs:174
Methodwith_file
(path: impl AsRef<std::path::Path>, content: &str)
crates/ruff/tests/cli/version.rs:112
Methodwith_files
( files: impl IntoIterator<Item = (&'a str, &'a str)>, )
crates/ty/tests/common/mod.rs:68
Methodwith_files
( files: impl IntoIterator<Item = (&'a str, &'a str)>, )
crates/ruff/tests/cli/main.rs:64
Methodwith_files
(files: impl IntoIterator<Item = (&'a str, &'a str)>)
crates/ruff/tests/cli/analyze_graph.rs:167
Methodwith_files
(mut self, files: I)
crates/ruff_server/tests/e2e/main.rs:1139
Methodwith_files
(path: &'static str, files: &[(&'static str, &'static str)])
crates/ty_python_semantic/src/types/dedicated/pytest/fixtures.rs:3418
Methodwith_files_and_src_roots
( path: &'static str, files: &[(&'static str, &'static str)], src_roots: V
crates/ty_python_semantic/src/types/dedicated/pytest/fixtures.rs:3425
Functionwith_forward_ref
(t: T)
crates/ruff_linter/resources/test/fixtures/pyflakes/F821_17.py:28
Methodwith_group_id
(mut self, id: Option<GroupId>)
crates/ruff_formatter/src/format_element/tag.rs:344
Methodwith_id
(mut self, id: Option<GroupId>)
crates/ruff_formatter/src/format_element/tag.rs:234
Functionwith_if
()
crates/ruff_linter/src/rules/pylint/rules/too_many_return_statements.rs:200
Methodwith_inherited_generic_context
( &self, db: &'db dyn Db, inherited_generic_context: GenericContext<'db>, )
crates/ty_python_semantic/src/types/signatures.rs:234
Methodwith_initialization_options
(mut self, options: serde_json::Value)
crates/ruff_server/tests/e2e/main.rs:1016
Methodwith_inline
(inline: &'a str)
crates/ty_ide/src/docstring/document.rs:175
Methodwith_item
(mut self, item: T)
crates/ruff_formatter/src/lib.rs:779
Functionwith_item_definition
()
crates/ty_python_core/src/lib.rs:1856
Functionwith_item_suggests_as
()
crates/ty_ide/src/completion.rs:8902
Functionwith_item_unpacked_definition
()
crates/ty_python_core/src/lib.rs:1879
Functionwith_lambda
()
crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_skip/compound_one_liners.py:86
Functionwith_leading_comment
()
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/function.py:116
Methodwith_leading_comments
( mut self, comments: &'a [SourceComment], last_node: Option<N>, )
crates/ruff_python_formatter/src/statement/clause.rs:535
Methodwith_level
(level: Level<'a>)
crates/ruff_annotate_snippets/src/snippet.rs:74
Methodwith_methods
Synthesize a new protocol interface with the given methods.
crates/ty_python_semantic/src/types/protocol_class.rs:811
Methodwith_mode
(mut self, mode: GroupMode)
crates/ruff_formatter/src/format_element/tag.rs:240
Methodwith_no_comments
(value: &'a str, element_range: TextRange)
crates/ruff_linter/src/rules/ruff/rules/sequence_sorting.rs:862
Methodwith_node_count
(node_count: usize)
crates/ty_python_core/src/ast_ids.rs:58
Methodwith_offset
(text: &'a str, offset: TextSize)
crates/ruff_source_file/src/newlines.rs:43
Methodwith_options
(mut self, options: O)
crates/ruff_formatter/src/lib.rs:728
Methodwith_options
(mut self, options: Self::Options)
crates/ruff_python_formatter/src/expression/expr_generator.rs:25
Methodwith_options
(mut self, options: Self::Options)
crates/ruff_python_formatter/src/expression/expr_tuple.rs:107
Methodwith_options
(mut self, options: Self::Options)
crates/ruff_python_formatter/src/expression/expr_if.rs:39
Methodwith_options
(mut self, layout: StringLiteralKind)
crates/ruff_python_formatter/src/other/string_literal.rs:16
← previousnext →31,301–31,400 of 31,562, ranked by callers