MCPcopy Create free account

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

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

↓ 1 callersFunctionis_static_method
Return `true` if a [`Decorator`] is indicative of a static method. Note: Implicit static methods like `__new__` are not considered.
crates/ruff_python_semantic/src/analyze/function_type.rs:81
↓ 1 callersFunctionis_static_substitution
Recognizes standalone percent- and dollar-style substitutions. Percent substitutions may use any nonempty name without parentheses: ```python "%(nam
crates/ty_ide/src/docstring/document/numpy.rs:428
↓ 1 callersFunctionis_stdlib_dataclass_field
Returns `true` if the given [`Expr`] is a stdlib `dataclasses.field` call.
crates/ruff_linter/src/rules/ruff/helpers.rs:22
↓ 1 callersFunctionis_str_subclass
Return `true` if the class is a subclass of `str`.
crates/ruff_linter/src/rules/flake8_slots/rules/no_slots_in_str_subclass.rs:82
↓ 1 callersMethodis_string
(&self)
crates/ruff_linter/src/rules/flake8_pyi/rules/redundant_numeric_union.rs:267
↓ 1 callersFunctionis_stub_function
Return `true` if a function appears to be a stub.
crates/ruff_linter/src/rules/flake8_annotations/rules/definition.rs:591
↓ 1 callersMethodis_subscript
(self)
crates/ty_python_semantic/src/types/typed_dict.rs:1604
↓ 1 callersMethodis_subset_of
(self, db: &'db dyn Db, other: GenericContext<'db>)
crates/ty_python_semantic/src/types/generics.rs:959
↓ 1 callersMethodis_subtype_of
Returns `true` if `self` is a subtype of `other`.
crates/ruff_python_semantic/src/analyze/type_inference.rs:392
↓ 1 callersMethodis_success
Returns `false` if this is a formatter bug or `true` is if it is something outside of ruff
crates/ruff_dev/src/format_dev.rs:792
↓ 1 callersFunctionis_sunder
Whether a name starts and ends with a single underscore. `_a__` is considered neither a dunder nor a sunder name.
crates/ruff_python_ast/src/helpers.rs:787
↓ 1 callersFunctionis_super_call_with_arguments
Returns `true` if a call is an argumented `super` invocation.
crates/ruff_linter/src/rules/pyupgrade/rules/super_call_with_parameters.rs:293
↓ 1 callersMethodis_supported
Returns `true` if this kind of syntax is supported on `target_version`.
crates/ruff_python_parser/src/error.rs:1152
↓ 1 callersMethodis_supported_closed_file
Returns whether requests may target this file while it is closed.
crates/ty_server/src/session.rs:1299
↓ 1 callersFunctionis_supported_task_decorator
(decorator: &Decorator, semantic: &SemanticModel)
crates/ruff_linter/src/rules/airflow/rules/task_implicit_multiple_outputs.rs:125
↓ 1 callersFunctionis_supported_uri
(uri: &str)
crates/ty_ide/src/docstring/markdown/general/inline.rs:418
↓ 1 callersMethodis_suppression_on_comment
(&self, text: &str)
crates/ruff_python_formatter/src/comments/mod.rs:173
↓ 1 callersMethodis_suppression_used
(&self, id: FileSuppressionId)
crates/ty_python_semantic/src/suppression.rs:290
↓ 1 callersMethodis_symbol_bound_in_intermediate_eager_scopes
Checks if a symbol name is bound in any intermediate eager scopes between the current scope and the specified method scope.
crates/ty_python_core/src/builder.rs:470
↓ 1 callersFunctionis_sys_path_modification
Returns `true` if a [`Stmt`] is a `sys.path` modification, as in: ```python import sys sys.path.append("../") sys.path += ["../"] ```
crates/ruff_python_semantic/src/analyze/imports.rs:13
↓ 1 callersFunctionis_sys_version_comparand
Returns `true` if `expr` is a comparand whose value is derived from the running interpreter's version, such as `sys.version`, `sys.version_info`, `sys
crates/ruff_linter/src/rules/pylint/rules/magic_value_comparison.rs:119
↓ 1 callersMethodis_sys_version_info
(self)
crates/ty_python_semantic/src/types/instance.rs:317
↓ 1 callersMethodis_t_string
Returns `true` if the token is a t-string.
crates/ruff_python_ast/src/token.rs:854
↓ 1 callersFunctionis_t_suffixed_type_alias
Return `true` if the given name is a T-suffixed type alias. In this context, we match against any name that begins with an underscore, and ends in a l
crates/ruff_linter/src/rules/flake8_pyi/rules/type_alias_naming.rs:98
↓ 1 callersFunctionis_test
Returns `true` if a function is a test one.
crates/ruff_python_semantic/src/analyze/visibility.rs:142
↓ 1 callersMethodis_text
(&self)
crates/ruff_formatter/src/format_element.rs:244
↓ 1 callersMethodis_timeout_context
Returns `true` if the method a timeout context manager.
crates/ruff_linter/src/rules/flake8_async/helpers.rs:103
↓ 1 callersMethodis_top_level
(&self)
crates/ty_ide/src/docstring/document/syntax.rs:532
↓ 1 callersMethodis_top_paramspec_value
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/callable.rs:857
↓ 1 callersMethodis_trace
(self)
crates/ty/src/logging.rs:100
↓ 1 callersFunctionis_traceback_type
Return `true` if the [`Expr`] is the `types.TracebackType` type.
crates/ruff_linter/src/rules/flake8_pyi/rules/exit_annotations.rs:513
↓ 1 callersFunctionis_triple_quote
Return `true` if the string is a triple-quote string or byte prefix.
crates/ruff_python_ast/src/str.rs:324
↓ 1 callersMethodis_triple_quoted_interpolated_string
Returns `true` if the token is a triple-quoted t-string.
crates/ruff_python_ast/src/token.rs:864
↓ 1 callersFunctionis_trusted_element
Check if a single expression element is trusted input. String literals and `sys.executable` are considered trusted.
crates/ruff_linter/src/rules/flake8_bandit/rules/shell_injection.rs:312
↓ 1 callersFunctionis_trusted_input
Check if an expression is a trusted input for subprocess calls. We assume that any str, list[str] or tuple[str] literal can be trusted, as well as `sy
crates/ruff_linter/src/rules/flake8_bandit/rules/shell_injection.rs:322
↓ 1 callersMethodis_truthiness_test_of_iterable_candidate
(&self, value_type: Type<'db>)
crates/ty_python_semantic/src/types/infer/builder/suspicious_conditions/mod.rs:868
↓ 1 callersMethodis_tuple_subclass
(self)
crates/ty_python_semantic/src/types/class/known.rs:709
↓ 1 callersFunctionis_tuple_type_with_two_elements
Returns true if the expression represents a tuple type with exactly 2 elements.
crates/ruff_linter/src/rules/pylint/rules/dict_iter_missing_items.rs:169
↓ 1 callersFunctionis_type
Returns `true` if the [`Expr`] is known to evaluate to a type (e.g., `int`, or `type(1)`).
crates/ruff_linter/src/rules/pycodestyle/rules/type_comparison.rs:83
↓ 1 callersFunctionis_type_alias_assignment
Returns `true` if the statement is an assignment to a `TypeAlias`.
crates/ruff_linter/src/rules/pep8_naming/helpers.rs:78
↓ 1 callersFunctionis_type_check_only_module
Returns whether importing this module would require a typing-only runtime context.
crates/ty_ide/src/completion.rs:2041
↓ 1 callersFunctionis_type_checking_condition
Check if an expression is a `TYPE_CHECKING` condition. Returns `true` for: - `TYPE_CHECKING` - `typing.TYPE_CHECKING` NOTE: Aliased `TYPE_CHECKING`,
crates/ruff_graph/src/collector.rs:190
↓ 1 callersMethodis_type_form_value
Return whether this known instance can represent a type expression at runtime.
crates/ty_python_semantic/src/types/known_instance.rs:554
↓ 1 callersFunctionis_type_var_assignment
Returns `true` if the statement is an assignment to a `TypeVar` or `NewType`.
crates/ruff_linter/src/rules/pep8_naming/helpers.rs:58
↓ 1 callersFunctionis_type_var_like
Test whether the given binding is for an old-style `TypeVar`, `TypeVarTuple` or a `ParamSpec`.
crates/ruff_python_semantic/src/analyze/typing.rs:1149
↓ 1 callersFunctionis_typed_dict
(qualified_name: &[&str])
crates/ruff_python_stdlib/src/typing.rs:134
↓ 1 callersFunctionis_typed_dict_assignment
Returns `true` if the statement is an assignment to a `TypedDict`.
crates/ruff_linter/src/rules/pep8_naming/helpers.rs:43
↓ 1 callersFunctionis_typed_dict_class
Returns `true` if the statement is an assignment to a `TypedDict`.
crates/ruff_linter/src/rules/pep8_naming/helpers.rs:89
↓ 1 callersFunctionis_typed_dict_member
Returns `true` if a name matches that of `TypedDict`. See: <https://docs.python.org/3/library/typing.html>
crates/ruff_python_stdlib/src/typing.rs:238
↓ 1 callersMethodis_typing
(self)
crates/ty_module_resolver/src/resolve.rs:258
↓ 1 callersMethodis_typing_extensions
(self)
crates/ty_module_resolver/src/module.rs:440
↓ 1 callersMethodis_unannotated_assignment
(&self)
crates/ty_python_core/src/definition.rs:996
↓ 1 callersMethodis_unary_arithmetic_operator
(self)
crates/ruff_python_ast/src/token.rs:496
↓ 1 callersFunctionis_undefined_export_in_dunder_init_enabled
https://github.com/astral-sh/ruff/pull/11370
crates/ruff_linter/src/preview.rs:220
↓ 1 callersFunctionis_underline
(line: &str)
crates/ty_ide/src/docstring/document/numpy.rs:408
↓ 1 callersFunctionis_unicode_identifier_start
Checks if the character c is a valid starting character as described in https://docs.python.org/3/reference/lexical_analysis.html#identifiers
crates/ruff_python_parser/src/lexer.rs:1541
↓ 1 callersFunctionis_unicode_scalar_value
(codepoint: int)
crates/ruff_benchmark/resources/tomllib/_parser.py:669
↓ 1 callersFunctionis_unicode_to_unicode_confusables_enabled
https://github.com/astral-sh/ruff/pull/8473
crates/ruff_linter/src/preview.rs:215
↓ 1 callersFunctionis_union_expr
Returns `true` if `expr` is itself a union type (PEP 604 `|` or `typing.Union[...]`).
crates/ruff_linter/src/rules/ruff/rules/none_not_at_end_of_union.rs:81
↓ 1 callersFunctionis_union_type_operand
(ty: Type<'_>)
crates/ty_python_semantic/src/types/infer/builder/binary_expressions.rs:31
↓ 1 callersFunctionis_union_with_named_tuple
Return `true` if this is a `Union[...]` annotation containing `typing.NamedTuple`.
crates/ruff_linter/src/rules/pyupgrade/rules/use_pep604_annotation.rs:353
↓ 1 callersFunctionis_unittest_test_case
Returns whether the class inherits from the canonical `unittest.TestCase`.
crates/ty_python_semantic/src/types/dedicated/pytest/collection.rs:436
↓ 1 callersFunctionis_unknown_decorator_result
Return true if a class-decorator result should leave the current binding unchanged. This also handles `type[Unknown]` results from generic decorator
crates/ty_python_semantic/src/types/infer/builder/class.rs:624
↓ 1 callersFunctionis_unpacking_assignment
Check if a node represents an unpacking assignment.
crates/ruff_python_ast/src/helpers.rs:1310
↓ 1 callersFunctionis_unsafe_call
(call: &ExprCall, semantic: &SemanticModel, settings: &LinterSettings)
crates/ruff_linter/src/rules/flake8_bandit/rules/unsafe_markup_use.rs:137
↓ 1 callersFunctionis_unsupported_method
(name: &str)
crates/ruff_linter/src/rules/flake8_pyi/rules/unsupported_method_call_on_all.rs:82
↓ 1 callersMethodis_unused
Return `true` if this [`Binding`] is unused. This method is the opposite of [`Binding::is_used`].
crates/ruff_python_semantic/src/binding.rs:41
↓ 1 callersFunctionis_unused_ignore_comment_lint
(name: LintName)
crates/ty_python_semantic/src/suppression.rs:84
↓ 1 callersFunctionis_up024_precise_highlighting_enabled
https://github.com/astral-sh/ruff/pull/23013
crates/ruff_linter/src/preview.rs:276
↓ 1 callersFunctionis_update_inline_snapshots_enabled
()
crates/mdtest/src/lib.rs:344
↓ 1 callersFunctionis_used_for_security
(arguments: &Arguments)
crates/ruff_linter/src/rules/flake8_bandit/rules/hashlib_insecure_hash_functions.rs:212
↓ 1 callersFunctionis_user_allowed_func_call
Returns `true` if a call is allowed by the user to use a boolean trap.
crates/ruff_linter/src/rules/flake8_boolean_trap/helpers.rs:59
↓ 1 callersFunctionis_utf8_encoding_arg
(arg: &Expr)
crates/ruff_linter/src/rules/pyupgrade/rules/unnecessary_encode_utf8.rs:86
↓ 1 callersMethodis_valid_alias
Check that the alias still describes the narrowed places and that every binding that can produce this outcome evaluates the recorded alias.
crates/ty_python_semantic/src/types/narrow.rs:1825
↓ 1 callersFunctionis_valid_argument_type
Check if the argument would be valid for the target constructor
crates/ruff_linter/src/rules/refurb/rules/unnecessary_from_float.rs:180
↓ 1 callersFunctionis_valid_constant
Return `true` if the [`Constant`] aligns with the format type.
crates/ruff_linter/src/rules/pylint/rules/bad_string_format_type.rs:145
↓ 1 callersFunctionis_valid_dict
Return `true` if the dictionary values align with the format types.
crates/ruff_linter/src/rules/pylint/rules/bad_string_format_type.rs:174
↓ 1 callersFunctionis_valid_enclosing_node
Checks if an enclosing node is allowed to enclose a suppression comment.
crates/ruff_linter/src/rules/ruff/rules/invalid_formatter_suppression_comment.rs:256
↓ 1 callersMethodis_valid_for_non_name_targets
(self)
crates/ty_python_semantic/src/types/special_form.rs:1102
↓ 1 callersFunctionis_valid_pep_604_union_member
Returns `true` if an [`Expr`] appears to be a valid PEP 604 union member.
crates/ruff_linter/src/rules/flake8_pyi/rules/simple_defaults.rs:406
↓ 1 callersMethodis_valid_python_code_cell
Return `true` if it's a valid code cell. A valid code cell is a cell where: 1. The cell type is [`Cell::Code`] 2. The source doesn't contain a cell m
crates/ruff_notebook/src/cell.rs:60
↓ 1 callersFunctionis_valid_runtime_import
Returns `true` if the [`Binding`] represents a runtime-required import.
crates/ruff_linter/src/rules/flake8_type_checking/helpers.rs:116
↓ 1 callersFunctionis_valid_tuple
Return `true` if the tuple elements align with the format types.
crates/ruff_linter/src/rules/pylint/rules/bad_string_format_type.rs:156
↓ 1 callersFunctionis_valid_version_info
Returns `true` if the expression is related to `sys.version_info`. This includes: - Direct access: `sys.version_info` - Subscript access: `sys.versio
crates/ruff_linter/src/rules/pyupgrade/rules/outdated_version_block.rs:454
↓ 1 callersFunctionis_validator
Returns `true` if a function definition is an `attrs`-like validator based on its decorators.
crates/ruff_python_semantic/src/analyze/visibility.rs:94
↓ 1 callersFunctionis_variable_get
Returns `true` if `func` resolves to `Variable.get`.
crates/ruff_linter/src/rules/airflow/rules/variable_get_outside_task.rs:125
↓ 1 callersFunctionis_variable_read_after
Check whether a variable is read after a given position. Returns `true` if the variable assigned to in `variable_assignment` is read anywhere other t
crates/ruff_linter/src/rules/pylint/rules/swap_with_temporary_variable.rs:202
↓ 1 callersFunctionis_versioned_interpreter_path
Returns `true` if the file name appears to be that of a versioned interpreter (e.g., `python3.15`).
crates/ty_site_packages/src/lib.rs:237
↓ 1 callersFunctionis_violation
Returns `true` if the given call lacks an explicit `encoding`.
crates/ruff_linter/src/rules/pylint/rules/unspecified_encoding.rs:207
↓ 1 callersFunctionis_visible_across_class_boundary
Returns whether a binding remains visible after crossing an inner class boundary. Class-owned bindings are hidden by the inner class; function-owned
crates/ty_python_semantic/src/types/generics.rs:157
↓ 1 callersMethodis_vulnerable
(&self)
crates/ruff_linter/src/rules/flake8_bandit/rules/weak_cryptographic_key.rs:79
↓ 1 callersFunctionis_warnings_dot_deprecated
(expr: Option<&ast::Expr>, semantic: &SemanticModel)
crates/ruff_linter/src/rules/flake8_pyi/rules/string_or_bytes_too_long.rs:120
↓ 1 callersFunctionis_whitespace_needed
(kind: TokenKind)
crates/ruff_linter/src/rules/pycodestyle/rules/logical_lines/missing_whitespace_around_operator.rs:360
↓ 1 callersMethodis_wildcard
Checks if the [`Pattern`] is a [wildcard pattern]. The following are wildcard patterns: ```python match subject: case _ as x: ... case _ | _: ... cas
crates/ruff_python_ast/src/nodes.rs:3126
↓ 1 callersFunctionis_wildcard_command
Return `true` if the [`Expr`] is a wildcard command. ## Examples ```python import subprocess subprocess.Popen("/bin/chown root: *", shell=True) subp
crates/ruff_linter/src/rules/flake8_bandit/rules/shell_injection.rs:572
↓ 1 callersMethodis_wildcard_import
Returns `true` if the unresolved reference may be resolved by a wildcard import.
crates/ruff_python_semantic/src/reference.rs:188
↓ 1 callersFunctionis_wildcard_pattern
Returns true if the [`Pattern`] is a wildcard pattern.
crates/ruff_python_semantic/src/analyze/terminal.rs:372
↓ 1 callersMethodis_yes
(self)
crates/ty_python_semantic/src/types/display.rs:2492
↓ 1 callersMethodis_yield_expr
(&self)
crates/ruff_python_ast/src/generated.rs:2096
↓ 1 callersMethodis_yield_expression_allowed
Returns `true` if yield expressions are allowed.
crates/ruff_python_parser/src/parser/expression.rs:3225
← previousnext →11,201–11,300 of 31,766, ranked by callers