MCPcopy Create free account

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

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

↓ 2 callersMethodinto_vec
Returns the underlying `stack` vector.
crates/ruff_formatter/src/printer/stack.rs:52
↓ 2 callersFunctioninvalid_argument_name
N803
crates/ruff_linter/src/rules/pep8_naming/rules/invalid_argument_name.rs:87
↓ 2 callersFunctioninvalid_utf8
()
crates/ruff_db/src/system/memory_fs.rs:472
↓ 2 callersMethodirrefutable_pattern
Return `Some(IrrefutablePattern)` if `self` is irrefutable or `None` otherwise.
crates/ruff_python_ast/src/nodes.rs:3073
↓ 2 callersFunctionisConfigurationFile
(name: string)
playground/ty/src/Playground.tsx:301
↓ 2 callersFunctionisPythonFile
(handle: FileHandle)
playground/ty/src/Editor/Files.tsx:213
↓ 2 callersFunctionisSettingsFile
(name: string)
playground/ty/src/Playground.tsx:297
↓ 2 callersFunctionis_acronym
(name: &str, asname: &str)
crates/ruff_linter/src/rules/pep8_naming/helpers.rs:22
↓ 2 callersMethodis_active
(&self)
crates/ty_python_core/src/builder/except_handlers.rs:29
↓ 2 callersMethodis_active
Returns whether the scanner is currently inside an accepted preformatted block.
crates/ty_ide/src/docstring/document/preformatted.rs:70
↓ 2 callersFunctionis_airflow_auth_manager
Check whether the symbol is coming from the `auth.manager` builtin or provider `auth_manager` module which ends with `AuthManager`.
crates/ruff_linter/src/rules/airflow/rules/removal_in_3.rs:1204
↓ 2 callersFunctionis_alias
Return `true` if an [`Expr`] is an alias of `OSError`.
crates/ruff_linter/src/rules/pyupgrade/rules/os_error_alias.rs:61
↓ 2 callersFunctionis_alias
Return `true` if an [`Expr`] is an alias of `TimeoutError`.
crates/ruff_linter/src/rules/pyupgrade/rules/timeout_error_alias.rs:70
↓ 2 callersFunctionis_allowed_func_def
Returns `true` if a function definition is allowed to use a boolean trap.
crates/ruff_linter/src/rules/flake8_boolean_trap/helpers.rs:129
↓ 2 callersMethodis_always_satisfied_with_limits
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, storage: &mut Constrai
crates/ty_python_semantic/src/types/constraints.rs:2544
↓ 2 callersMethodis_always_undeclared
(&self)
crates/ty_python_core/src/use_def/place_state.rs:193
↓ 2 callersMethodis_any_namespace_package
Is this some kind of namespace package?
crates/ty_module_resolver/src/resolve.rs:1314
↓ 2 callersMethodis_arithmetic
(self)
crates/ruff_python_ast/src/token.rs:463
↓ 2 callersFunctionis_assignable_method_override
Checks whether a method override preserves its superclass method's callable domain. An explicitly annotated superclass receiver can restrict a method
crates/ty_python_semantic/src/types/overrides.rs:1533
↓ 2 callersMethodis_assignable_to_via_constraints
Checks whether the assignability constraints for this pair hold for every specialization.
crates/ty_python_semantic/src/types/relation.rs:465
↓ 2 callersMethodis_async
Returns `true` if the method is async, `false` if it is sync.
crates/ruff_linter/src/rules/flake8_async/helpers.rs:73
↓ 2 callersMethodis_async_comprehension
(self, index: &SemanticIndex)
crates/ty_python_core/src/scope.rs:120
↓ 2 callersMethodis_at_start_of_line
Returns `true` if `offset` is at the start of a line.
crates/ruff_source_file/src/line_ranges.rs:34
↓ 2 callersMethodis_available_in_scope
Return `true` if `member` is an "available" symbol in a given scope, i.e., a symbol that has not been bound in that current scope, or in any containin
crates/ruff_python_semantic/src/model.rs:469
↓ 2 callersMethodis_await
(&self)
crates/ruff_python_parser/src/semantic_errors.rs:2054
↓ 2 callersMethodis_bare_final
Returns `Some(…)` if the place is qualified with `typing.Final` without a specified type.
crates/ty_python_semantic/src/place.rs:1125
↓ 2 callersMethodis_bitwise_or_shift
(self)
crates/ruff_python_ast/src/token.rs:477
↓ 2 callersMethodis_bottom
Returns whether this is the bottom signature, which is assignable to all other signatures. (It accepts all parameter lists, and returns `Never`.)
crates/ty_python_semantic/src/types/signatures.rs:1115
↓ 2 callersMethodis_bound
Is the symbol given a value in its containing scope?
crates/ty_python_core/src/symbol.rs:71
↓ 2 callersFunctionis_builtin_module
(minor_version: u8, module: &str)
crates/ruff_python_stdlib/src/sys/builtin_modules.rs:13
↓ 2 callersMethodis_builtin_name
Returns `true` if `name` is provided by the configured Python runtime. This includes version- and source-type-specific builtins, magic globals, and c
crates/ruff_python_semantic/src/model.rs:324
↓ 2 callersMethodis_bundled_typing_stub
Returns whether this module resolves to a bundled typing-only stub. A project or installed module with the same name may still exist on a lower-prior
crates/ty_module_resolver/src/module.rs:115
↓ 2 callersFunctionis_call
Returns `true` if a function is a `__call__`.
crates/ruff_python_semantic/src/analyze/visibility.rs:137
↓ 2 callersMethodis_canceled
(&self)
crates/ruff_db/src/diagnostic/mod.rs:1570
↓ 2 callersMethodis_cell
Returns whether the document is a cell in a notebook opened by the client.
crates/ty_server/src/session.rs:1624
↓ 2 callersMethodis_cell_or_notebook
(&self)
crates/ty_server/src/session.rs:2017
↓ 2 callersMethodis_class_body_scope
(self)
crates/ty_python_semantic/src/place_load.rs:1196
↓ 2 callersFunctionis_class_method
Return `true` if a [`Decorator`] is indicative of a class method. Note: Implicit class methods like `__init_subclass__` and `__class_getitem__` are no
crates/ruff_python_semantic/src/analyze/function_type.rs:122
↓ 2 callersFunctionis_collection_initializer
(expr: &ast::Expr)
crates/ty_python_core/src/builder.rs:6285
↓ 2 callersFunctionis_collection_literal
(expr: &ast::Expr)
crates/ty_python_core/src/builder.rs:6289
↓ 2 callersMethodis_comment_only
Returns `true` if this is a comment only line
crates/ruff_linter/src/rules/pycodestyle/rules/logical_lines/mod.rs:126
↓ 2 callersMethodis_complete
Returns whether all type attributes were inspected while collecting this support.
crates/ty_python_semantic/src/types/constraints/support.rs:121
↓ 2 callersMethodis_complex
(self)
crates/ruff_linter/src/rules/ruff/rules/sequence_sorting.rs:362
↓ 2 callersFunctionis_constant
Returns `true` if the given expression is a constant in the context of the dictionary comprehension.
crates/ruff_linter/src/rules/flake8_bugbear/rules/static_key_dict_comprehension.rs:78
↓ 2 callersFunctionis_constant_non_singleton
Return `true` if the [`Expr`] is a non-singleton constant.
crates/ruff_python_ast/src/helpers.rs:833
↓ 2 callersMethodis_constraint_set_assignable_to
Return true if this type is assignable to type `target` using constraint-set typevar rules.
crates/ty_python_semantic/src/types/relation.rs:572
↓ 2 callersMethodis_constraint_set_equivalent_to
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, other: Type<'db>,
crates/ty_python_semantic/src/types/relation.rs:1051
↓ 2 callersFunctionis_constructor_like_method
(name: &str)
crates/ty_python_semantic/src/types/overrides.rs:1946
↓ 2 callersMethodis_contravariant
(self)
crates/ty_python_semantic/src/types/variance.rs:191
↓ 2 callersMethodis_data
(self)
crates/ty_python_semantic/src/types.rs:819
↓ 2 callersMethodis_data_descriptor_impl
( self, db: &'db dyn Db, program: Program<'db>, any_of_union: bool, )
crates/ty_python_semantic/src/types.rs:5616
↓ 2 callersFunctionis_dataclass_field
Return `true` if `func` represents a `field()` call corresponding to the `dataclass_kind` variant passed in. I.e., if `DataclassKind::Attrs` is passe
crates/ruff_linter/src/rules/ruff/helpers.rs:48
↓ 2 callersFunctionis_debugger_call
(qualified_name: &QualifiedName)
crates/ruff_linter/src/rules/flake8_debugger/rules/debugger.rs:92
↓ 2 callersFunctionis_default_pytest_test_file
(db: &dyn Db, file: ProgramFile<'_>)
crates/ty_python_semantic/src/types/dedicated/pytest/collection.rs:466
↓ 2 callersMethodis_deferred
Are we currently in a context where name resolution should be deferred (`__future__.annotations`, stub file, or stringified annotation)?
crates/ty_python_semantic/src/types/infer/builder.rs:1037
↓ 2 callersMethodis_directory_included
( &self, path: &SystemPath, mode: GlobFilterCheckMode, )
crates/ty_project/src/walk.rs:97
↓ 2 callersMethodis_directory_maybe_included
Returns whether this directory is included in this filter. Note, this function never returns [`IncludeResult::Included`] for a path that is not inclu
crates/ty_project/src/glob.rs:38
↓ 2 callersMethodis_disabled
(self)
crates/ruff_formatter/src/printer/printer_options/mod.rs:114
↓ 2 callersMethodis_docstring
Checks if this string literal is a docstring.
crates/ruff_python_formatter/src/other/string_literal.rs:34
↓ 2 callersFunctionis_document_excluded
Return `true` if the document at the given [`Path`] should be excluded. The tool-specific settings should be provided if the request for the document
crates/ruff_server/src/resolve.rs:53
↓ 2 callersFunctionis_document_excluded_for_formatting
Return `true` if the document at the given [`Path`] should be excluded from formatting.
crates/ruff_server/src/resolve.rs:26
↓ 2 callersMethodis_dry_run
(self)
crates/ruff_dev/src/generate_all.rs:36
↓ 2 callersFunctionis_dunder_method
(name: &str)
crates/ruff_linter/src/rules/flake8_simplify/rules/ast_unary_op.rs:136
↓ 2 callersFunctionis_dunder_operator_method
(method: &str)
crates/ruff_linter/src/rules/pylint/helpers.rs:177
↓ 2 callersFunctionis_empty
(expr: &Expr, semantic: &SemanticModel)
crates/ruff_linter/src/rules/ruff/rules/in_empty_collection.rs:52
↓ 2 callersMethodis_empty
Returns true when this group is empty.
crates/ty_ide/src/all_symbols.rs:506
↓ 2 callersMethodis_empty
Returns `true` if this node has no renderable content.
crates/ty_python_semantic/src/types/relation_error.rs:846
↓ 2 callersMethodis_empty
(&self)
crates/ty_python_semantic/src/types/context.rs:463
↓ 2 callersFunctionis_empty_interpolated_elements
( mut elements: impl Iterator<Item = &'a InterpolatedStringElement>, )
crates/ruff_python_ast/src/helpers.rs:1624
↓ 2 callersFunctionis_empty_string
Check if an expression is a constant empty string.
crates/ruff_linter/src/rules/refurb/rules/print_empty_string.rs:202
↓ 2 callersMethodis_enabled
(&self, meta: &Metadata<'_>)
crates/ty_server/src/logging.rs:98
↓ 2 callersMethodis_enclosing_list_element_or_terminator
(&self)
crates/ruff_python_parser/src/parser/mod.rs:907
↓ 2 callersMethodis_end
Returns `true` if `self` is any end tag.
crates/ruff_formatter/src/format_element/tag.rs:125
↓ 2 callersFunctionis_end_of_scope_reachable
Returns whether control flow can reach the end of `scope`. This can be used to check if a function can implicitly return `None`.
crates/ty_python_semantic/src/reachability.rs:2126
↓ 2 callersMethodis_enum
(&self, db: &'db dyn Db, env: &ProgramEnvironment<'db>)
crates/ty_python_semantic/src/types.rs:2728
↓ 2 callersMethodis_exact
Returns true if this selector is exact i.e. selects a single rule by code
crates/ruff_linter/src/rule_selector.rs:291
↓ 2 callersFunctionis_exception_check
(stmt: &Stmt)
crates/ruff_linter/src/rules/flake8_simplify/rules/ast_unary_op.rs:143
↓ 2 callersFunctionis_executable
(filepath: &Path)
crates/ruff_linter/src/rules/flake8_executable/helpers.rs:9
↓ 2 callersMethodis_exempt_from_return_type_inference
Constructor methods are exempt from return type inference; see `return_type_inference.md`.
crates/ty_python_semantic/src/types/function.rs:376
↓ 2 callersFunctionis_expanded_import_conventions_enabled
https://github.com/astral-sh/ruff/pull/21373
crates/ruff_linter/src/preview.rs:296
↓ 2 callersMethodis_explicit
(&self)
crates/mdtest/src/parser.rs:358
↓ 2 callersMethodis_explicit
(self)
crates/ty_python_semantic/src/types/function.rs:1160
↓ 2 callersFunctionis_expression_huggable
Returns `true` if the expression can hug directly to enclosing parentheses, as in Black's `hug_parens_with_braces_and_square_brackets` or `multiline_s
crates/ruff_python_formatter/src/expression/mod.rs:1267
↓ 2 callersMethodis_external
Return `true` if this [`Binding`] represents an external symbol (e.g., `FastAPI` in `from fastapi import FastAPI`).
crates/ruff_python_semantic/src/binding.rs:65
↓ 2 callersMethodis_extra
Is this a user-provided extra search path?
crates/ty_module_resolver/src/path.rs:711
↓ 2 callersFunctionis_fastapi_route_call
(call_expr: &ast::ExprCall, semantic: &SemanticModel)
crates/ruff_linter/src/rules/fastapi/rules/mod.rs:33
↓ 2 callersFunctionis_file_excluded
Return `true` if the given top-level [`Path`] should be excluded.
crates/ruff_workspace/src/resolver.rs:837
↓ 2 callersFunctionis_file_in_project
Helper function to check if a file is included in the project.
crates/ty_ide/src/rename.rs:93
↓ 2 callersMethodis_first_party_definition
(&self, definition: Definition<'db>)
crates/ty_python_semantic/src/types/infer/builder/suspicious_conditions/diagnostic.rs:993
↓ 2 callersFunctionis_float
Test whether the given binding can be considered an instance of `float`.
crates/ruff_python_semantic/src/analyze/typing.rs:1079
↓ 2 callersMethodis_formatted
If the comment has already been formatted
crates/ruff_python_formatter/src/comments/mod.rs:156
↓ 2 callersMethodis_formatted
(&self, path: &RelativePath, key: &FileCacheKey)
crates/ruff/src/cache.rs:276
↓ 2 callersFunctionis_frozen_dataclass_instantiation
Checks that the passed function is an instantiation of the class, retrieves the ``StmtClassDef`` and verifies that it is a frozen dataclass
crates/ruff_linter/src/rules/ruff/rules/function_call_in_dataclass_default.rs:174
↓ 2 callersFunctionis_fstring_with_quoted_debug_expression
Returns `true` if `string` is an f-string part that contains a debug expression that uses quotes and the format target is pre Python 312 We can't join
crates/ruff_python_formatter/src/string/normalize.rs:924
↓ 2 callersFunctionis_fstring_with_triple_quoted_literal_expression_containing_quotes
Tests if the `fstring` contains any triple quoted string, byte, or f-string literal that contains a quote character opposite to its own quote characte
crates/ruff_python_formatter/src/string/normalize.rs:949
↓ 2 callersFunctionis_function_definition
( db: &'db dyn Db, scope: ScopeId<'db>, symbol: ScopedSymbolId, )
crates/ty_python_semantic/src/types/overrides.rs:1802
↓ 2 callersMethodis_future_import
(&self)
crates/ruff_python_semantic/src/imports.rs:167
↓ 2 callersFunctionis_hangul_syllable
(c: char)
crates/ruff_unicode_names2/src/jamo.rs:17
↓ 2 callersFunctionis_hidden
(path: &SystemPath)
crates/ruff_db/src/system/memory_fs.rs:733
↓ 2 callersMethodis_human_readable
Returns `true` if this format is intended for users to read directly, in contrast to machine-readable or structured formats. This can be used to chec
crates/ty_project/src/metadata/options.rs:1532
← previousnext →6,001–6,100 of 31,562, ranked by callers