MCPcopy Create free account

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

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

Methodnew
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, spec: &TupleSpec<'db>, )
crates/ty_python_semantic/src/types/tuple.rs:174
Methodnew
Qualify an alias name using the scope in which it was defined.
crates/ty_python_semantic/src/types/type_alias.rs:1002
Methodnew
(db: &'db dyn Db, function: FunctionType<'db>, receiver: Type<'db>)
crates/ty_python_semantic/src/types/method.rs:165
Methodnew
(db: &'db dyn Db, last_definition: OverloadLiteral<'db>)
crates/ty_python_semantic/src/types/function.rs:854
Methodnew
()
crates/ty_python_semantic/src/types/constraints.rs:1211
Methodnew
(db: &'db dyn Db, signatures: S, kind: CallableTypeKind)
crates/ty_python_semantic/src/types/callable.rs:783
Methodnew
( db: &'db dyn Db, expression: Expression<'db>, tcx: TypeContext<'db>, )
crates/ty_python_semantic/src/types/infer.rs:822
Methodnew
( db: &'db dyn Db, program_environment: &'ast ProgramEnvironment<'db>, scope: ScopeId<
crates/ty_python_semantic/src/types/context.rs:166
Methodnew
()
crates/ty_python_semantic/src/types/ide_support/unreachable_code.rs:115
Methodnew
(db: &'db dyn Db)
crates/ty_python_semantic/src/types/constraints/sequents.rs:256
Methodnew
( provenance: ConstraintProvenance, typevar: BoundTypeVarInstance<'db>, bound: Type<'d
crates/ty_python_semantic/src/types/constraints/variables.rs:777
Methodnew
( db: &'db dyn Db, storage: &mut ConstraintSetStorage<'db>, source_orders: FxIndexSet<
crates/ty_python_semantic/src/types/constraints/solutions.rs:120
Methodnew
(remaining: usize)
crates/ty_python_semantic/src/types/constraints/projection.rs:67
Methodnew
( constraints: impl IntoIterator<Item = AtomicConstraintId>, independent_typevars: FxHashSet<T
crates/ty_python_semantic/src/types/constraints/paths.rs:282
Methodnew
(path: &'static str, source: &'static str)
crates/ty_python_semantic/src/types/dedicated/pytest/collection.rs:1197
Methodnew
(db: &'db dyn Db, program: Program<'db>)
crates/ty_python_semantic/src/types/dedicated/pytest/fixtures.rs:372
Methodnew
Prepare a comparison when both sides contain enums and at least one side also contains another value. Return `None` if either enum has unsupported co
crates/ty_python_semantic/src/types/equality/enums.rs:107
Methodnew
(element_type: Type<'db>, original_tuple_type: Type<'db>, length: usize)
crates/ty_python_semantic/src/types/tuple/promotion.rs:237
Methodnew
(ty: Type<'db>)
crates/ty_python_semantic/src/types/set_theoretic/builder.rs:681
Methodnew
Read value types and comparison-chain outcomes from the same inference region.
crates/ty_python_semantic/src/types/infer/expression_truthiness.rs:51
Methodnew
(ty: Type<'db>, negative_retention: NegativeRetention)
crates/ty_python_semantic/src/types/infer/comparisons.rs:193
Methodnew
(expected_type: Option<Type<'db>>, kind: TypeContextKind)
crates/ty_python_semantic/src/types/infer/type_context.rs:56
Methodnew
Creates a new builder for inferring types in a region.
crates/ty_python_semantic/src/types/infer/builder.rs:553
Methodnew
(annotation_ty: DeclaredType<'db>)
crates/ty_python_semantic/src/types/infer/builder/annotation_expression.rs:30
Methodnew
(db: &'db dyn Db, env: &ProgramEnvironment<'db>, ty: Type<'db>)
crates/ty_python_semantic/src/types/infer/builder/suspicious_conditions/mod.rs:1352
Methodnew
( arguments: &'a CallArguments<'a, 'db>, parameters: &'a Parameters<'db>, errors: &'a
crates/ty_python_semantic/src/types/call/bind.rs:5116
Methodnew
(argument: Argument<'a>, ty: Option<Type<'db>>)
crates/ty_python_semantic/src/types/call/arguments.rs:85
Methodnew
( entry: CallableBinding<'db>, constructor_context: ConstructorContext<'db>, )
crates/ty_python_semantic/src/types/call/bind/constructor.rs:62
Methodnew
( file: File, sink: &'sink std::cell::RefCell<TypeCheckDiagnostics>, diag: Diagnostic,
crates/ty_python_semantic/src/diagnostic/mod.rs:210
Methodnew
(source: &'src str, range: TextRange)
crates/ty_python_semantic/src/suppression/parser.rs:15
Methodnew
()
crates/ty_python_semantic/src/place/definitions.rs:43
Methodnew
()
crates/ty_python_semantic/tests/corpus.rs:155
Methodnew
(original: &'a str, modified: &'a str)
crates/ruff_linter/src/source_kind.rs:297
Methodnew
Creates a new `LineWidth` with the given tab size.
crates/ruff_linter/src/line_width.rs:187
Methodnew
(selector: impl Into<String>, source: ValueSource)
crates/ruff_linter/src/rule_selector.rs:57
Methodnew
(tokens: &'a Tokens)
crates/ruff_linter/src/doc_lines.rs:26
Methodnew
Determines the kind of shadowing or conflict for the proposed new name of a given [`Binding`]. This function is useful for checking whether or not th
crates/ruff_linter/src/renamer.rs:400
Methodnew
(suppression: &'a Suppression)
crates/ruff_linter/src/suppression.rs:250
Methodnew
( parsed: &'a Parsed<ModModule>, source: &'a str, stylist: &'a Stylist<'a>, ta
crates/ruff_linter/src/importer/mod.rs:46
Methodnew
( parsed: &'a Parsed<ModModule>, parsed_annotations_arena: &'a typed_arena::Arena<Result<Parse
crates/ruff_linter/src/checkers/ast/mod.rs:257
Methodnew
(project_root: &Path)
crates/ruff_linter/src/settings/mod.rs:789
Methodnew
Construct a new [`PerFile`] from the given glob `pattern` and containing `data`. If provided, `project_root` is used to construct a second glob patte
crates/ruff_linter/src/settings/types.rs:345
Methodnew
( checker: &'a Checker<'b>, candidates: Vec<FileOpen<'a>>, with_stmt: &'a ast::StmtWit
crates/ruff_linter/src/rules/refurb/rules/write_whole_file.rs:110
Methodnew
( checker: &'a Checker<'b>, candidates: Vec<FileOpen<'a>>, with_stmt: &'a ast::StmtWit
crates/ruff_linter/src/rules/refurb/rules/read_whole_file.rs:110
Methodnew
(name: &'static str, bytes: &'static [u8])
crates/ruff_linter/src/rules/refurb/rules/hardcoded_string_charset.rs:69
Methodnew
Create a new [`ReraiseVisitor`] with the given exception name.
crates/ruff_linter/src/rules/flake8_blind_except/rules/blind_except.rs:146
Methodnew
( semantic: &'a SemanticModel<'a>, stylist: &'a Stylist<'a>, locator: &'a Locator<'a>,
crates/ruff_linter/src/rules/flake8_type_checking/helpers.rs:479
Methodnew
(decorators: &'a BTreeSet<String>)
crates/ruff_linter/src/rules/pydocstyle/settings.rs:137
Methodnew
( first_party: Vec<IdentifierPattern>, third_party: Vec<IdentifierPattern>, local_fold
crates/ruff_linter/src/rules/isort/categorize.rs:309
Methodnew
( locator: &'a Locator<'a>, directives: &'a IsortDirectives, is_stub: bool, ce
crates/ruff_linter/src/rules/isort/block.rs:41
Methodnew
(parameters: &'a Parameters)
crates/ruff_linter/src/rules/flake8_comprehensions/rules/unnecessary_map.rs:321
Methodnew
(ty: TokenType, range: TextRange)
crates/ruff_linter/src/rules/flake8_commas/rules/trailing_commas.rs:47
Methodnew
(stmt: &'a Stmt, checker: &Checker)
crates/ruff_linter/src/rules/flake8_tidy_imports/rules/banned_module_level_imports.rs:93
Methodnew
(semantic: &'semantic SemanticModel<'data>)
crates/ruff_linter/src/rules/flake8_return/visitor.rs:58
Methodnew
(s: &'a str, max_split: usize, method: Method)
crates/ruff_linter/src/rules/flake8_simplify/rules/split_static_string.rs:325
Methodnew
(target: &'a str)
crates/ruff_linter/src/rules/perflint/rules/unnecessary_list_cast.rs:168
Methodnew
(input: &'a str)
crates/ruff_linter/src/rules/fastapi/rules/fastapi_unused_path_parameter.rs:499
Methodnew
(elements: &'a [&str], elts: &'a [ast::Expr])
crates/ruff_linter/src/rules/ruff/rules/sequence_sorting.rs:191
Methodnew
(locator: &'loc Locator<'src>)
crates/ruff_linter/src/rules/ruff/rules/invalid_formatter_suppression_comment.rs:121
Methodnew
(offset: TextSize, confusable: char, representant: char)
crates/ruff_linter/src/rules/ruff/rules/ambiguous_unicode_character.rs:333
Methodnew
( comment_ranges: I, builder: &'builder mut (dyn CaptureSuppressionComment<'src> + 'src),
crates/ruff_linter/src/rules/ruff/rules/suppression_comment_visitor.rs:41
Methodnew
(semantic: &'semantic SemanticModel<'a>)
crates/ruff_linter/src/rules/ruff/rules/unnecessary_assign_before_yield.rs:174
Methodnew
Creates a new visitor with the given checker.
crates/ruff_linter/src/rules/ruff/rules/fallible_context_manager.rs:113
Methodnew
(node: &'a ast::Expr)
crates/ruff_linter/src/rules/ruff/rules/sort_dunder_slots.rs:204
Methodnew
(checker: &'a Checker<'b>, target_version: PythonVersion)
crates/ruff_linter/src/rules/flake8_quotes/rules/avoidable_escaped_quote.rs:96
Methodnew
( tokens: &'a Tokens, locator: &'a Locator, indent_width: IndentWidth, cell_of
crates/ruff_linter/src/rules/pycodestyle/rules/blank_lines.rs:408
Methodnew
(checker: &'a Checker<'b>, exception_name: &'a str)
crates/ruff_linter/src/rules/flake8_pytest_style/rules/assertion.rs:247
Methodnew
(semantic: &'a SemanticModel)
crates/ruff_linter/src/rules/pydoclint/rules/check_docstring.rs:905
Methodnew
(preview: PreviewMode)
crates/ruff_linter/src/rules/flake8_import_conventions/settings.rs:104
Methodnew
(semantic: &'a SemanticModel<'b>, logger_objects: &'a [String])
crates/ruff_linter/src/rules/tryceratops/helpers.rs:16
Methodnew
(sequence_name: &'a str, index_name: &'a str, value_name: &'a str)
crates/ruff_linter/src/rules/pylint/helpers.rs:79
Methodnew
(stmt_for: &'a StmtFor, dict_name: &'a ast::ExprName, checker: &'a Checker<'b>)
crates/ruff_linter/src/rules/pylint/rules/dict_index_missing_items.rs:108
Methodnew
(module: &'a str, name: &'a str)
crates/ruff_linter/src/rules/numpy/helpers.rs:18
Methodnew
Initialize the visitor.
crates/ruff_linter/src/rules/flake8_bugbear/rules/loop_iterator_mutation.rs:220
Methodnew
(group_name: &'a str)
crates/ruff_linter/src/rules/flake8_bugbear/rules/reuse_of_groupby_generator.rs:77
Methodnew
(checker: &'a Checker<'b>, extend_immutable_calls: &'a [QualifiedName<'b>])
crates/ruff_linter/src/rules/flake8_bugbear/rules/function_call_in_argument_default.rs:96
Methodnew
(keyword: impl Into<DeferralKeyword>)
crates/ruff_linter/src/rules/pyflakes/rules/yield_outside_function.rs:64
Methodnew
(shadowed: &'a Binding<'a>, binding: &'a Binding<'a>)
crates/ruff_linter/src/rules/pyflakes/rules/redefined_while_unused.rs:314
Methodnew
(range: T, op: CmpOp)
crates/ruff_linter/src/rules/pyflakes/rules/invalid_literal_comparisons.rs:223
Methodnew
()
crates/ruff_linter/src/rules/pyupgrade/rules/super_call_with_parameters.rs:330
Methodnew
( import_from_stmt: &'a StmtImportFrom, module: &'a str, locator: &'a Locator<'a>,
crates/ruff_linter/src/rules/pyupgrade/rules/deprecated_import.rs:438
Methodnew
(locator: &'a Locator<'a>, comments: &'a CommentRanges)
crates/ruff_linter/src/rules/pyupgrade/rules/unnecessary_coding_comment.rs:138
Methodnew
(source_code: String)
crates/ruff_linter/src/fix/snippet.rs:8
Methodnew
(notebook_indexes: &'a FxHashMap<String, NotebookIndex>)
crates/ruff_linter/src/message/mod.rs:206
Methodnew
(path: SystemPathBuf, settings_diagnostic_path: Option<SystemPathBuf>)
crates/ty_site_packages/src/lib.rs:65
Methodnew
(path: Arc<SystemPathBuf>, range: Option<TextRange>)
crates/ty_site_packages/src/version.rs:59
Methodnew
()
crates/ruff_index/src/vec.rs:18
Methodnew
()
fuzz/fuzz_targets/ty_check_invalid_syntax.rs:45
Functionnew_209
First line. More lines.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D.py:382
Functionnew_assignment
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:2442
Methodnew_code_block
Attempts to create a new reStructuredText code example from a `code-block` or `sourcecode` directive. If one couldn't be found, then `None` is returne
crates/ruff_python_formatter/src/string/docstring.rs:1057
Methodnew_constraint
Creates a new BDD node for an individual constraint. (The BDD will evaluate to `true` when the constraint holds, and to `false` when it does not.)
crates/ty_python_semantic/src/types/constraints.rs:2338
Functionnew_directory_with_python_files
()
crates/ty/tests/file_watching.rs:723
Methodnew_empty
Construct an empty formatter result
crates/ruff_formatter/src/lib.rs:379
Methodnew_equivalence_bound
Returns the constraints that model the requirement that `typevar` must be equivalent to `bound`. An equality is represented by one equivalence constr
crates/ty_python_semantic/src/types/constraints/variables.rs:381
Functionnew_file
()
crates/ty/tests/file_watching.rs:700
Functionnew_file_in_ignored_directory
()
crates/ty/tests/file_watching.rs:812
Functionnew_file_in_included_out_of_project_directory
()
crates/ty/tests/file_watching.rs:1015
Functionnew_file_in_parent_ignored_directory
()
crates/ty/tests/file_watching.rs:839
Functionnew_files_with_explicit_included_paths
()
crates/ty/tests/file_watching.rs:975
← previousnext →25,701–25,800 of 31,766, ranked by callers