Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/astral-sh/ruff
/ functions
Functions
31,766 in github.com/astral-sh/ruff
⨍
Functions
31,766
◇
Types & classes
7,128
↳
Endpoints
82
↓ 1 callers
Function
is_echo
(t: Kind)
crates/ruff_benchmark/resources/typeis_narrowing.py:166
↓ 1 callers
Method
is_editable
Is this search path provided by an editable installation?
crates/ty_module_resolver/src/path.rs:727
↓ 1 callers
Method
is_elif
(self)
crates/ruff_python_parser/src/parser/statement.rs:4173
↓ 1 callers
Method
is_elif
(self)
crates/ruff_linter/src/rules/flake8_simplify/rules/collapsible_if.rs:183
↓ 1 callers
Function
is_empty
(body: &[Stmt])
crates/ruff_linter/src/rules/flake8_simplify/rules/suppressible_exception.rs:69
↓ 1 callers
Method
is_empty
(&self)
crates/ty_python_core/src/predicate.rs:259
↓ 1 callers
Method
is_empty
(&self)
crates/ty_ide/src/lib.rs:255
↓ 1 callers
Method
is_empty
(&self)
crates/ty_python_semantic/src/types/diagnostic.rs:1756
↓ 1 callers
Method
is_empty
Returns `true` if this set contains no rules, `false` otherwise. ## Examples ```rust # use ruff_linter::registry::{Rule, RuleSet}; assert!(RuleSet::
crates/ruff_linter/src/registry/rule_set.rs:162
↓ 1 callers
Function
is_empty_body
Returns `true` if a function has an empty body.
crates/ruff_linter/src/rules/flake8_annotations/rules/definition.rs:593
↓ 1 callers
Function
is_empty_body
(body: &[Stmt])
crates/ruff_linter/src/rules/flake8_bugbear/rules/abstract_base_class.rs:128
↓ 1 callers
Function
is_empty_collection_constructor_call
(expr: &ast::Expr)
crates/ty_python_core/src/builder.rs:6271
↓ 1 callers
Method
is_empty_iterable
Returns `true` if the node represents an empty t-string in the sense that `__iter__` returns an empty iterable. Beware that empty t-strings are still
crates/ruff_python_ast/src/nodes.rs:950
↓ 1 callers
Method
is_enabled
(&self)
crates/ty/src/printer.rs:155
↓ 1 callers
Method
is_enabled
Returns `true` if the `lint` is enabled.
crates/ty_python_semantic/src/lint.rs:663
↓ 1 callers
Method
is_end
(&mut self, _element: &FormatElement)
crates/ruff_formatter/src/printer/queue.rs:265
↓ 1 callers
Method
is_end
Returns true when given line ends this fenced code block.
crates/ruff_python_formatter/src/string/docstring.rs:1411
↓ 1 callers
Method
is_end_tag
Returns `true` if self is a [`FormatElement::Tag`] and [`Tag::is_end`] is `true`.
crates/ruff_formatter/src/format_element.rs:237
↓ 1 callers
Function
is_enum_class
(db: &'db dyn Db, ty: Type<'db>)
crates/ty_python_semantic/src/types/enums.rs:1652
↓ 1 callers
Method
is_enum_subclass_with_members
Return `true` if this class is a subclass of `enum.Enum` *and* has enum members, i.e. if it is an "actual" enum, not `enum.Enum` itself or a similar c
crates/ty_python_semantic/src/types/class/known.rs:462
↓ 1 callers
Function
is_enumerate_for_loop_int_index_enabled
https://github.com/astral-sh/ruff/pull/21395
crates/ruff_linter/src/preview.rs:259
↓ 1 callers
Method
is_equal_ignoring_provenance
(self, other: Self)
crates/ty_python_semantic/src/place.rs:271
↓ 1 callers
Method
is_equality
(self)
crates/ty_python_semantic/src/types/narrow.rs:1661
↓ 1 callers
Method
is_equivalent_to
(self, db: &'db dyn Db, other: Self)
crates/ty_python_semantic/src/types/newtype.rs:124
↓ 1 callers
Method
is_equivalent_to
Returns whether the two constraint sets hold for exactly the same assignments.
crates/ty_python_semantic/src/types/constraints.rs:793
↓ 1 callers
Method
is_equivalent_to_object
Return `true` if this protocol is a supertype of `object`. This indicates that the protocol represents the same set of possible runtime objects as `o
crates/ty_python_semantic/src/types/instance.rs:1932
↓ 1 callers
Method
is_equivalent_to_with_materialization_visitor
( self, db: &'db dyn Db, other: Type<'db>, materialization_visitor: &ApplyType
crates/ty_python_semantic/src/types/relation.rs:978
↓ 1 callers
Method
is_exact_tuple
(self)
crates/ty_python_semantic/src/types/instance.rs:313
↓ 1 callers
Function
is_exc_info_enabled
Returns `true` if the `exc_info` keyword argument is truthy.
crates/ruff_linter/src/rules/flake8_blind_except/rules/blind_except.rs:189
↓ 1 callers
Method
is_except_handler
(&self)
crates/ruff_python_ast/src/generated.rs:2868
↓ 1 callers
Function
is_exception
Returns `true` if the given name is that of a builtin exception. See: <https://docs.python.org/3/library/exceptions.html#exception-hierarchy>
crates/ruff_python_stdlib/src/builtins.rs:471
↓ 1 callers
Function
is_exception_or_base_exception
(qualified_name: &QualifiedName)
crates/ruff_linter/src/rules/pydoclint/rules/check_docstring.rs:1082
↓ 1 callers
Method
is_excluded_from_deprecation
Returns whether this source of the loaded value is excluded from deprecation checks.
crates/ty_python_semantic/src/place_load.rs:953
↓ 1 callers
Function
is_excluded_test_function
Returns whether a property decorator excludes a function from collection.
crates/ty_python_semantic/src/types/dedicated/pytest/collection.rs:231
↓ 1 callers
Function
is_execute_method_inherits_from_airflow_operator
Check it's "execute" method inherits from Airflow base operator For example: ```python from airflow.models.baseoperator import BaseOperator class C
crates/ruff_linter/src/rules/airflow/rules/removal_in_3.rs:1234
↓ 1 callers
Function
is_exempt
Return `true` if `name` is exempt from typing-only enforcement.
crates/ruff_linter/src/rules/flake8_type_checking/rules/typing_only_runtime_import.rs:599
↓ 1 callers
Method
is_expecting_expression
Returns true when only an expression is valid after the cursor according to the python grammar. `node` should be the smallest AST node fully covering
crates/ty_ide/src/completion.rs:1499
↓ 1 callers
Function
is_explicit_concatenation
Returns `Some(true)` if an expression appears to be an explicit string concatenation, `Some(false)` if it's _not_ an explicit concatenation, and `None
crates/ruff_linter/src/rules/flake8_bandit/rules/hardcoded_sql_expression.rs:142
↓ 1 callers
Method
is_explicit_paramspec_argument
(&self, expr: &ast::Expr)
crates/ty_python_semantic/src/types/infer/builder/subscript.rs:1290
↓ 1 callers
Method
is_expression
(&self)
crates/ruff_python_ast/src/generated.rs:85
↓ 1 callers
Function
is_external
(path: str | None)
scripts/check-cargo-bans.py:39
↓ 1 callers
Method
is_extra_verbose
(self)
crates/ty/src/logging.rs:104
↓ 1 callers
Function
is_f811_shadowing_in_type_checking_enabled
https://github.com/astral-sh/ruff/pull/22560
crates/ruff_linter/src/preview.rs:286
↓ 1 callers
Method
is_f_string
Returns `true` if the token is an f-string.
crates/ruff_python_ast/src/token.rs:849
↓ 1 callers
Function
is_fastapi_dependency
(checker: &Checker, expr: &ast::Expr)
crates/ruff_linter/src/rules/fastapi/rules/fastapi_non_annotated_dependency.rs:154
↓ 1 callers
Function
is_fastapi_depends
(expr: &Expr, semantic: &SemanticModel)
crates/ruff_linter/src/rules/fastapi/rules/fastapi_unused_path_parameter.rs:435
↓ 1 callers
Function
is_field_list_marker
Returns whether `line` starts a reST field-list item.
crates/ty_ide/src/docstring/document/rst.rs:17
↓ 1 callers
Method
is_file_explicitly_included
Returns whether `file` itself is an explicit check path. Including a parent directory does not count as explicitly including the file.
crates/ty_project/src/lib.rs:797
↓ 1 callers
Method
is_file_included
Returns `true` if a file is part of the project and included in the paths to check. A file is included in the checked files if it is a sub path of th
crates/ty_project/src/walk.rs:87
↓ 1 callers
Function
is_file_level_invalid_rule_code_enabled
https://github.com/astral-sh/ruff/pull/23535
crates/ruff_linter/src/preview.rs:306
↓ 1 callers
Method
is_file_open
Returns `true` if `path` is known to be open in an editor.
crates/ruff_db/src/system.rs:76
↓ 1 callers
Function
is_final
Returns `true` if a class is an `final`.
crates/ruff_python_semantic/src/analyze/visibility.rs:115
↓ 1 callers
Function
is_final_annotation
Returns `true` if the given [`Expr`] is a `typing.Final` annotation.
crates/ruff_linter/src/rules/ruff/helpers.rs:69
↓ 1 callers
Function
is_final_assignment
Returns `true` if this is an assignment to a simple `Final`-annotated variable.
crates/ruff_linter/src/rules/flake8_pyi/rules/simple_defaults.rs:485
↓ 1 callers
Method
is_first
(&self)
crates/ty_python_core/src/definition.rs:1303
↓ 1 callers
Method
is_first_call_like
(self)
crates/ruff_python_formatter/src/expression/mod.rs:956
↓ 1 callers
Function
is_first_party
(import: &AnyImport, checker: &Checker)
crates/ruff_linter/src/rules/pyflakes/rules/unused_import.rs:274
↓ 1 callers
Method
is_first_statement_in_body
Check if the given statement is the first statement after the colon of a branch, be it in if statements, for statements, after each part of a try-exce
crates/ruff_python_ast/src/node.rs:687
↓ 1 callers
Function
is_fix_builtin_open_enabled
https://github.com/astral-sh/ruff/pull/20169
crates/ruff_linter/src/preview.rs:230
↓ 1 callers
Function
is_fix_f_string_logging_enabled
<https://github.com/astral-sh/ruff/pull/19303>
crates/ruff_linter/src/preview.rs:60
↓ 1 callers
Function
is_fix_manual_dict_comprehension_enabled
https://github.com/astral-sh/ruff/pull/16719
crates/ruff_linter/src/preview.rs:70
↓ 1 callers
Function
is_fix_manual_list_comprehension_enabled
https://github.com/astral-sh/ruff/pull/13919
crates/ruff_linter/src/preview.rs:75
↓ 1 callers
Function
is_fix_os_chmod_enabled
https://github.com/astral-sh/ruff/pull/19404
crates/ruff_linter/src/preview.rs:164
↓ 1 callers
Function
is_fix_os_getcwd_enabled
https://github.com/astral-sh/ruff/pull/19245
crates/ruff_linter/src/preview.rs:184
↓ 1 callers
Function
is_fix_os_makedirs_enabled
https://github.com/astral-sh/ruff/pull/19514
crates/ruff_linter/src/preview.rs:194
↓ 1 callers
Function
is_fix_os_mkdir_enabled
https://github.com/astral-sh/ruff/pull/19514
crates/ruff_linter/src/preview.rs:189
↓ 1 callers
Function
is_fix_os_path_abspath_enabled
https://github.com/astral-sh/ruff/pull/19213
crates/ruff_linter/src/preview.rs:99
↓ 1 callers
Function
is_fix_os_path_basename_enabled
https://github.com/astral-sh/ruff/pull/19213
crates/ruff_linter/src/preview.rs:154
↓ 1 callers
Function
is_fix_os_path_dirname_enabled
https://github.com/astral-sh/ruff/pull/19213
crates/ruff_linter/src/preview.rs:159
↓ 1 callers
Function
is_fix_os_path_exists_enabled
https://github.com/astral-sh/ruff/pull/19213
crates/ruff_linter/src/preview.rs:119
↓ 1 callers
Function
is_fix_os_path_expanduser_enabled
https://github.com/astral-sh/ruff/pull/19213
crates/ruff_linter/src/preview.rs:124
↓ 1 callers
Function
is_fix_os_path_getatime_enabled
https://github.com/astral-sh/ruff/pull/18922
crates/ruff_linter/src/preview.rs:89
↓ 1 callers
Function
is_fix_os_path_getctime_enabled
https://github.com/astral-sh/ruff/pull/18922
crates/ruff_linter/src/preview.rs:94
↓ 1 callers
Function
is_fix_os_path_getmtime_enabled
https://github.com/astral-sh/ruff/pull/18922
crates/ruff_linter/src/preview.rs:84
↓ 1 callers
Function
is_fix_os_path_getsize_enabled
https://github.com/astral-sh/ruff/pull/18763
crates/ruff_linter/src/preview.rs:80
↓ 1 callers
Function
is_fix_os_path_isabs_enabled
https://github.com/astral-sh/ruff/pull/19213
crates/ruff_linter/src/preview.rs:144
↓ 1 callers
Function
is_fix_os_path_isdir_enabled
https://github.com/astral-sh/ruff/pull/19213
crates/ruff_linter/src/preview.rs:129
↓ 1 callers
Function
is_fix_os_path_isfile_enabled
https://github.com/astral-sh/ruff/pull/19213
crates/ruff_linter/src/preview.rs:134
↓ 1 callers
Function
is_fix_os_path_islink_enabled
https://github.com/astral-sh/ruff/pull/19213
crates/ruff_linter/src/preview.rs:139
↓ 1 callers
Function
is_fix_os_path_samefile_enabled
https://github.com/astral-sh/ruff/pull/19404
crates/ruff_linter/src/preview.rs:179
↓ 1 callers
Function
is_fix_os_readlink_enabled
https://github.com/astral-sh/ruff/pull/19213
crates/ruff_linter/src/preview.rs:149
↓ 1 callers
Function
is_fix_os_remove_enabled
https://github.com/astral-sh/ruff/pull/19213
crates/ruff_linter/src/preview.rs:114
↓ 1 callers
Function
is_fix_os_rename_enabled
https://github.com/astral-sh/ruff/pull/19404
crates/ruff_linter/src/preview.rs:169
↓ 1 callers
Function
is_fix_os_replace_enabled
https://github.com/astral-sh/ruff/pull/19404
crates/ruff_linter/src/preview.rs:174
↓ 1 callers
Function
is_fix_os_rmdir_enabled
https://github.com/astral-sh/ruff/pull/19213
crates/ruff_linter/src/preview.rs:104
↓ 1 callers
Function
is_fix_os_stat_enabled
https://github.com/astral-sh/ruff/pull/26460
crates/ruff_linter/src/preview.rs:199
↓ 1 callers
Function
is_fix_os_symlink_enabled
https://github.com/astral-sh/ruff/pull/20009
crates/ruff_linter/src/preview.rs:204
↓ 1 callers
Function
is_fix_os_unlink_enabled
https://github.com/astral-sh/ruff/pull/19213
crates/ruff_linter/src/preview.rs:109
↓ 1 callers
Function
is_fix_pytest_composite_assertion_enabled
https://github.com/astral-sh/ruff/pull/27201
crates/ruff_linter/src/preview.rs:65
↓ 1 callers
Function
is_fix_runtime_string_union_enabled
https://github.com/astral-sh/ruff/pull/15635
crates/ruff_linter/src/preview.rs:55
↓ 1 callers
Method
is_fixable
(&self)
crates/ruff_annotate_snippets/src/renderer/render.rs:2340
↓ 1 callers
Method
is_fixed_sequence
(&self, db: &'db dyn Db, env: &ProgramEnvironment<'db>)
crates/ty_python_semantic/src/types/call/arguments.rs:224
↓ 1 callers
Method
is_flat
(&self)
crates/ruff_formatter/src/format_element.rs:136
↓ 1 callers
Method
is_flat
(self)
crates/ruff_python_formatter/src/other/interpolated_string.rs:66
↓ 1 callers
Function
is_fluent_layout_split_first_call_enabled
Returns `true` if the [`fluent_layout_split_first_call`](https://github.com/astral-sh/ruff/pull/21369) preview style is enabled.
crates/ruff_python_formatter/src/preview.rs:20
↓ 1 callers
Method
is_for_excluded
Returns `true` if `for` should be excluded from the expression.
crates/ruff_python_parser/src/parser/expression.rs:3231
↓ 1 callers
Method
is_for_stmt
(&self)
crates/ruff_python_ast/src/generated.rs:666
↓ 1 callers
Function
is_format_call
Return `true` if `expr` is a call to the `format` attribute, as in `s.format(...)`.
crates/ruff_linter/src/rules/flake8_gettext/rules/format_in_gettext_func_call.rs:88
↓ 1 callers
Function
is_foxtrot
(t: Kind)
crates/ruff_benchmark/resources/typeis_narrowing.py:170
↓ 1 callers
Function
is_frozen_dataclass
Return true if dataclass (stdlib or `attrs`) is frozen
crates/ruff_linter/src/rules/ruff/helpers.rs:169
← previous
next →
10,801–10,900 of 31,766, ranked by callers