MCPcopy Create free account

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

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

Methodfrom
(args: &LogLevelArgs)
crates/ruff/src/args.rs:684
Methodfrom
(value: FormattedSource)
crates/ruff/src/commands/format.rs:338
Methodfrom
(s: String)
crates/ruff/src/commands/completions/config.rs:63
Methodfrom
(value: LintOptionsWire)
crates/ruff_workspace/src/options.rs:4474
Methodfrom
(options: PyFormatOptions)
crates/ruff_server/src/format.rs:214
Methodfrom
(value: PositionEncoding)
crates/ruff_server/src/edit.rs:35
Methodfrom
(language_id: LanguageKind)
crates/ruff_server/src/edit/text_document.rs:38
Methodfrom
(value: ReceiveError)
crates/ruff_server/tests/e2e/main.rs:102
Methodfrom
(r: Range<TextSize>)
crates/ruff_text_size/src/range.rs:532
Methodfrom
(raw: u32)
crates/ruff_text_size/src/size.rs:132
Methodfrom
(value: (u8, u8))
crates/ruff_python_ast/src/python_version.rs:106
Methodfrom
(value: u8)
crates/ruff_python_ast/src/int.rs:196
Methodfrom
(value: &'a Box<Expr>)
crates/ruff_python_ast/src/expression.rs:11
Methodfrom
(s: &'a str)
crates/ruff_python_ast/src/name.rs:132
Methodfrom
(path: P)
crates/ruff_python_ast/src/lib.rs:67
Methodfrom
(alias: &'a ast::Alias)
crates/ruff_python_ast/src/comparable.rs:95
Methodfrom
(part: &'a FStringPart)
crates/ruff_python_ast/src/nodes.rs:746
Methodfrom
(value: u32)
crates/ruff_python_ast/src/node_index.rs:138
Methodfrom
(node: crate::ModModule)
crates/ruff_python_ast/src/generated.rs:16
Methodfrom
(op: BoolOp)
crates/ruff_python_ast/src/token.rs:598
Methodfrom
(expr: &Expr)
crates/ruff_python_ast/src/operator_precedence.rs:144
Methodfrom
(tokens: &Tokens)
crates/ruff_python_ast/src/token/tokens.rs:290
Methodfrom
(value: &'a MemberExpr)
crates/ty_python_core/src/member.rs:477
Methodfrom
(value: bool)
crates/ty_python_core/src/lib.rs:1103
Methodfrom
(node: &'ast ast::StmtFunctionDef)
crates/ty_python_core/src/definition.rs:369
Methodfrom
(value: ast::ExprRef<'_>)
crates/ty_python_core/src/ast_ids.rs:339
Methodfrom
(ids: Vec<T>)
crates/ty_python_core/src/frozen.rs:15
Methodfrom
(value: &'a Symbol)
crates/ty_python_core/src/place.rs:148
Methodfrom
(node: &ast::Stmt)
crates/ty_python_core/src/statement.rs:81
Methodfrom
(predicate: StarImportPlaceholderPredicate<'db>)
crates/ty_python_core/src/predicate.rs:419
Methodfrom
(platform: String)
crates/ty_python_core/src/platform.rs:25
Methodfrom
(binding: &LiveBinding)
crates/ty_python_core/src/use_def/place_state.rs:784
Methodfrom
(value: diagnostic::SubDiagnosticSeverity)
crates/ruff_wasm/src/lib.rs:137
Methodfrom
(string: StringType)
crates/ruff_python_parser/src/string.rs:32
Methodfrom
(error: LexicalError)
crates/ruff_python_parser/src/error.rs:38
Methodfrom
(kinds: [TokenKind; N])
crates/ruff_python_parser/src/token_set.rs:38
Methodfrom
(expr: Expr)
crates/ruff_python_parser/src/parser/expression.rs:3057
Methodfrom
(value: bool)
crates/ruff_python_parser/src/parser/mod.rs:1145
Methodfrom
(mode: Mode)
crates/ruff_python_parser/src/parser/options.rs:44
Methodfrom
(value: JsonParseOptions)
crates/ruff_python_parser/tests/fixtures.rs:277
Methodfrom
(level: LogLevel)
crates/ty_wasm/src/lib.rs:98
Methodfrom
(value: io::Error)
crates/ruff_dev/src/format_dev.rs:807
Methodfrom
(SipHasher128Hash(hash): SipHasher128Hash)
crates/mdtest/src/parser.rs:63
Methodfrom
(value: FileRange)
crates/ty_ide/src/lib.rs:171
Methodfrom
(range: TextRange)
crates/ty_ide/src/folding_range.rs:51
Methodfrom
(literal_query_string: &str)
crates/ty_ide/src/symbols.rs:101
Methodfrom
(s: String)
crates/ty_ide/src/inlay_hints.rs:340
Methodfrom
(value: ast::ExprContext)
crates/ty_ide/src/references.rs:393
Methodfrom
(member: PlaceAndQualifiers<'db>)
crates/ty_python_semantic/src/types.rs:1323
Methodfrom
(value: LookupResult<'db>)
crates/ty_python_semantic/src/place.rs:408
Methodfrom
(metadata: &'static LintMetadata)
crates/ty_python_semantic/src/lint.rs:593
Methodfrom
(value: ProtocolClass<'db>)
crates/ty_python_semantic/src/types/protocol_class.rs:440
Methodfrom
(is_positive: bool)
crates/ty_python_semantic/src/types/equality.rs:84
Methodfrom
(value: NominalInstanceType<'db>)
crates/ty_python_semantic/src/types/instance.rs:551
Methodfrom
Construct a new [`Type`] instance representing a given class object (or a given dynamic type) and all possible subclasses of that class object/dynamic
crates/ty_python_semantic/src/types/subclass_of.rs:45
Methodfrom
(constraint: Type<'db>)
crates/ty_python_semantic/src/types/narrow.rs:1342
Methodfrom
(v: i64)
crates/ty_python_semantic/src/types/literal.rs:286
Methodfrom
(ty: Type<'db>)
crates/ty_python_semantic/src/types/visitor.rs:212
Methodfrom
(value: &InferContext<'_, '_>)
crates/ty_python_semantic/src/types/overrides.rs:1972
Methodfrom
(value: [ClassBase<'db>; N])
crates/ty_python_semantic/src/types/mro.rs:558
Methodfrom
(relation: TypeRelation)
crates/ty_python_semantic/src/types/relation_error.rs:27
Methodfrom
(alias: GenericAlias<'db>)
crates/ty_python_semantic/src/types/class.rs:513
Methodfrom
(definition: Definition<'db>)
crates/ty_python_semantic/src/types/typevar.rs:1892
Methodfrom
(tuple: FixedLengthTuple<T>)
crates/ty_python_semantic/src/types/tuple.rs:2914
Methodfrom
(value: CallDunderError<'_>)
crates/ty_python_semantic/src/types/call.rs:555
Methodfrom
(relation: TypeRelation)
crates/ty_python_semantic/src/types/callable.rs:741
Methodfrom
(value: ClassType<'db>)
crates/ty_python_semantic/src/types/class_base.rs:548
Methodfrom
(value: SpecialFormType)
crates/ty_python_semantic/src/types/special_form.rs:355
Methodfrom
(atomic: AtomicConstraint<'db>)
crates/ty_python_semantic/src/types/constraints/variables.rs:206
Methodfrom
(value: RichCompareOperator)
crates/ty_python_semantic/src/types/infer/comparisons.rs:636
Methodfrom
(expected_type: Type<'db>)
crates/ty_python_semantic/src/types/infer/type_context.rs:164
Methodfrom
(value: bool)
crates/ty_python_semantic/src/types/infer/builder.rs:13425
Methodfrom
(from: CallableBinding<'db>)
crates/ty_python_semantic/src/types/call/bind.rs:3458
Methodfrom
(variance: TypeVarVariance)
crates/ty_python_semantic/src/types/variance/equations.rs:127
Methodfrom
(directives: &'a FileNoqaDirectives)
crates/ruff_linter/src/noqa.rs:216
Methodfrom
(value: LineLength)
crates/ruff_linter/src/line_width.rs:129
Methodfrom
(value: PythonVersion)
crates/ruff_linter/src/settings/mod.rs:922
Methodfrom
(value: PythonVersion)
crates/ruff_linter/src/settings/types.rs:70
Methodfrom
(value: bool)
crates/ruff_linter/src/settings/flags.rs:21
Methodfrom
(generator: &'a ast::ExprGenerator)
crates/ruff_linter/src/rules/refurb/rules/reimplemented_starmap.rs:187
Methodfrom
(lambda: &'a ast::ExprLambda)
crates/ruff_linter/src/rules/refurb/rules/reimplemented_operator.rs:142
Methodfrom
(s: &'a str)
crates/ruff_linter/src/rules/isort/sorting.rs:57
Methodfrom
(func: &Expr, semantic: &SemanticModel)
crates/ruff_linter/src/rules/flake8_comprehensions/rules/unnecessary_map.rs:265
Methodfrom
((tok, range): (TokenKind, TextRange))
crates/ruff_linter/src/rules/flake8_commas/rules/trailing_commas.rs:60
Methodfrom
Determine the [`ConstantLikelihood`] of an expression.
crates/ruff_linter/src/rules/flake8_simplify/rules/yoda_conditions.rs:89
Methodfrom
(value: &NestedIf<'a>)
crates/ruff_linter/src/rules/flake8_simplify/rules/collapsible_if.rs:198
Methodfrom
(value: bool)
crates/ruff_linter/src/rules/flake8_simplify/rules/needless_bool.rs:330
Methodfrom
(value: &'a str)
crates/ruff_linter/src/rules/ruff/rules/sequence_sorting.rs:85
Methodfrom
(value: &'a StmtFor)
crates/ruff_linter/src/rules/ruff/rules/needless_else.rs:284
Methodfrom
(target_version: PythonVersion)
crates/ruff_linter/src/rules/ruff/rules/implicit_optional.rs:130
Methodfrom
(value: ruff_python_ast::str::Quote)
crates/ruff_linter/src/rules/flake8_quotes/settings.rs:22
Methodfrom
(value: &'a str)
crates/ruff_linter/src/rules/flake8_quotes/rules/check_string_quotes.rs:215
Methodfrom
(value: bool)
crates/ruff_linter/src/rules/pycodestyle/rules/logical_lines/missing_whitespace_around_operator.rs:335
Methodfrom
Return the [`Safety`] level for the [`Expr`]. This is based on Bandit's definition: string literals are considered okay, but dynamically-computed valu
crates/ruff_linter/src/rules/flake8_bandit/rules/shell_injection.rs:508
Methodfrom
(format: char)
crates/ruff_linter/src/rules/pylint/rules/bad_string_format_type.rs:93
Methodfrom
(value: ClassMemberBoundness)
crates/ruff_linter/src/rules/pylint/rules/eq_without_hash.rs:156
Methodfrom
(op: &ast::BoolOp)
crates/ruff_linter/src/rules/pylint/rules/binary_op_exception.rs:17
Methodfrom
(import: &'a FromImport)
crates/ruff_linter/src/rules/pylint/rules/import_private_name.rs:186
Methodfrom
(expr: &Expr, semantic: &SemanticModel)
crates/ruff_linter/src/rules/pylint/rules/bad_str_strip_call.rs:79
Methodfrom
(value: Operator)
crates/ruff_linter/src/rules/pylint/rules/non_augmented_assignment.rs:211
← previousnext →20,901–21,000 of 31,766, ranked by callers