MCPcopy Create free account

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

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

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
Methodwith_options
(mut self, options: Self::Options)
crates/ruff_python_formatter/src/other/match_case.rs:19
Methodwith_options
(mut self, options: Self::Options)
crates/ruff_python_formatter/src/other/parameters.rs:44
Methodwith_options
(mut self, options: Self::Options)
crates/ruff_python_formatter/src/other/except_handler_except_handler.rs:30
Methodwith_origin
( context: &ResolverContext<'db>, search_path: &SearchPath, origin: CandidateOrigin,
crates/ty_module_resolver/src/resolve.rs:1345
Functionwith_parens
()
crates/ruff_linter/resources/test/fixtures/airflow/AIR004.py:40
Methodwith_paths
(context: &'a ResolverContext<'db>, search_paths: RootSearchPaths<'db>)
crates/ty_module_resolver/src/resolve/search.rs:297
Methodwith_preferred_quote
(source: &'a str, quote: Quote)
crates/ruff_python_literal/src/escape.rs:63
Methodwith_property_members
Synthesize a new protocol interface with the given members. All created members will be covariant, read-only property members rather than method memb
crates/ty_python_semantic/src/types/protocol_class.rs:803
Methodwith_protocol_fallback
( db: &'db dyn Db, selected: Type<'db>, has_protocol_fallback: bool, )
crates/ty_python_semantic/src/types/class.rs:3538
Methodwith_python_platform
(mut self, platform: PythonPlatform)
crates/ty_python_semantic/src/db.rs:257
Methodwith_python_version
(mut self, version: PythonVersion)
crates/ty_python_semantic/src/db.rs:252
Functionwith_random_comments
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/generics_wrapping.py:111
Methodwith_range
(value: T, source: ValueSource, range: TextRange)
crates/ruff_ranged_value/src/lib.rs:192
Methodwith_return
(self)
crates/ruff_linter/resources/test/fixtures/ruff/RUF066_custom_property_decorator.py:10
Methodwith_root
(root: &str)
crates/ruff_db/src/system/os/ignore.rs:44
Methodwith_separator
Creates a new instance that prints the passed separator between every two entries.
crates/ruff_formatter/src/builders.rs:2462
Methodwith_settings
( setup_settings: impl FnOnce(&Path, insta::Settings) -> insta::Settings, )
crates/ruff/tests/cli/main.rs:72
Methodwith_source
(source: &str)
crates/ty_ide/src/code_action.rs:930
Methodwith_source_code
(mut self, code: &str)
crates/ruff_formatter/src/lib.rs:234
Methodwith_source_map
Sets the source and maps deserialized TOML ranges into that source.
crates/ruff_ranged_value/src/lib.rs:86
Methodwith_start
(&self, offset: TextSize)
crates/ruff_text_size/src/range.rs:367
Functionwith_statement
()
crates/ruff_linter/src/rules/pylint/rules/too_many_branches.rs:406
Functionwith_statement_wrong
statements inside the with statement should get counted
crates/ruff_linter/resources/test/fixtures/pylint/too_many_branches.py:80
Functionwith_stmt
()
crates/ty_ide/src/semantic_tokens.rs:4830
Methodwith_stmt
(self)
crates/ruff_python_ast/src/generated.rs:782
Methodwith_supplied_search_paths
Starts a search using only the supplied search paths.
crates/ty_module_resolver/src/resolve/search.rs:131
Methodwith_tab_width
(mut self, width: IndentWidth)
crates/ruff_formatter/src/printer/printer_options/mod.rs:45
Methodwith_title
Create group with a [`Title`], deriving [`AnnotationKind::Primary`] from its [`Level`]
crates/ruff_annotate_snippets/src/snippet.rs:58
Methodwith_uncertain
Creates a new TDD node with an explicit `if_uncertain` branch, applying local reductions.
crates/ty_python_semantic/src/types/constraints.rs:2206
Methodwith_vec
Creates a new stack that uses `stack` for storing its elements.
crates/ruff_formatter/src/printer/stack.rs:44
Functionwithin_function_definition_member_conflict
()
crates/ty_ide/src/importer.rs:711
Functionwithin_function_definition_module_conflict
()
crates/ty_ide/src/importer.rs:734
Functionwithin_function_definition_simple
()
crates/ty_ide/src/importer.rs:688
Functionwithout_declaration_control_flow
()
crates/ty_ide/src/find_references.rs:2366
Functionwithout_declaration_excludes_attribute_assignment_after_base_rebind
()
crates/ty_ide/src/find_references.rs:2455
Functionwithout_declaration_excludes_initial_assignment
()
crates/ty_ide/src/find_references.rs:2269
Functionwithout_declaration_excludes_initial_attribute_assignment
()
crates/ty_ide/src/find_references.rs:2433
Functionwithout_declaration_excludes_live_conditional_assignments
()
crates/ty_ide/src/find_references.rs:2412
Functionwithout_declaration_excludes_repeated_annotation
()
crates/ty_ide/src/find_references.rs:2329
Functionwithout_declaration_excludes_type_alias_name
()
crates/ty_ide/src/find_references.rs:2348
Functionwithout_declaration_keeps_assignment_after_annotation
()
crates/ty_ide/src/find_references.rs:2308
Functionwithout_declaration_keeps_binding_when_declaration_is_partial
()
crates/ty_ide/src/find_references.rs:2389
Functionwithout_declaration_keeps_reassignment_without_declaration
()
crates/ty_ide/src/find_references.rs:2287
Methodwithout_spans
()
crates/ruff_ranged_value/src/lib.rs:94
Functionworks_in_function_name
()
crates/ty_server/tests/e2e/signature_help.rs:14
Functionworkspace_check_does_not_synchronize_unsaved_script_metadata
()
crates/ty_server/tests/e2e/goto_definition.rs:362
Functionworkspace_dependencies_do_not_apply_to_scripts
()
crates/ty/tests/cli/scripts.rs:1890
Functionworkspace_diagnostic_caching
()
crates/ty_server/tests/e2e/pull_diagnostics.rs:700
Functionworkspace_diagnostic_caching_settings_changed
()
crates/ty_server/tests/e2e/pull_diagnostics.rs:653
Functionworkspace_diagnostic_caching_unchanged_with_colon_in_path
()
crates/ty_server/tests/e2e/pull_diagnostics.rs:871
Functionworkspace_diagnostic_long_polling_responds_on_cancellation
()
crates/ty_server/tests/e2e/pull_diagnostics.rs:1313
Functionworkspace_diagnostic_long_polling_responds_on_change
()
crates/ty_server/tests/e2e/pull_diagnostics.rs:1255
Functionworkspace_diagnostic_long_polling_responds_on_shutdown
()
crates/ty_server/tests/e2e/pull_diagnostics.rs:1221
Functionworkspace_diagnostic_long_polling_suspend_change_suspend_cycle
()
crates/ty_server/tests/e2e/pull_diagnostics.rs:1356
Functionworkspace_diagnostic_registration
()
crates/ty_server/tests/e2e/initialize.rs:291
Functionworkspace_diagnostic_registration_via_initialization
()
crates/ty_server/tests/e2e/initialize.rs:213
Functionworkspace_diagnostic_registration_without_configuration
()
crates/ty_server/tests/e2e/initialize.rs:128
Functionworkspace_diagnostic_streaming
()
crates/ty_server/tests/e2e/pull_diagnostics.rs:959
Functionworkspace_diagnostic_streaming_with_caching
()
crates/ty_server/tests/e2e/pull_diagnostics.rs:1074
Methodworkspace_diagnostics
( snapshot: &SessionSnapshot, client: &Client, params: WorkspaceDiagnosticParams,
crates/ty_server/src/server/api/requests/workspace_diagnostic.rs:113
Functionworkspace_groups_apply_to_each_member_and_virtual_root
()
crates/ty_project/src/uv/metadata/dependencies.rs:487
Functionworkspace_pull_finishes_when_all_diagnostics_were_streamed
()
crates/ty_server/tests/e2e/pull_diagnostics.rs:1038
Functionworkspace_reports_current_analysis_unreachable_code_hint_tag
()
crates/ty_server/tests/e2e/pull_diagnostics.rs:271
Functionworkspace_reports_unreachable_code_hint_tag
()
crates/ty_server/tests/e2e/pull_diagnostics.rs:241
Functionworkspace_reports_unused_binding_hint_tag
()
crates/ty_server/tests/e2e/pull_diagnostics.rs:213
Methodworkspace_root_folders
Returns an iterator over the workspace root folders in the session.
crates/ruff_server/src/session.rs:220
Methodworkspace_root_folders
Returns an iterator over the workspace root folders contained in this index.
crates/ruff_server/src/session/index.rs:388
Methodworkspace_symbols
(&self, query: &str)
crates/ty_ide/src/workspace_symbols.rs:193
Functionworkspace_symbols_multi_file
()
crates/ty_ide/src/workspace_symbols.rs:65
Functionworkspace_without_members_can_supply_groups
()
crates/ty_project/src/uv/metadata/dependencies.rs:519
Methodwrap
(diagnostic: diagnostic::Diagnostic)
crates/ty_wasm/src/lib.rs:903
Methodwrap
Construct a method descriptor, retaining function and callable representations that already encode the matching descriptor binding. Other callables ne
crates/ty_python_semantic/src/types/known_instance.rs:100
Functionwrapper
()
crates/ruff_linter/resources/test/fixtures/pycodestyle/E204.py:2
Functionwrapper
(*args)
crates/ruff_linter/resources/test/fixtures/pycodestyle/E30.py:135
Methodwritable_system
(&self)
crates/ty_project/src/db.rs:693
Methodwritable_system
(&self)
crates/ty_test/src/db.rs:209
Methodwritable_system
(&self)
crates/ruff_mdtest/src/db.rs:49
Methodwrite
(&mut self, buf: &[u8])
crates/ty/src/logging.rs:307
Methodwrite
Writes diagnostics to an I/O writer.
crates/ruff_db/src/diagnostic/render.rs:72
Methodwrite
(&mut self, bytes: &[u8])
crates/ruff_cache/src/cache_key.rs:415
Methodwrite_bits
(words: &mut [u64], bit: usize, value: u64, bits: u8)
crates/ruff_db/src/parsed.rs:513
Methodwrite_element
(&mut self, element: FormatElement)
crates/ruff_formatter/src/formatter.rs:221
Methodwrite_escaped
(element: &FormatElement, f: &mut Formatter<IrFormatContext>)
crates/ruff_formatter/src/format_element/document.rs:281
Functionwrite_file_all_fails_if_a_component_is_a_file
()
crates/ruff_db/src/system/memory_fs.rs:890
Methodwrite_file_bytes
(&self, path: &SystemPath, content: &[u8])
crates/ruff_db/src/system/test.rs:237
Functionwrite_file_fails_if_a_parent_directory_is_missing
()
crates/ruff_db/src/system/memory_fs.rs:879
Functionwrite_file_fails_if_path_points_to_a_directory
()
crates/ruff_db/src/system/memory_fs.rs:949
Methodwrite_files
Writes the content of the given files and notifies the Db about the change.
crates/ruff_db/src/system/test.rs:296
Methodwrite_fmt
Glue for usage of the [`write!`] macro with implementers of this trait. This method should generally not be invoked manually, but rather through the
crates/ruff_formatter/src/buffer.rs:58
Methodwrite_fmt
(&mut self, arguments: Arguments<Self::Context>)
crates/ruff_formatter/src/formatter.rs:230
Methodwrite_fmt
(&mut self, args: std::fmt::Arguments<'_>)
crates/ruff_db/src/diagnostic/render.rs:105
Methodwrite_leading_comments
( comments: &[SourceComment], f: &mut PyFormatter, )
crates/ruff_python_formatter/src/comments/format.rs:37
Methodwrite_mock_directory
( db: &mut TestDb, location: impl AsRef<SystemPath>, files: impl IntoIterator<Item = F
crates/ty_module_resolver/src/testing.rs:166
Functionwrite_models
(directory, Models)
crates/ruff_linter/resources/test/fixtures/flake8_simplify/SIM105_0.py:116
Functionwrite_virtual_file
()
crates/ruff_db/src/system/memory_fs.rs:901
Methodwrite_virtual_file
Writes the content of the given virtual file. ## Panics If the db isn't using the [`InMemorySystem`].
crates/ruff_db/src/system/test.rs:330
Functionwrite_whole_file_python_39
()
crates/ruff_linter/src/rules/refurb/mod.rs:83
Functionwrong
Has too many branches.
crates/ruff_linter/resources/test/fixtures/pylint/too_many_branches.py:8
← previousnext →31,601–31,700 of 31,766, ranked by callers