MCPcopy Create free account

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

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

↓ 1 callersFunctionassignment_binary_and
(target_var: &Expr, left_value: &Expr, right_value: &Expr)
crates/ruff_linter/src/rules/flake8_simplify/rules/if_else_block_instead_of_if_exp.rs:287
↓ 1 callersFunctionassignment_binary_or
(target_var: &Expr, left_value: &Expr, right_value: &Expr)
crates/ruff_linter/src/rules/flake8_simplify/rules/if_else_block_instead_of_if_exp.rs:303
↓ 1 callersFunctionassignment_default_in_stub
PYI015
crates/ruff_linter/src/rules/flake8_pyi/rules/simple_defaults.rs:564
↓ 1 callersFunctionassignment_in_assert
RUF018
crates/ruff_linter/src/rules/ruff/rules/assignment_in_assert.rs:63
↓ 1 callersFunctionassignment_is_cast_expr
Checks whether the given assignment value is a `typing.cast` expression and that the target name is the same as the argument name. Example: ```python
crates/ruff_linter/src/rules/pylint/rules/redefined_loop_name.rs:260
↓ 1 callersFunctionassignment_targets_from_assign_targets
( targets: &'a [Expr], dummy_variable_rgx: &'a Regex, )
crates/ruff_linter/src/rules/pylint/rules/redefined_loop_name.rs:360
↓ 1 callersFunctionassignment_ternary
( target_var: &Expr, body_value: &Expr, test: &Expr, orelse_value: &Expr, )
crates/ruff_linter/src/rules/flake8_simplify/rules/if_else_block_instead_of_if_exp.rs:265
↓ 1 callersFunctionassignment_to_df
PD901
crates/ruff_linter/src/rules/pandas_vet/rules/assignment_to_df.rs:46
↓ 1 callersFunctionassignment_to_os_environ
B003
crates/ruff_linter/src/rules/flake8_bugbear/rules/assignment_to_os_environ.rs:55
↓ 1 callersMethodast
Returns a corresponding AST node for these tokens. `offset` should be the offset of the cursor. If no plausible AST node could be found, then `None`
crates/ty_ide/src/completion.rs:2545
↓ 1 callersFunctionast_ids
(db: &'db dyn Db, file: ProgramFile<'db>)
crates/ty_python_core/src/ast_ids.rs:256
↓ 1 callersMethodast_ids
(&self)
crates/ty_python_core/src/lib.rs:423
↓ 1 callersFunctionasync_busy_wait
ASYNC110
crates/ruff_linter/src/rules/flake8_async/rules/async_busy_wait.rs:65
↓ 1 callersFunctionasync_context_manager_suppresses
(db: &'db dyn Db, expression: Expression<'db>)
crates/ty_python_semantic/src/reachability.rs:2006
↓ 1 callersFunctionasync_func
()
crates/ruff_python_parser/resources/inline/err/lazy_import_invalid_context_py315.py:15
↓ 1 callersFunctionasync_function_with_timeout
ASYNC109
crates/ruff_linter/src/rules/flake8_async/rules/async_function_with_timeout.rs:103
↓ 1 callersFunctionasync_generator_stub_declaration
( db: &'db dyn Db, definition: Definition<'db>, )
crates/ty_python_semantic/src/types/iteration.rs:61
↓ 1 callersFunctionasync_zero_sleep
ASYNC115
crates/ruff_linter/src/rules/flake8_async/rules/async_zero_sleep.rs:72
↓ 1 callersFunctionasyncio_dangling_binding
RUF006
crates/ruff_linter/src/rules/ruff/rules/asyncio_dangling_task.rs:135
↓ 1 callersMethodat
(self, db: &dyn Db, value: &RangedValue<T>, label: Option<&'static str>)
crates/ty_project/src/metadata/options.rs:2649
↓ 1 callersMethodat
(offset: TextSize, len: TextSize)
crates/ruff_text_size/src/range.rs:70
↓ 1 callersMethodat_identifier_or_keyword
Returns `true` if the parser is at an identifier or keyword (including soft keyword) token.
crates/ruff_python_parser/src/parser/expression.rs:121
↓ 1 callersMethodat_mapping_pattern_start
Returns `true` if the current token is a valid start of a mapping pattern.
crates/ruff_python_parser/src/parser/pattern.rs:63
↓ 1 callersMethodat_pattern_start
Returns `true` if the current token is a valid start of a pattern.
crates/ruff_python_parser/src/parser/pattern.rs:58
↓ 1 callersMethodat_stmt
Returns `true` if the current token is the start of a simple, compound or expression statement.
crates/ruff_python_parser/src/parser/statement.rs:94
↓ 1 callersMethodat_type_param
Checks if the parser is currently positioned at the start of a type parameter.
crates/ruff_python_parser/src/parser/statement.rs:99
↓ 1 callersFunctionattach_tracker
(tracker: StandardTracker, f: impl FnOnce() -> R)
crates/ruff_memory_usage/src/lib.rs:17
↓ 1 callersFunctionattr
PD011
crates/ruff_linter/src/rules/pandas_vet/rules/attr.rs:49
↓ 1 callersMethodattribute_completions
Returns completions for symbols available in a `object.<CURSOR>` context.
crates/ty_python_semantic/src/semantic_model.rs:300
↓ 1 callersFunctionattribute_condition_definition_info
( db: &'db dyn Db, program: Program<'db>, receiver: Type<'db>, name: Name, )
crates/ty_python_semantic/src/types/infer/builder/suspicious_conditions/exemptions.rs:656
↓ 1 callersFunctionattribute_declarations
Returns all attribute declarations (and their method scope IDs) with a symbol name matching the one given for a specific class body scope. Only call
crates/ty_python_semantic/src/lib.rs:204
↓ 1 callersFunctionattribute_docstring
Extract a docstring from an attribute. This is a non-standardized but popular-and-supported-by-sphinx kind of docstring where you just place the docs
crates/ty_python_core/src/definition.rs:250
↓ 1 callersFunctionattribute_is_callee_of_parent
Returns `true` when `attribute` is the immediate callee of an enclosing `ExprCall` or `Decorator`. The `ExprCall` / `Decorator` arms in `CallSitesFind
crates/ty_ide/src/call_hierarchy/incoming_calls.rs:487
↓ 1 callersMethodattribute_typevar_failures
Having already determined that a satisfiable path violates the declared upper bounds (TODO and constraints) of the relevant typevars, determines _whic
crates/ty_python_semantic/src/types/constraints/solutions.rs:1733
↓ 1 callersFunctionattributes_for_prefix
( codes: &BTreeSet<String>, attributes: &BTreeMap<String, &[Attribute]>, )
crates/ruff_macros/src/rule_code_prefix.rs:88
↓ 1 callersFunctionaugmented_assignment
Generate a fix to convert an assignment statement to an augmented assignment. For example, given `x = x + 1`, the fix would be `x += 1`.
crates/ruff_linter/src/rules/pylint/rules/non_augmented_assignment.rs:158
↓ 1 callersFunctionauto_return_type
Given a function, guess its return type.
crates/ruff_linter/src/rules/flake8_annotations/helpers.rs:49
↓ 1 callersMethodavailable_positional_parameter_count
Returns the number of positional parameters, starting at `next_positional`, that can still be filled positionally. This stops at the first parameter t
crates/ty_python_semantic/src/types/call/bind.rs:5199
↓ 1 callersMethodavoid_conflicts
Attempts to change the import request style so that the chances of an import conflict are minimized (although not always reduced to zero).
crates/ty_python_semantic/src/importer.rs:852
↓ 1 callersFunctionavoidable_escaped_quote
Q003
crates/ruff_linter/src/rules/flake8_quotes/rules/avoidable_escaped_quote.rs:57
↓ 1 callersFunctionb
()
crates/ty_python_semantic/resources/corpus/16_for_break_invalid_in_func.py:3
↓ 1 callersFunctionb
()
crates/ruff_linter/resources/test/fixtures/mccabe/C901.py:64
↓ 1 callersFunctionb
()
crates/ruff_linter/resources/test/fixtures/pycodestyle/E30.py:549
↓ 1 callersFunctionbackslashes
D301
crates/ruff_linter/src/rules/pydocstyle/rules/backslashes.rs:67
↓ 1 callersMethodbacktick_offsets
(&self)
crates/mdtest/src/parser.rs:447
↓ 1 callersMethodbackwards
(self)
crates/ty_python_semantic/src/types/constraints/variables.rs:1312
↓ 1 callersFunctionbad_dunder_method_name
PLW3201
crates/ruff_linter/src/rules/pylint/rules/bad_dunder_method_name.rs:63
↓ 1 callersFunctionbad_exit_annotation
PYI036
crates/ruff_linter/src/rules/flake8_pyi/rules/exit_annotations.rs:135
↓ 1 callersFunctionbad_file_permissions
S103
crates/ruff_linter/src/rules/flake8_bandit/rules/bad_file_permissions.rs:73
↓ 1 callersFunctionbad_generator_return_type
PYI058
crates/ruff_linter/src/rules/flake8_pyi/rules/bad_generator_return_type.rs:93
↓ 1 callersFunctionbad_nested
Runs other things, nested
crates/ruff_linter/resources/test/fixtures/pydocstyle/D401.py:28
↓ 1 callersFunctionbad_open_mode
PLW1501
crates/ruff_linter/src/rules/pylint/rules/bad_open_mode.rs:55
↓ 1 callersFunctionbad_staticmethod_argument
PLW0211
crates/ruff_linter/src/rules/pylint/rules/bad_staticmethod_argument.rs:60
↓ 1 callersFunctionbad_str_strip_call
PLE1310
crates/ruff_linter/src/rules/pylint/rules/bad_str_strip_call.rs:171
↓ 1 callersFunctionbad_string_format_type
PLE1307
crates/ruff_linter/src/rules/pylint/rules/bad_string_format_type.rs:215
↓ 1 callersFunctionbad_version_info_comparison
( checker: &Checker, test: &Expr, has_else_clause:
crates/ruff_linter/src/checkers/ast/analyze/statement.rs:1108
↓ 1 callersFunctionbanned_api
TID251
crates/ruff_linter/src/rules/flake8_tidy_imports/rules/banned_api.rs:45
↓ 1 callersFunctionbanned_attribute_access
TID251
crates/ruff_linter/src/rules/flake8_tidy_imports/rules/banned_api.rs:61
↓ 1 callersFunctionbanned_import_alias
ICN002
crates/ruff_linter/src/rules/flake8_import_conventions/rules/banned_import_alias.rs:53
↓ 1 callersFunctionbanned_import_from
ICN003
crates/ruff_linter/src/rules/flake8_import_conventions/rules/banned_import_from.rs:51
↓ 1 callersFunctionbanned_module_level_imports
TID253
crates/ruff_linter/src/rules/flake8_tidy_imports/rules/banned_module_level_imports.rs:61
↓ 1 callersFunctionbanned_relative_import
TID252
crates/ruff_linter/src/rules/flake8_tidy_imports/rules/relative_imports.rs:125
↓ 1 callersFunctionbar
This is another docstring with more lines of text
crates/ruff_python_formatter/resources/test/fixtures/black/cases/docstring.py:20
↓ 1 callersFunctionbar
(x)
crates/ruff_linter/resources/test/fixtures/refurb/FURB101_0.py:5
↓ 1 callersFunctionbar
(x)
crates/ruff_linter/resources/test/fixtures/refurb/FURB103_0.py:5
↓ 1 callersFunctionbar
()
crates/ruff_linter/resources/test/fixtures/flake8_annotations/suppress_none_returning.py:38
↓ 1 callersFunctionbar
()
crates/ruff_linter/resources/test/fixtures/flake8_return/RET503.py:414
↓ 1 callersFunctionbar
(x: int)
crates/ruff_linter/resources/test/fixtures/flake8_use_pathlib/full_name.py:83
↓ 1 callersFunctionbar
()
crates/ruff_linter/resources/test/fixtures/ruff/RUF052_0.py:111
↓ 1 callersFunctionbar
()
crates/ruff_linter/resources/test/fixtures/pycodestyle/W391_0.py:6
↓ 1 callersFunctionbar
()
crates/ruff_linter/resources/test/fixtures/pycodestyle/W391_3.py:6
↓ 1 callersFunctionbar
()
crates/ruff_linter/resources/test/fixtures/pycodestyle/W391_1.py:6
↓ 1 callersFunctionbar
()
crates/ruff_linter/resources/test/fixtures/pycodestyle/W391_2.py:6
↓ 1 callersFunctionbar
(x: int, y: int)
crates/ruff_linter/resources/test/fixtures/pylint/swap_with_temporary_variable.py:17
↓ 1 callersFunctionbar
(b)
crates/ruff_linter/resources/test/fixtures/pylint/redefined_argument_from_local.py:78
↓ 1 callersFunctionbar
()
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B039.py:33
↓ 1 callersFunctionbar
(x: T)
crates/ruff_linter/resources/test/fixtures/pyflakes/F821_17.py:109
↓ 1 callersMethodbar
(self, x: int)
crates/ruff_linter/resources/test/fixtures/pycodestyle/E30.py:445
↓ 1 callersMethodbar
(self)
crates/ruff_linter/resources/test/fixtures/pylint/no_self_use.py:80
↓ 1 callersMethodbar
(self, arg: str)
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B019.py:119
↓ 1 callersFunctionbar_never_annotation
()
crates/ruff_linter/resources/test/fixtures/flake8_return/RET503.py:367
↓ 1 callersFunctionbar_no_return_annotation
()
crates/ruff_linter/resources/test/fixtures/flake8_return/RET503.py:334
↓ 1 callersFunctionbare_except
E722
crates/ruff_linter/src/rules/pycodestyle/rules/bare_except.rs:60
↓ 1 callersFunctionbase_class_runtime_semantics
Returns `RuntimeSemantics` based on a class's base class.
crates/ruff_linter/src/rules/flake8_type_checking/helpers.rs:159
↓ 1 callersFunctionbase_top_intersection
Intersect a fully static nominal base with a generic subclass. The subclass's identity MRO determines which subclass type variables specialize the ba
crates/ty_python_semantic/src/types/set_theoretic/generic_gradual_intersections.rs:61
↓ 1 callersFunctionbaseline
Returns the baseline for `file` without depending on the query when baselines are disabled.
crates/ty_project/src/baseline.rs:187
↓ 1 callersFunctionbatched_without_explicit_strict
B911
crates/ruff_linter/src/rules/flake8_bugbear/rules/batched_without_explicit_strict.rs:71
↓ 1 callersFunctionbaz
()
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/top_level.py:34
↓ 1 callersFunctionbaz
(x, y, z)
crates/ruff_python_parser/resources/inline/err/duplicate_keyword_args.py:3
↓ 1 callersFunctionbaz
()
crates/ruff_linter/resources/test/fixtures/flake8_return/RET503.py:357
↓ 1 callersFunctionbaz
()
crates/ruff_linter/resources/test/fixtures/pycodestyle/E30.py:237
↓ 1 callersFunctionbaz
f"""I'm probably a docstring: {VARIABLE}!
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B021.py:73
↓ 1 callersFunctionbaz
()
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B039.py:39
↓ 1 callersMethodbaz
Baz.
crates/ruff_linter/resources/test/fixtures/pyflakes/F811_30.py:18
↓ 1 callersMethodbefore_already_present
Returns only the candidates that can precede an already present contextual keyword. `candidates` must be ordered as the keywords can appear in source
crates/ty_ide/src/completion.rs:1250
↓ 1 callersMethodbefore_drop
Register a function to call before dropping the guard. This is intended for use with the [`Checker::report_custom_diagnostic`] or [`LintContext::repo
crates/ruff_linter/src/checkers/ast/mod.rs:3902
↓ 1 callersMethodbefore_type_params
(self)
crates/ruff_linter/src/rules/pycodestyle/rules/logical_lines/mod.rs:572
↓ 1 callersMethodbegin
(&self, token: ProgressToken, begin: WorkDoneProgressBegin)
crates/ty_server/src/server/lazy_work_done_progress.rs:113
↓ 1 callersMethodbegin
Return a cached result or register the comparison as active. If the comparison is already active, return `Ambiguous`. This fallback can depend on whi
crates/ty_python_semantic/src/types/equality.rs:463
↓ 1 callersMethodbegin_annotated_assignment
Declare an annotated name assignment whose value will be bound after visiting its RHS. Other targets and annotations without a RHS are recorded in ful
crates/ty_python_core/src/builder.rs:1668
← previousnext →8,001–8,100 of 31,766, ranked by callers