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
Function
allow_magic_value_types
()
crates/ruff_linter/src/rules/pylint/mod.rs:303
Function
allow_nested_overload
()
crates/ruff_linter/src/rules/flake8_annotations/mod.rs:206
Function
allow_overload
()
crates/ruff_linter/src/rules/flake8_annotations/mod.rs:188
Function
allow_star_arg_any
()
crates/ruff_linter/src/rules/flake8_annotations/mod.rs:172
Function
allowlisted_html_comments_are_permitted
()
crates/mdtest/src/parser.rs:2381
Method
allows_expression
Reports whether an inferred collection element allows tuple size promotion. Tuple types from annotations or nonliteral expressions keep their shape.
crates/ty_python_semantic/src/types/tuple/promotion.rs:171
Method
allows_quoted_literal_block
Whether or not a particular literal block can contain an unindented quoted literal block.
crates/ty_ide/src/docstring/document/preformatted.rs:261
Function
already_correct
()
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP052.py:119
Function
already_short_circuit
()
crates/ruff_linter/resources/test/fixtures/airflow/AIR004.py:92
Function
also_bad
(__x: int, __y: str)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI063.py:7
Function
also_cool
(x__: int)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI063.py:17
Method
also_cool
(self__: int)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI063.py:44
Method
also_evil_raises
(self)
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B017_0.py:26
Function
also_okay
(x: int, __y: str)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI063.py:13
Function
altair
(bencher: Bencher)
crates/ruff_benchmark/benches/ty_walltime.rs:226
Function
alternative_constraint_failures_keep_upper_bounds_on_separate_paths
()
crates/ty_python_semantic/src/types/constraints/projection/tests.rs:252
Function
alternative_storage_budget_preserves_merged_inference
()
crates/ty_python_semantic/src/types/generics.rs:5496
Method
always
Creates an unconditional edge to the target block
crates/ruff_python_semantic/src/cfg/graph.rs:121
Method
always
()
crates/ty_python_semantic/src/types/constraints.rs:293
Function
always_satisfied_receiver_constraints_are_discarded
()
crates/ty_python_semantic/src/types/signatures.rs:6736
Function
ambiguous_imported_names_do_not_suppress_independent_edits
()
crates/ty_ide/src/will_rename.rs:1951
Method
analysis_settings
(&self, file: File)
crates/ty_project/src/db.rs:631
Method
analysis_settings
(&self, file: File)
crates/ty_test/src/db.rs:178
Method
analysis_settings
(&self, _file: File)
crates/ty_python_semantic/tests/corpus.rs:246
Method
analysis_settings
(&self, _file: File)
fuzz/fuzz_targets/ty_check_invalid_syntax.rs:134
Function
analyze_graph
Generate an import map.
crates/ruff/src/commands/analyze_graph.rs:23
Method
ancestor_ids
Returns an iterator over all [`ScopeId`] ancestors, starting from the given [`ScopeId`].
crates/ruff_python_semantic/src/scope.rs:280
Method
ancestor_ids
Returns an iterator over all [`BranchId`] ancestors, starting from the given [`BranchId`].
crates/ruff_python_semantic/src/branches.rs:40
Method
ancestors
Returns an iterator over the ancestor nodes, starting with the node itself and walking towards the root.
crates/ruff_python_ast/src/find_node.rs:118
Method
ancestors_of_static_class
Resolve a static class's ancestors in MRO order from the supplied base types. The iterator supplies the class itself before requesting these entries.
crates/ty_python_semantic/src/types/mro.rs:55
Function
and_another_bad
(a)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY003.py:42
Function
and_that
"hey yah"
crates/ruff_python_formatter/resources/test/fixtures/black/cases/docstring.py:95
Function
and_that
"hey yah"
crates/ruff_python_formatter/resources/test/fixtures/black/cases/docstring_no_string_normalization.py:85
Function
and_this
"hey yah
crates/ruff_python_formatter/resources/test/fixtures/black/cases/docstring.py:100
Function
and_this
"hey yah
crates/ruff_python_formatter/resources/test/fixtures/black/cases/docstring_no_string_normalization.py:90
Function
and_this
(value=set())
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B006_B008.py:85
Function
and_this_also
(value=tuple())
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B006_B008.py:22
Method
ann_assign_stmt
(self)
crates/ruff_python_ast/src/generated.rs:634
Function
annotate_eol
()
crates/ruff_annotate_snippets/tests/formatter.rs:818
Function
annotate_eol2
()
crates/ruff_annotate_snippets/tests/formatter.rs:854
Function
annotate_eol3
()
crates/ruff_annotate_snippets/tests/formatter.rs:885
Function
annotate_eol4
()
crates/ruff_annotate_snippets/tests/formatter.rs:916
Function
annotate_eol_double_width
()
crates/ruff_annotate_snippets/tests/formatter.rs:952
Function
annotate_newline_empty_span
()
crates/ruff_annotate_snippets/tests/formatter.rs:787
Function
annotated_assign
()
crates/ruff_linter/resources/test/fixtures/mccabe/C901.py:107
Function
annotated_assign
()
crates/ruff_linter/src/rules/mccabe/rules/function_is_too_complex.rs:379
Function
annotated_async_def
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:4203
Function
annotated_collections_abc_mapping
()
crates/ruff_linter/resources/test/fixtures/airflow/AIR202.py:36
Function
annotated_dict
()
crates/ruff_linter/resources/test/fixtures/airflow/AIR202.py:16
Function
annotated_dict_subscript
()
crates/ruff_linter/resources/test/fixtures/airflow/AIR202.py:21
Function
annotated_dict_via_sdk
()
crates/ruff_linter/resources/test/fixtures/airflow/AIR202.py:55
Function
annotated_mutable_mapping
()
crates/ruff_linter/resources/test/fixtures/airflow/AIR202.py:41
Function
annotated_sub_diagnostics_include_all_annotations
()
crates/ty_wasm/tests/api.rs:239
Function
annotated_type_typing_missing_forward_type_multiple_args
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:4453
Function
annotated_type_typing_with_string_args
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:4466
Function
annotated_type_typing_with_string_args_in_union
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:4479
Function
annotated_typed_dict
()
crates/ruff_linter/resources/test/fixtures/airflow/AIR202.py:50
Function
annotated_typing_dict
()
crates/ruff_linter/resources/test/fixtures/airflow/AIR202.py:26
Function
annotated_typing_mapping
()
crates/ruff_linter/resources/test/fixtures/airflow/AIR202.py:31
Function
annotating_an_import
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:4151
Function
annotation_many_files_primary_always_comes_first
()
crates/ruff_db/src/diagnostic/render.rs:2385
Function
annotation_message
()
crates/ruff_db/src/diagnostic/render.rs:2249
Function
annotation_multi_line
()
crates/ruff_db/src/diagnostic/render.rs:1986
Function
annotation_one_file_primary_always_comes_first
()
crates/ruff_db/src/diagnostic/render.rs:2300
Function
annotation_only
()
crates/ty_python_core/src/lib.rs:1323
Function
annotation_only_values_prevent_identifying_all_bindings
()
crates/ty_python_semantic/src/semantic_model.rs:1528
Function
annotation_overlapping_multi_line
()
crates/ruff_db/src/diagnostic/render.rs:2101
Function
annotation_undefined
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:1761
Method
annotations
Highlight and describe spans of text within the [`source`][Self::source]
crates/ruff_annotate_snippets/src/snippet.rs:325
Function
annotations_preserve_order
()
crates/ruff_wasm/tests/api.rs:206
Method
anonymized_line_numbers
Anonymize line numbers When enabled, line numbers are replaced with `LL` which is useful for tests. # Example ```text --> $DIR/whitespace-trimming.
crates/ruff_annotate_snippets/src/renderer/mod.rs:194
Function
another_bad
(a)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY003.py:37
Method
another_cached_instance_method
(self, y)
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B019.py:83
Method
another_called_cached_instance_method
(self, y)
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B019.py:91
Method
another_called_lru_cached_instance_method
(self, y)
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B019.py:107
Function
another_cool_function
()
crates/ruff_linter/resources/test/fixtures/flake8_tidy_imports/TID253.py:24
Function
another_deprecated_function
()
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI053.py:61
Function
another_function
This docstring is capitalized.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D403.py:11
Function
another_good
(a)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY003.py:52
Function
another_inline
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/comments9.py:89
Method
another_lru_cached_instance_method
(self, y)
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B019.py:99
Function
another_top_level_quote_inline_inline
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/comments9.py:102
Function
another_valid_google_style_docstring
Foo bar. Examples: Some explanation here. >>> bla bla bla
crates/ruff_linter/resources/test/fixtures/pydocstyle/sections.py:624
Function
anotherfunc
()
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY002.py:28
Function
any
(exp)
crates/ruff_linter/resources/test/fixtures/flake8_simplify/SIM110.py:121
Method
any_applicable_fixes
(&self)
crates/ruff/src/printer.rs:553
Method
any_fixable
(&self)
crates/ruff/src/printer.rs:50
Function
any_over_stmt_type_alias
()
crates/ruff_python_ast/src/helpers.rs:1894
Function
any_over_type_param_param_spec
()
crates/ruff_python_ast/src/helpers.rs:2044
Function
any_over_type_param_type_var
()
crates/ruff_python_ast/src/helpers.rs:1953
Function
any_over_type_param_type_var_tuple
()
crates/ruff_python_ast/src/helpers.rs:2007
Function
any_str_param
(s: AnyStr)
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP047_0.py:43
Function
anyio
(criterion: &mut Criterion)
crates/ruff_benchmark/benches/ty.rs:2950
Function
anyio_path_in_foo
()
crates/ruff_linter/resources/test/fixtures/flake8_async/ASYNC240.py:49
Method
applicable_edit
Create a new [`Fix`] with the specified [`Applicability`] to apply an [`Edit`] element.
crates/ruff_diagnostics/src/fix.rs:120
Method
applicable_edits
Create a new [`Fix`] with the specified [`Applicability`] to apply multiple [`Edit`] elements.
crates/ruff_diagnostics/src/fix.rs:129
Function
apply_keyword_hint
(call: &str)
crates/ty_ide/src/inlay_hints.rs:3995
Function
apply_one_insertion
()
crates/ruff_linter/src/fix/mod.rs:217
Function
apply_one_removal
()
crates/ruff_linter/src/fix/mod.rs:301
Function
apply_one_replacement
()
crates/ruff_linter/src/fix/mod.rs:260
← previous
next →
15,701–15,800 of 31,766, ranked by callers