MCPcopy Create free account

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

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

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:2828
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:58
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
Methodnew
(raw_bytes: Vec<u8>)
crates/ruff_db/src/vendored.rs:46
Methodnew
()
crates/ruff_db/src/cancellation.rs:18
Methodnew
(revision: FileRevision, permissions: Option<u32>, file_type: FileType)
crates/ruff_db/src/system.rs:305
Methodnew
(file: File, python_version: PythonVersion, parsed: Parsed<ModModule>)
crates/ruff_db/src/parsed.rs:126
Methodnew
()
crates/ruff_db/src/testing.rs:184
Methodnew
Creates a new resolved set of diagnostics.
crates/ruff_db/src/diagnostic/render.rs:129
Methodnew
Create a new diagnostic with the given identifier, severity and message. The identifier should be something that uniquely identifies the _type_ of di
crates/ruff_db/src/diagnostic/mod.rs:60
Methodnew
(resolver: &'a dyn FileResolver, config: &'a DisplayDiagnosticConfig)
crates/ruff_db/src/diagnostic/render/grouped.rs:20
Methodnew
(resolver: &'a dyn FileResolver, config: &'a DisplayDiagnosticConfig)
crates/ruff_db/src/diagnostic/render/junit.rs:28
Methodnew
(resolver: &'a dyn FileResolver, config: &'a DisplayDiagnosticConfig)
crates/ruff_db/src/diagnostic/render/concise.rs:14
Methodnew
(resolver: &'a dyn FileResolver, config: &'a DisplayDiagnosticConfig)
crates/ruff_db/src/diagnostic/render/json_lines.rs:16
Methodnew
(resolver: &'a dyn FileResolver, config: &'a DisplayDiagnosticConfig)
crates/ruff_db/src/diagnostic/render/pylint.rs:21
Methodnew
(resolver: &'a dyn FileResolver, config: &'a DisplayDiagnosticConfig)
crates/ruff_db/src/diagnostic/render/gitlab.rs:20
Methodnew
(resolver: &'a dyn FileResolver, config: &'a DisplayDiagnosticConfig)
crates/ruff_db/src/diagnostic/render/full.rs:24
Methodnew
(resolver: &'a dyn FileResolver, config: &'a DisplayDiagnosticConfig)
crates/ruff_db/src/diagnostic/render/json.rs:25
Methodnew
( resolver: &'a dyn FileResolver, config: &'a DisplayDiagnosticConfig, metadata: FxHas
crates/ruff_db/src/diagnostic/render/sarif.rs:29
Methodnew
(resolver: &'a dyn FileResolver, config: &'a DisplayDiagnosticConfig)
crates/ruff_db/src/diagnostic/render/azure.rs:16
Methodnew
(resolver: &'a dyn FileResolver, config: &'a DisplayDiagnosticConfig)
crates/ruff_db/src/diagnostic/render/rdjson.rs:21
Methodnew
(resolver: &'a dyn FileResolver, config: &'a DisplayDiagnosticConfig)
crates/ruff_db/src/diagnostic/render/github.rs:16
Methodnew
Creates a command for the given executable.
crates/ruff_db/src/system/command.rs:17
Methodnew
()
crates/ruff_db/src/system/memory_fs.rs:40
Methodnew
(inner: impl WritableSystem + RefUnwindSafe + Send + Sync + 'static)
crates/ruff_db/src/system/test.rs:41
Methodnew
(path: &(impl AsRef<Utf8Path> + ?Sized))
crates/ruff_db/src/system/path.rs:29
Methodnew
(path: impl AsRef<SystemPath>, walker: W)
crates/ruff_db/src/system/walk_directory.rs:27
Methodnew
()
crates/ruff_db/src/system/os/ignore.rs:40
Methodnew
(indent: &'a Indentation, line_ending: LineEnding)
crates/ruff_python_codegen/src/generator.rs:118
Methodnew
(indentation: String)
crates/ruff_python_codegen/src/stylist.rs:147
Methodnew
( diagnostics: Vec<Diagnostic>, notebook_indexes: FxHashMap<String, NotebookIndex>, )
crates/ruff/src/diagnostics.rs:45
Methodnew
( format: OutputFormat, log_level: LogLevel, fix_mode: flags::FixMode, unsafe_
crates/ruff/src/printer.rs:68
Methodnew
(path: PathBuf, package: PackageCache)
crates/ruff/src/cache.rs:145
Methodnew
(results: &'a [FormatPathResult], mode: FormatMode)
crates/ruff/src/commands/format.rs:536
Methodnew
Creates a new test fixture with an empty temporary directory. This sets up: - A temporary directory that's automatically cleaned up - Insta snapshot
crates/ruff/tests/cli/main.rs:60
Methodnew
()
crates/ruff/tests/cli/analyze_graph.rs:158
Methodnew
()
crates/ruff/tests/cli/version.rs:100
Methodnew
(source: ValueSource, is_toml: bool)
crates/ruff_ranged_value/src/lib.rs:77
Methodnew
Creates an identifier matcher that borrows `name` without allocating. The identifier `name` is expected to be NFKC-normalized.
crates/ruff_python_trivia/src/name_matcher.rs:27
Methodnew
Creates a combined set of token-derived range indexes.
crates/ruff_python_trivia/src/comment_ranges.rs:21
Methodnew
(source: &'a str, range: TextRange)
crates/ruff_python_trivia/src/tokenizer.rs:516
Methodnew
(source: &'a str)
crates/ruff_python_trivia/src/cursor.rs:18
Methodnew
Create a new [`Resolver`] for the given [`RootSettings`].
crates/ruff_workspace/src/resolver.rs:73
Methodnew
(project_root: &Path)
crates/ruff_workspace/src/settings.rs:167
Methodnew
(client_capabilities: &ResolvedClientCapabilities)
crates/ruff_server/src/edit.rs:107
Methodnew
( worker_threads: NonZeroUsize, connection: ConnectionInitializer, preview: Option<boo
crates/ruff_server/src/server.rs:51
Methodnew
( client_capabilities: &ClientCapabilities, position_encoding: PositionEncoding, globa
crates/ruff_server/src/session.rs:62
Methodnew
Create a new workspace with the given root URI.
crates/ruff_server/src/workspace.rs:85
Methodnew
()
crates/ruff_server/src/session/request_queue.rs:17
Methodnew
(client_capabilities: &ClientCapabilities)
crates/ruff_server/src/session/capabilities.rs:16
Methodnew
( workspaces: &Workspaces, global: &GlobalClientSettings, client: &Client, )
crates/ruff_server/src/session/index.rs:74
Methodnew
(main_loop_sender: MainLoopSender, client_sender: ConnectionSender)
crates/ruff_server/src/session/client.rs:22
Methodnew
Create the settings index for the given workspace root. This will create the index in the following order: 1. Resolve any settings from above the wor
crates/ruff_server/src/session/index/ruff_settings.rs:134
Methodnew
(err: anyhow::Error, code: server::ErrorCode)
crates/ruff_server/src/server/api.rs:394
Methodnew
(worker_threads: NonZeroUsize)
crates/ruff_server/src/server/schedule.rs:39
Methodnew
(priority: ThreadPriority)
crates/ruff_server/src/server/schedule/thread.rs:41
Methodnew
(threads: NonZeroUsize)
crates/ruff_server/src/server/schedule/thread/pool.rs:48
Methodnew
(contents: String, version: DocumentVersion)
crates/ruff_server/src/edit/text_document.rs:48
Methodnew
( version: DocumentVersion, cells: Vec<lsp_types::NotebookCell>, metadata: Map<String,
crates/ruff_server/src/edit/notebook.rs:33
Methodnew
Create a new test server with the given workspace configurations
crates/ruff_server/tests/e2e/main.rs:194
Methodnew
()
crates/ruff_cache/src/cache_key.rs:401
Methodnew
(start: TextSize, end: TextSize)
crates/ruff_text_size/src/range.rs:49
← previousnext →25,501–25,600 of 31,766, ranked by callers