MCPcopy Create free account

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

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

Methodis_match_mapping
(&self)
crates/ruff_python_ast/src/generated.rs:3221
Methodis_match_or
(&self)
crates/ruff_python_ast/src/generated.rs:3369
Methodis_match_sequence
(&self)
crates/ruff_python_ast/src/generated.rs:3184
Methodis_match_singleton
(&self)
crates/ruff_python_ast/src/generated.rs:3147
Methodis_match_stmt
(&self)
crates/ruff_python_ast/src/generated.rs:814
Methodis_match_value
(&self)
crates/ruff_python_ast/src/generated.rs:3110
Methodis_module
(self)
crates/ty_module_resolver/src/module.rs:210
Functionis_mutable_return_type
Returns `true` if a call path represents a function from the Python standard library that returns a mutable value (e.g., `dict`).
crates/ruff_python_stdlib/src/typing.rs:303
Methodis_narrowing_target_candidate
(expr: &ast::Expr)
crates/ty_python_semantic/src/types/narrow.rs:4051
Methodis_non_empty
(self)
crates/ruff_python_formatter/src/expression/mod.rs:1151
Methodis_non_soft_keyword
(self)
crates/ruff_python_ast/src/token.rs:381
Methodis_nonlocal_stmt
(&self)
crates/ruff_python_ast/src/generated.rs:1073
Functionis_noreturn_func
Return `true` if the `func` appears to be non-returning.
crates/ruff_linter/src/rules/flake8_return/rules/function.rs:431
Methodis_notebook
(&self, file: &UnifiedFile)
crates/ruff_linter/src/message/mod.rs:156
Methodis_open_file
(&self, file: File)
crates/ty_project/src/db.rs:652
Methodis_open_file
(&self, _file: File)
crates/ty_test/src/db.rs:174
Methodis_open_file
(&self, _file: File)
crates/ty_python_semantic/tests/corpus.rs:242
Methodis_open_file
(&self, _file: File)
fuzz/fuzz_targets/ty_check_invalid_syntax.rs:150
Methodis_own_line
Returns `true` if a comment is an own-line comment (as opposed to an end-of-line comment).
crates/ruff_python_trivia/src/comment_ranges.rs:249
Methodis_package
Returns `true` if the file is an `__init__.pyi`
crates/ruff_db/src/files.rs:572
Methodis_param_spec
(&self)
crates/ruff_python_ast/src/generated.rs:3530
Functionis_parameter_name
Returns whether `name` is a valid Python parameter name, including variadic prefixes.
crates/ty_ide/src/docstring/document/google.rs:132
Methodis_parenthesized
Returns `true` if the expression is in a parenthesized context.
crates/ruff_python_formatter/src/context.rs:236
Methodis_pathlib_path_call
(expr: &Expr, semantic: &SemanticModel)
crates/ruff_linter/src/rules/pylint/rules/unspecified_encoding.rs:116
Methodis_pathlib_path_constructor
(semantic: &SemanticModel, expr: &Expr)
crates/ruff_python_semantic/src/analyze/typing.rs:943
Methodis_pathlib_path_constructor
( semantic: &ruff_python_semantic::SemanticModel, expr: &Expr, )
crates/ruff_linter/src/rules/flake8_async/rules/blocking_path_methods.rs:153
Methodis_pattern
(self)
crates/ruff_python_ast/src/generated.rs:7394
Methodis_pending
(&self, request_id: &RequestId)
crates/ruff_server/src/session/request_queue.rs:80
Functionis_possibly_constraint_set_assignable
(db: &'db dyn Db, types: TypePair<'db>)
crates/ty_python_semantic/src/types/constraints.rs:3714
Methodis_primary
(&self)
crates/ruff_annotate_snippets/src/snippet.rs:444
Methodis_printable_ascii
(byte: u8)
crates/ruff_formatter/src/format_element.rs:512
Methodis_private
Returns `true` if the module name is considered private. This routine is meant to codify a Python ecosystem convention. That is, a module is consider
crates/ty_module_resolver/src/module_name.rs:438
Methodis_promotable_tuple_literal
Returns true if the given expression is either a non-starred homogeneous tuple literal or the empty tuple (and hence is eligible for tuple size promot
crates/ty_python_semantic/src/types/tuple/promotion.rs:184
Methodis_py_file
(self)
crates/ruff_python_ast/src/lib.rs:141
Methodis_py_file_or_stub
(self)
crates/ruff_python_ast/src/lib.rs:149
Functionis_pytest_asyncio_enabled
https://github.com/astral-sh/ruff/issues/25375
crates/ruff_linter/src/preview.rs:13
Functionis_python_identifier_continue
Return `true` if the given character is a valid Python identifier continuation character. Python identifiers can contain alphanumeric characters and
crates/ruff_python_ast/src/identifier.rs:143
Functionis_python_notebook
(filename: &str, expected: bool)
crates/ruff_notebook/src/notebook.rs:525
Methodis_raw_string
Returns `true` if the token is a raw string.
crates/ruff_python_ast/src/token.rs:869
Methodis_read_only
Returns `true` if the place has a `ReadOnly` type qualifier.
crates/ty_python_semantic/src/place.rs:1120
Methodis_redundant_with_impl
(db: &'db dyn Db, types: TypePair<'db>)
crates/ty_python_semantic/src/types/relation.rs:812
Methodis_replacement
(&self)
crates/ruff_diagnostics/src/edit.rs:93
Methodis_required
Returns `true` if the place has a `Required` type qualifier.
crates/ty_python_semantic/src/place.rs:1110
Methodis_safe_mutable_class
Arbitrary `__getitem__`/`__setitem__` methods on a class do not necessarily guarantee that the passed-in value for `__setitem__` is stored and can be
crates/ty_python_semantic/src/types/infer/builder.rs:13655
Methodis_same_file
( &self, first: &SystemPath, second: &SystemPath, )
crates/ty_test/src/db.rs:534
Methodis_same_file
(&self, first: &SystemPath, second: &SystemPath)
crates/ruff_db/src/system/test.rs:120
Methodis_same_file
(&self, first: &SystemPath, second: &SystemPath)
crates/ruff_db/src/system/os.rs:91
Methodis_same_file
( &self, first: &SystemPath, second: &SystemPath, )
crates/ty_wasm/src/lib.rs:1633
Methodis_set_comp_expr
(&self)
crates/ruff_python_ast/src/generated.rs:1948
Functionis_simple_assignment_to_attribute
Checks whether a statement is a, possibly augmented, assignment of a name to an attribute.
crates/ruff_linter/src/rules/flake8_bugbear/rules/class_as_data_structure.rs:116
Methodis_singleton
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/instance.rs:415
Methodis_space
(&self)
crates/ruff_formatter/src/format_element.rs:253
Methodis_spellable
Return `true` if it is possible to spell an equivalent type to this one in user annotations without nonstandard extensions to the type system
crates/ty_python_semantic/src/types.rs:3523
Methodis_spilled
(&self)
crates/ruff_python_ast/src/name.rs:728
Methodis_spilled
(&self)
crates/ty_python_semantic/src/types/cyclic.rs:1201
Methodis_spilled
(&self)
crates/ty_python_semantic/src/types/visitor.rs:438
Methodis_standalone_expression
(&self, expression_key: impl Into<ExpressionNodeKey>)
crates/ty_python_core/src/lib.rs:764
Methodis_start_tag
Returns `true` if self is a [`FormatElement::Tag`] and `Tag::is_start` is `true`.
crates/ruff_formatter/src/format_element.rs:229
Functionis_string
Test whether the given binding can be considered an instance of `str`.
crates/ruff_python_semantic/src/analyze/typing.rs:1084
Methodis_string_keyed_mapping
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, ty: Type<'db>, )
crates/ty_python_semantic/src/types/generics.rs:3733
Methodis_string_literal
(self)
crates/ruff_python_ast/src/expression.rs:247
Methodis_structural
Whether this mapping rewrites type structure without semantic normalization. Binding and unfolding may traverse open recursive bodies, so neither inf
crates/ty_python_semantic/src/types.rs:11857
Methodis_subclass_of
Return `true` if `other` is present in this class's MRO.
crates/ty_python_semantic/src/types/class/static_literal.rs:1000
Methodis_suppression_off
Returns true if this comment is a `fmt: on` or `yapf: enable` own line suppression comment.
crates/ruff_python_trivia/src/comments.rs:60
Methodis_suppression_on
Returns true if this comment is a `fmt: off` or `yapf: disable` own line suppression comment.
crates/ruff_python_trivia/src/comments.rs:55
Methodis_system_path
(&self)
crates/ruff_db/src/files/path.rs:43
Methodis_tag
Returns `true` if self is a [`FormatElement::Tag`]
crates/ruff_formatter/src/format_element.rs:224
Methodis_terminal
(self)
crates/ty_python_core/src/predicate.rs:38
Methodis_try_stmt
(&self)
crates/ruff_python_ast/src/generated.rs:888
Methodis_type_alias
Return `true` if this [`Binding`] represents either kind of type alias
crates/ruff_python_semantic/src/binding.rs:177
Methodis_type_alias_stmt
(&self)
crates/ruff_python_ast/src/generated.rs:518
Methodis_type_var
(&self)
crates/ruff_python_ast/src/generated.rs:3456
Methodis_type_var
(self)
crates/ty_python_semantic/src/types/subclass_of.rs:182
Methodis_type_var_like_call
Returns `true` if an [`Expr`] is a `TypeVar`, `TypeVarTuple`, or `ParamSpec` call. See also [`ruff_linter::rules::flake8_pyi::rules::simple_defaults:
crates/ruff_python_semantic/src/analyze/typing.rs:1012
Methodis_type_var_tuple
(&self)
crates/ruff_python_ast/src/generated.rs:3493
Methodis_typed_dict
(self, db: &'db dyn Db, env: &ProgramEnvironment<'db>)
crates/ty_python_semantic/src/types/subclass_of.rs:391
Methodis_typed_dict
(self)
crates/ty_python_semantic/src/types/class_base.rs:93
Functionis_typing
Returns `true` if the [`ResolvedReference`] is in a typing context.
crates/ruff_linter/src/rules/pylint/rules/import_private_name.rs:174
Methodis_u_string
Does the string have a `u` or `U` prefix?
crates/ruff_python_ast/src/nodes.rs:2480
Methodis_unclosed
(self)
crates/ruff_python_ast/src/token.rs:842
Functionis_uppercase
Return `true` if a string is uppercase. A string is uppercase if all alphabetic characters in the string are uppercase. ## Examples ```rust use ruf
crates/ruff_python_stdlib/src/str.rs:58
Methodis_valid_name
(name: &str)
crates/ty_module_resolver/src/module_name.rs:69
Methodis_valid_number
Checks if a given number is valid (int or float). Args: number (any): The value to check. Returns:
crates/ruff_linter/resources/test/fixtures/pydoclint/DOC102_google.py:185
Methodis_valid_number
Checks if a given number is valid (int or float). Parameters ---------- number : any The value to check.
crates/ruff_linter/resources/test/fixtures/pydoclint/DOC102_numpy.py:243
Methodis_warn
(self)
crates/ty_python_semantic/src/lint.rs:62
Methodis_while_stmt
(&self)
crates/ruff_python_ast/src/generated.rs:703
Functionis_whitelisted_call
(expr: &Expr, semantic: &SemanticModel, settings: &LinterSettings)
crates/ruff_linter/src/rules/flake8_bandit/rules/unsafe_markup_use.rs:147
Functionis_wildcard
Returns true if the [`MatchCase`] is a wildcard pattern.
crates/ruff_python_semantic/src/analyze/terminal.rs:370
Methodis_yes
(self)
crates/ruff_python_semantic/src/analyze/class.rs:310
Methodis_yes
(self)
crates/ty_python_semantic/src/types/set_theoretic.rs:1583
Methodis_yield_from_expr
(&self)
crates/ruff_python_ast/src/generated.rs:2133
Methodis_yield_statement
Returns `true` if the statement is an expression statement containing a `yield` or `yield from`.
crates/ruff_linter/src/rules/ruff/rules/fallible_context_manager.rs:269
Functionisolated_option_allowed
()
crates/ruff/tests/cli/version.rs:80
Functionisort_directives
(contents: &str)
crates/ruff_linter/src/directives.rs:585
Functionisort_exclusions
()
crates/ruff_linter/src/directives.rs:593
Functionisort_splits
()
crates/ruff_linter/src/directives.rs:646
Functionissue_109854
()
crates/ruff_annotate_snippets/tests/rustc_tests.rs:5686
Functionissue_114529_illegal_break_with_value
()
crates/ruff_annotate_snippets/tests/rustc_tests.rs:1188
Functionissue_130
()
crates/ruff_annotate_snippets/tests/formatter.rs:613
Functionissue_19005_1
()
crates/ruff_linter/resources/test/fixtures/perflint/PERF403.py:176
← previousnext →23,201–23,300 of 31,562, ranked by callers