MCPcopy Create free account

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

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

Functionnever_satisfied_results_depend_on_inferable
()
crates/ty_python_semantic/src/types/constraints.rs:6208
Methodnew
Splice `replacement` into the [`Snippet`] at the specified byte span <div class="warning"> Text passed to this function is considered "untrusted inp
crates/ruff_annotate_snippets/src/snippet.rs:477
Methodnew
(complete: &str, patches: &[TrimmedPatch<'_>], sm: &SourceMap<'_>)
crates/ruff_annotate_snippets/src/renderer/render.rs:2544
Methodnew
( whitespace_left: usize, span_left: usize, span_right: usize, label_right: us
crates/ruff_annotate_snippets/src/renderer/margin.rs:27
Methodnew
(source: &'a str, line_start: usize)
crates/ruff_annotate_snippets/src/renderer/source_map.rs:17
Methodnew
(ch: char, style: ElementStyle)
crates/ruff_annotate_snippets/src/renderer/styled_buffer.rs:27
Methodnew
(include: IncludeFilter, exclude: ExcludeFilter)
crates/ty_project/src/glob.rs:27
Methodnew
Creates a project with the given name and root that uses the default options.
crates/ty_project/src/metadata.rs:78
Methodnew
( project_metadata: ProjectMetadata, system: S, strategy: &Strategy, )
crates/ty_project/src/db.rs:160
Methodnew
(path: impl AsRef<SystemPath>, source: ValueSource)
crates/ty_project/src/metadata/value.rs:39
Methodnew
Create a validated, normalized package name.
crates/ty_project/src/metadata/pyproject.rs:205
Methodnew
(id: DiagnosticId, message: String, severity: Severity)
crates/ty_project/src/metadata/options.rs:2503
Methodnew
()
crates/ty_project/src/glob/exclude.rs:75
Methodnew
()
crates/ty_project/src/glob/include.rs:184
Methodnew
Create a new project watcher.
crates/ty_project/src/watch/project_watcher.rs:34
Methodnew
(system: &dyn System)
crates/ty_project/src/uv/command.rs:19
Methodnew
(results_sender: Sender<UvMetadataResult>, wake_sender: Sender<()>)
crates/ty_project/src/uv/service.rs:50
Methodnew
(use_uv: UseUv)
crates/ty_project/src/uv/environments.rs:116
Methodnew
()
crates/ty_project/src/uv/metadata/string_interner.rs:24
Methodnew
(verbosity: VerbosityLevel, no_progress: bool)
crates/ty/src/printer.rs:15
Methodnew
(mode: MainLoopMode, printer: Printer)
crates/ty/src/lib.rs:322
Methodnew
()
crates/ty/tests/common/mod.rs:23
Methodnew
(content: &'src str, index: &'index LineIndex)
crates/ruff_source_file/src/lib.rs:30
Methodnew
Creates a non-zero if the given value is not zero.
crates/ruff_source_file/src/line_index.rs:586
Methodnew
(text: &'a str, offset: TextSize)
crates/ruff_source_file/src/newlines.rs:206
Methodnew
(source: &'a [u8], layout: EscapeLayout)
crates/ruff_python_literal/src/escape.rs:483
Methodnew
()
crates/ruff_python_semantic/src/globals.rs:65
Methodnew
( typing_modules: &'a [String], custom_builtins: &'a [String], target_version: PythonV
crates/ruff_python_semantic/src/model.rs:208
Methodnew
Initialize a new [`DunderAllDefinition`] instance.
crates/ruff_python_semantic/src/model/all.rs:57
Methodnew
(cfg: ControlFlowGraph<'stmt>, source: &'stmt str)
crates/ruff_python_semantic/src/cfg/visualize.rs:163
Methodnew
(client_capabilities: &ClientCapabilities)
crates/ty_server/src/capabilities.rs:216
Methodnew
( worker_threads: NonZeroUsize, connection: Connection, native_system: Arc<dyn System
crates/ty_server/src/server.rs:45
Methodnew
( resolved_client_capabilities: ResolvedClientCapabilities, position_encoding: PositionEncodin
crates/ty_server/src/session.rs:169
Methodnew
( index: Arc<Index>, native_system: Arc<dyn System + 'static + Send + Sync + RefUnwindSafe>,
crates/ty_server/src/system.rs:92
Methodnew
()
crates/ty_server/src/session/request_queue.rs:17
Methodnew
()
crates/ty_server/src/session/index.rs:19
Methodnew
(main_loop_sender: MainLoopSender, client_sender: ConnectionSender)
crates/ty_server/src/session/client.rs:20
Methodnew
(capabilities: ResolvedClientCapabilities)
crates/ty_server/src/session/file_watcher.rs:67
Methodnew
( uri: Uri, contents: String, version: DocumentVersion, language_id: LanguageK
crates/ty_server/src/document/text_document.rs:52
Methodnew
( uri: lsp_types::Uri, notebook_version: DocumentVersion, cells: Vec<lsp_types::Notebo
crates/ty_server/src/document/notebook.rs:43
Methodnew
( client: &Client, request_token: Option<ProgressToken>, title: &str, capabili
crates/ty_server/src/server/lazy_work_done_progress.rs:50
Methodnew
(err: anyhow::Error, code: server::ErrorCode)
crates/ty_server/src/server/api.rs:589
Methodnew
(worker_threads: NonZeroUsize)
crates/ty_server/src/server/schedule.rs:39
Methodnew
(work_done: LazyWorkDoneProgress, response: ResponseWriter<'a>)
crates/ty_server/src/server/api/requests/workspace_diagnostic.rs:234
Methodnew
(priority: ThreadPriority)
crates/ty_server/src/server/schedule/thread.rs:41
Methodnew
(threads: NonZeroUsize)
crates/ty_server/src/server/schedule/thread/pool.rs:47
Methodnew
Create a new test server with the given workspace configurations
crates/ty_server/tests/e2e/main.rs:226
Methodnew
(name: &str)
crates/ty_module_resolver/src/module_name.rs:34
Methodnew
( db: &'db dyn Db, resolver_environment: ResolverEnvironment<'db>, mode: ModuleResolve
crates/ty_module_resolver/src/resolve.rs:1852
Methodnew
()
crates/ty_module_resolver/src/db.rs:34
Methodnew
Creates a new empty builder.
crates/ty_module_resolver/src/module_glob.rs:144
Methodnew
(src_roots: Vec<SystemPathBuf>)
crates/ty_module_resolver/src/settings.rs:38
Methodnew
( context: &ResolverContext<'db>, path: ModulePath, enumeration_allowed: Option<bool>,
crates/ty_module_resolver/src/path.rs:278
Methodnew
()
crates/ty_module_resolver/src/testing.rs:185
Methodnew
(db: &dyn Db, candidate: &ModuleResolutionCandidate<'_>)
crates/ty_module_resolver/src/resolve/search.rs:526
Methodnew
(text: &'a str)
crates/ruff_formatter/src/source_code.rs:12
Methodnew
(value: NonZeroU32, debug_name: &'static str)
crates/ruff_formatter/src/group_id.rs:14
Methodnew
(state: &'a mut FormatState<Context>)
crates/ruff_formatter/src/buffer.rs:178
Methodnew
(mode: LineMode)
crates/ruff_formatter/src/builders.rs:200
Methodnew
(options: SimpleFormatOptions)
crates/ruff_formatter/src/lib.rs:226
Methodnew
Creates a new context that uses the given formatter context
crates/ruff_formatter/src/formatter.rs:15
Methodnew
(value: &'fmt F)
crates/ruff_formatter/src/arguments.rs:20
Methodnew
(inner: F)
crates/ruff_formatter/src/format_extensions.rs:79
Methodnew
(content: Vec<FormatElement>)
crates/ruff_formatter/src/format_element.rs:158
Methodnew
(indent: Indentation)
crates/ruff_formatter/src/printer/call_stack.rs:35
Methodnew
(source_code: SourceCode<'a>, options: PrinterOptions)
crates/ruff_formatter/src/printer/mod.rs:42
Methodnew
(original: &'a [T])
crates/ruff_formatter/src/printer/stack.rs:39
Methodnew
(slice: &'a [FormatElement])
crates/ruff_formatter/src/printer/queue.rs:67
Methodnew
(width: u16)
crates/ruff_formatter/src/printer/printer_options/mod.rs:65
Methodnew
(source_code: SourceCode<'a>)
crates/ruff_formatter/src/format_element/document.rs:210
Methodnew
()
crates/ruff_formatter/src/format_element/tag.rs:204
Methodnew
(source: TextSize, dest: TextSize)
crates/ruff_diagnostics/src/source_map.rs:16
Methodnew
(project: RealWorldProject<'a>)
crates/ruff_benchmark/benches/ty.rs:2742
Methodnew
Creates the selected layout and records its expected modules and matching symbols.
crates/ruff_benchmark/benches/ty_ide.rs:160
Methodnew
(project: RealWorldProject<'a>)
crates/ruff_benchmark/benches/ty_walltime.rs:23
Methodnew
(name: &'static str, code: &'static str)
crates/ruff_benchmark/src/lib.rs:47
Methodnew
Create a new task for the Python project at `project_path`. `truth` should correspond to the completion configuration and the expected answer for com
crates/ty_completion_eval/src/main.rs:271
Methodnew
(f: &'fmt mut PyFormatter<'ast, 'buf, 'state>, sequence_end: TextSize)
crates/ruff_python_formatter/src/builders.rs:137
Methodnew
(range: TextRange, context: &'a PyFormatContext<'ast>)
crates/ruff_python_formatter/src/range.rs:181
Methodnew
(tokens: Iter<'a, AstToken>, verbatim_range: TextRange)
crates/ruff_python_formatter/src/verbatim.rs:817
Methodnew
( options: PyFormatOptions, contents: &'a str, comments: Comments<'a>, trivia:
crates/ruff_python_formatter/src/context.rs:37
Methodnew
( expression_comments: &LeadingDanglingTrailingComments<'a>, statement: AnyNodeRef<'a>,
crates/ruff_python_formatter/src/statement/stmt_assign.rs:1159
Methodnew
(context: &'input PyFormatContext)
crates/ruff_python_formatter/src/expression/mod.rs:614
Methodnew
(index: usize)
crates/ruff_python_formatter/src/expression/binary_like.rs:1045
Methodnew
(item: &'a DictItem)
crates/ruff_python_formatter/src/expression/expr_dict.rs:84
Methodnew
(expr: &'a ExprTuple)
crates/ruff_python_formatter/src/expression/expr_tuple.rs:212
Methodnew
Looks for a valid doctest PS1 prompt in the line given. If one was found, then state for a new doctest code example is returned, along with the code
crates/ruff_python_formatter/src/string/docstring.rs:881
Methodnew
(input: &'str str, start_offset: usize)
crates/ruff_python_formatter/src/string/normalize.rs:776
Methodnew
(string: impl Into<StringLike<'a>>)
crates/ruff_python_formatter/src/string/implicit.rs:36
Methodnew
(flags: AnyStringFlags, layout: InterpolatedStringLayout)
crates/ruff_python_formatter/src/other/interpolated_string.rs:13
Methodnew
(identifier: &'a Identifier)
crates/ruff_python_formatter/src/other/identifier.rs:52
Methodnew
( element: &'a InterpolatedStringElement, context: InterpolatedStringContext, )
crates/ruff_python_formatter/src/other/interpolated_string_element.rs:31
Methodnew
(slice: SourceCodeSlice, position: CommentLinePosition)
crates/ruff_python_formatter/src/comments/mod.rs:127
Methodnew
(comment: &'a SourceComment, source_code: SourceCode<'a>)
crates/ruff_python_formatter/src/comments/debug.rs:18
Methodnew
( source_code: SourceCode<'a>, comment_ranges: &'a CommentRanges, builder: &'builder m
crates/ruff_python_formatter/src/comments/visitor.rs:40
Methodnew
()
crates/ruff_python_formatter/src/comments/map.rs:63
Methodnew
(title: &'a str)
crates/ruff_python_formatter/tests/fixtures.rs:530
Methodnew
()
crates/ruff_unicode_names2_generator/src/trie.rs:10
Methodnew
()
crates/ruff_db/src/lib.rs:154
Methodnew
(value: u128)
crates/ruff_db/src/file_revision.rs:17
← previousnext →25,301–25,400 of 31,562, ranked by callers