Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/astral-sh/ruff
/ functions
Functions
31,562 in github.com/astral-sh/ruff
⨍
Functions
31,562
◇
Types & classes
7,116
↳
Endpoints
82
Method
is_match_mapping
(&self)
crates/ruff_python_ast/src/generated.rs:3221
Method
is_match_or
(&self)
crates/ruff_python_ast/src/generated.rs:3369
Method
is_match_sequence
(&self)
crates/ruff_python_ast/src/generated.rs:3184
Method
is_match_singleton
(&self)
crates/ruff_python_ast/src/generated.rs:3147
Method
is_match_stmt
(&self)
crates/ruff_python_ast/src/generated.rs:814
Method
is_match_value
(&self)
crates/ruff_python_ast/src/generated.rs:3110
Method
is_module
(self)
crates/ty_module_resolver/src/module.rs:210
Function
is_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
Method
is_narrowing_target_candidate
(expr: &ast::Expr)
crates/ty_python_semantic/src/types/narrow.rs:4051
Method
is_non_empty
(self)
crates/ruff_python_formatter/src/expression/mod.rs:1151
Method
is_non_soft_keyword
(self)
crates/ruff_python_ast/src/token.rs:381
Method
is_nonlocal_stmt
(&self)
crates/ruff_python_ast/src/generated.rs:1073
Function
is_noreturn_func
Return `true` if the `func` appears to be non-returning.
crates/ruff_linter/src/rules/flake8_return/rules/function.rs:431
Method
is_notebook
(&self, file: &UnifiedFile)
crates/ruff_linter/src/message/mod.rs:156
Method
is_open_file
(&self, file: File)
crates/ty_project/src/db.rs:652
Method
is_open_file
(&self, _file: File)
crates/ty_test/src/db.rs:174
Method
is_open_file
(&self, _file: File)
crates/ty_python_semantic/tests/corpus.rs:242
Method
is_open_file
(&self, _file: File)
fuzz/fuzz_targets/ty_check_invalid_syntax.rs:150
Method
is_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
Method
is_package
Returns `true` if the file is an `__init__.pyi`
crates/ruff_db/src/files.rs:572
Method
is_param_spec
(&self)
crates/ruff_python_ast/src/generated.rs:3530
Function
is_parameter_name
Returns whether `name` is a valid Python parameter name, including variadic prefixes.
crates/ty_ide/src/docstring/document/google.rs:132
Method
is_parenthesized
Returns `true` if the expression is in a parenthesized context.
crates/ruff_python_formatter/src/context.rs:236
Method
is_pathlib_path_call
(expr: &Expr, semantic: &SemanticModel)
crates/ruff_linter/src/rules/pylint/rules/unspecified_encoding.rs:116
Method
is_pathlib_path_constructor
(semantic: &SemanticModel, expr: &Expr)
crates/ruff_python_semantic/src/analyze/typing.rs:943
Method
is_pathlib_path_constructor
( semantic: &ruff_python_semantic::SemanticModel, expr: &Expr, )
crates/ruff_linter/src/rules/flake8_async/rules/blocking_path_methods.rs:153
Method
is_pattern
(self)
crates/ruff_python_ast/src/generated.rs:7394
Method
is_pending
(&self, request_id: &RequestId)
crates/ruff_server/src/session/request_queue.rs:80
Function
is_possibly_constraint_set_assignable
(db: &'db dyn Db, types: TypePair<'db>)
crates/ty_python_semantic/src/types/constraints.rs:3714
Method
is_primary
(&self)
crates/ruff_annotate_snippets/src/snippet.rs:444
Method
is_printable_ascii
(byte: u8)
crates/ruff_formatter/src/format_element.rs:512
Method
is_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
Method
is_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
Method
is_py_file
(self)
crates/ruff_python_ast/src/lib.rs:141
Method
is_py_file_or_stub
(self)
crates/ruff_python_ast/src/lib.rs:149
Function
is_pytest_asyncio_enabled
https://github.com/astral-sh/ruff/issues/25375
crates/ruff_linter/src/preview.rs:13
Function
is_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
Function
is_python_notebook
(filename: &str, expected: bool)
crates/ruff_notebook/src/notebook.rs:525
Method
is_raw_string
Returns `true` if the token is a raw string.
crates/ruff_python_ast/src/token.rs:869
Method
is_read_only
Returns `true` if the place has a `ReadOnly` type qualifier.
crates/ty_python_semantic/src/place.rs:1120
Method
is_redundant_with_impl
(db: &'db dyn Db, types: TypePair<'db>)
crates/ty_python_semantic/src/types/relation.rs:812
Method
is_replacement
(&self)
crates/ruff_diagnostics/src/edit.rs:93
Method
is_required
Returns `true` if the place has a `Required` type qualifier.
crates/ty_python_semantic/src/place.rs:1110
Method
is_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
Method
is_same_file
( &self, first: &SystemPath, second: &SystemPath, )
crates/ty_test/src/db.rs:534
Method
is_same_file
(&self, first: &SystemPath, second: &SystemPath)
crates/ruff_db/src/system/test.rs:120
Method
is_same_file
(&self, first: &SystemPath, second: &SystemPath)
crates/ruff_db/src/system/os.rs:91
Method
is_same_file
( &self, first: &SystemPath, second: &SystemPath, )
crates/ty_wasm/src/lib.rs:1633
Method
is_set_comp_expr
(&self)
crates/ruff_python_ast/src/generated.rs:1948
Function
is_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
Method
is_singleton
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/instance.rs:415
Method
is_space
(&self)
crates/ruff_formatter/src/format_element.rs:253
Method
is_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
Method
is_spilled
(&self)
crates/ruff_python_ast/src/name.rs:728
Method
is_spilled
(&self)
crates/ty_python_semantic/src/types/cyclic.rs:1201
Method
is_spilled
(&self)
crates/ty_python_semantic/src/types/visitor.rs:438
Method
is_standalone_expression
(&self, expression_key: impl Into<ExpressionNodeKey>)
crates/ty_python_core/src/lib.rs:764
Method
is_start_tag
Returns `true` if self is a [`FormatElement::Tag`] and `Tag::is_start` is `true`.
crates/ruff_formatter/src/format_element.rs:229
Function
is_string
Test whether the given binding can be considered an instance of `str`.
crates/ruff_python_semantic/src/analyze/typing.rs:1084
Method
is_string_keyed_mapping
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, ty: Type<'db>, )
crates/ty_python_semantic/src/types/generics.rs:3733
Method
is_string_literal
(self)
crates/ruff_python_ast/src/expression.rs:247
Method
is_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
Method
is_subclass_of
Return `true` if `other` is present in this class's MRO.
crates/ty_python_semantic/src/types/class/static_literal.rs:1000
Method
is_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
Method
is_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
Method
is_system_path
(&self)
crates/ruff_db/src/files/path.rs:43
Method
is_tag
Returns `true` if self is a [`FormatElement::Tag`]
crates/ruff_formatter/src/format_element.rs:224
Method
is_terminal
(self)
crates/ty_python_core/src/predicate.rs:38
Method
is_try_stmt
(&self)
crates/ruff_python_ast/src/generated.rs:888
Method
is_type_alias
Return `true` if this [`Binding`] represents either kind of type alias
crates/ruff_python_semantic/src/binding.rs:177
Method
is_type_alias_stmt
(&self)
crates/ruff_python_ast/src/generated.rs:518
Method
is_type_var
(&self)
crates/ruff_python_ast/src/generated.rs:3456
Method
is_type_var
(self)
crates/ty_python_semantic/src/types/subclass_of.rs:182
Method
is_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
Method
is_type_var_tuple
(&self)
crates/ruff_python_ast/src/generated.rs:3493
Method
is_typed_dict
(self, db: &'db dyn Db, env: &ProgramEnvironment<'db>)
crates/ty_python_semantic/src/types/subclass_of.rs:391
Method
is_typed_dict
(self)
crates/ty_python_semantic/src/types/class_base.rs:93
Function
is_typing
Returns `true` if the [`ResolvedReference`] is in a typing context.
crates/ruff_linter/src/rules/pylint/rules/import_private_name.rs:174
Method
is_u_string
Does the string have a `u` or `U` prefix?
crates/ruff_python_ast/src/nodes.rs:2480
Method
is_unclosed
(self)
crates/ruff_python_ast/src/token.rs:842
Function
is_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
Method
is_valid_name
(name: &str)
crates/ty_module_resolver/src/module_name.rs:69
Method
is_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
Method
is_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
Method
is_warn
(self)
crates/ty_python_semantic/src/lint.rs:62
Method
is_while_stmt
(&self)
crates/ruff_python_ast/src/generated.rs:703
Function
is_whitelisted_call
(expr: &Expr, semantic: &SemanticModel, settings: &LinterSettings)
crates/ruff_linter/src/rules/flake8_bandit/rules/unsafe_markup_use.rs:147
Function
is_wildcard
Returns true if the [`MatchCase`] is a wildcard pattern.
crates/ruff_python_semantic/src/analyze/terminal.rs:370
Method
is_yes
(self)
crates/ruff_python_semantic/src/analyze/class.rs:310
Method
is_yes
(self)
crates/ty_python_semantic/src/types/set_theoretic.rs:1583
Method
is_yield_from_expr
(&self)
crates/ruff_python_ast/src/generated.rs:2133
Method
is_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
Function
isolated_option_allowed
()
crates/ruff/tests/cli/version.rs:80
Function
isort_directives
(contents: &str)
crates/ruff_linter/src/directives.rs:585
Function
isort_exclusions
()
crates/ruff_linter/src/directives.rs:593
Function
isort_splits
()
crates/ruff_linter/src/directives.rs:646
Function
issue_109854
()
crates/ruff_annotate_snippets/tests/rustc_tests.rs:5686
Function
issue_114529_illegal_break_with_value
()
crates/ruff_annotate_snippets/tests/rustc_tests.rs:1188
Function
issue_130
()
crates/ruff_annotate_snippets/tests/formatter.rs:613
Function
issue_19005_1
()
crates/ruff_linter/resources/test/fixtures/perflint/PERF403.py:176
← previous
next →
23,201–23,300 of 31,562, ranked by callers