MCPcopy Create free account

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

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

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:100
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:27
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:24
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:149
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:24
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
( strategy: PyprojectDiscoveryStrategy, settings: Settings, path: Option<PathBuf>,
crates/ruff_workspace/src/resolver.rs:44
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:166
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
Methodnew
Creates a new `TextSize` at the given `offset`. # Examples ```rust # use ruff_text_size::*; assert_eq!(TextSize::from(4), TextSize::new(4)); ```
crates/ruff_text_size/src/size.rs:47
Methodnew
Initialize a [`ModuleDb`] for the given system.
crates/ruff_graph/src/db.rs:29
Methodnew
Initialize a [`Resolver`] with a given [`ModuleDb`].
crates/ruff_graph/src/resolver.rs:20
Methodnew
( module_path: Option<&'a [String]>, string_imports: StringImports, type_checking_impo
crates/ruff_graph/src/collector.rs:22
Methodnew
(name: impl AsRef<str>)
crates/ruff_python_ast/src/name.rs:55
Methodnew
(suite: &'a [Stmt], stmt: AnyNodeRef<'a>)
crates/ruff_python_ast/src/traversal.rs:61
Methodnew
(items: &'a [T])
crates/ruff_python_ast/src/comparable.rs:381
Methodnew
(items: &'a [DictItem])
crates/ruff_python_ast/src/nodes.rs:294
Methodnew
(source: &'a str, range: TextRange)
crates/ruff_python_ast/src/identifier.rs:163
Methodnew
(kind: TokenKind, range: TextRange, flags: TokenFlags)
crates/ruff_python_ast/src/token.rs:37
Methodnew
(tokens: Vec<Token>)
crates/ruff_python_ast/src/token/tokens.rs:16
Methodnew
(expression: MemberExpr)
crates/ty_python_core/src/member.rs:27
Methodnew
(value: usize)
crates/ty_python_core/src/narrowing_constraints.rs:64
Methodnew
(value: usize)
crates/ty_python_core/src/reachability_constraints.rs:116
Methodnew
(name: Name)
crates/ty_python_core/src/symbol.rs:54
Methodnew
()
crates/ty_python_core/src/lib.rs:152
Methodnew
(db: &'db dyn Db, file: ProgramFile<'db>)
crates/ty_python_core/src/re_exports.rs:67
Methodnew
(states: IndexVec<ScopedDefinitionId, DefinitionEntry<'db>>)
crates/ty_python_core/src/use_def.rs:767
Methodnew
( db: &'db dyn Db, scope_id: ScopeId<'db>, place: ScopedPlaceId, kind: Definit
crates/ty_python_core/src/definition.rs:65
Methodnew
(kind: UnpackKind, expression: Expression<'db>)
crates/ty_python_core/src/unpack.rs:99
Methodnew
()
crates/ty_python_core/src/db.rs:67
Methodnew
(db: &'db dyn Db, places: &'a PlaceTableBuilder)
crates/ty_python_core/src/place.rs:624
Methodnew
(db: &'db dyn Db, file: File, program: Program<'db>)
crates/ty_python_core/src/program_file.rs:69
Methodnew
( parent: Option<FileScopeId>, node: NodeWithScopeKind, descendants: Range<FileScopeId
crates/ty_python_core/src/scope.rs:138
Methodnew
(value: usize)
crates/ty_python_core/src/predicate.rs:45
Methodnew
Creates a new `AstNodeRef` that references `node`. This method may panic or produce unspecified results if the provided module is from a different fi
crates/ty_python_core/src/ast_node_ref.rs:74
Methodnew
( db: &'db dyn Db, file: ProgramFile<'db>, module_ref: &'ast ParsedModuleRef, )
crates/ty_python_core/src/builder.rs:322
Methodnew
(declaration: ScopedDefinitionId, is_imported_qualifier: bool)
crates/ty_python_core/src/use_def/place_state.rs:105
Methodnew
(kind: ExceptionContextKind, exception_handlers: ExceptionHandlers)
crates/ty_python_core/src/builder/except_handlers.rs:364
Methodnew
(f: &'fmt mut Formatter<'buf>)
crates/ruff_options_metadata/src/lib.rs:347
Methodnew
(options: JsValue, position_encoding: PositionEncoding)
crates/ruff_wasm/src/lib.rs:281
Methodnew
(start_index: u32)
crates/ruff_unicode_names2/src/iter_str.rs:35
Methodnew
Create a new lexer for the given input source which starts at the given offset. If the start offset is greater than 0, the cursor is moved ahead that
crates/ruff_python_parser/src/lexer.rs:81
Methodnew
(source: &'src str, flags: AnyStringFlags, offset: TextSize, range: TextRange)
crates/ruff_python_parser/src/string.rs:102
Methodnew
Creates a new `LexicalError` with the given error type and location.
crates/ruff_python_parser/src/error.rs:352
Methodnew
()
crates/ruff_python_parser/src/semantic_errors.rs:45
Methodnew
(kinds: [TokenKind; N])
crates/ruff_python_parser/src/token_set.rs:8
Methodnew
Create a new token source for the given lexer.
crates/ruff_python_parser/src/token_source.rs:23
Methodnew
(flags: TokenFlags, nesting: u32)
crates/ruff_python_parser/src/lexer/interpolated_string.rs:24
Methodnew
(column: u32)
crates/ruff_python_parser/src/lexer/indentation.rs:15
Methodnew
(source: &'src str)
crates/ruff_python_parser/src/lexer/cursor.rs:25
← previousnext →25,401–25,500 of 31,562, ranked by callers