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
restore_stack
()
crates/ruff_formatter/src/printer/stack.rs:116
Method
restore_state_snapshot
Restore the state of the formatter to a previous snapshot
crates/ruff_formatter/src/formatter.rs:212
Function
restoring_script_metadata_rewatches_search_path
()
crates/ty/tests/file_watching.rs:1726
Function
restrict_to_this_line
(arg1, arg2, arg3)
crates/ruff_python_formatter/resources/test/fixtures/black/cases/line_ranges_two_passes.py:9
Method
result_id_from_hash
Computes the result ID for the filtered `diagnostics`. The result ID is `None` if there are no diagnostics or hints.
crates/ty_server/src/server/api/diagnostics.rs:44
Function
resumes_after_markdown_fence
()
crates/ty_ide/src/docstring/document/google.rs:1411
Function
resumes_after_rest_directive
()
crates/ty_ide/src/docstring/document/google.rs:1445
Function
resumes_after_rest_literal_block
()
crates/ty_ide/src/docstring/document/google.rs:1428
Function
resumes_after_unindented_markdown_fence_following_rest_literal_marker
()
crates/ty_ide/src/docstring/document/google.rs:1458
Function
retain_extra_whitespace
Summary. This is overindented And so is this, but it we should preserve the extra space on this line relative to the
crates/ruff_linter/resources/test/fixtures/pydocstyle/D.py:670
Function
retain_extra_whitespace_deeper
Summary. This is overindented And so is this, but it we should preserve the extra space on this line relative to the
crates/ruff_linter/resources/test/fixtures/pydocstyle/D.py:692
Function
retain_extra_whitespace_followed_by_same_offset
Summary. This is overindented And so is this, but it we should preserve the extra space on this line relative This is ove
crates/ruff_linter/resources/test/fixtures/pydocstyle/D.py:701
Function
retain_extra_whitespace_multiple
Summary. This is overindented And so is this, but it we should preserve the extra space on this line relative to the
crates/ruff_linter/resources/test/fixtures/pydocstyle/D.py:679
Function
retain_extra_whitespace_not_overindented
Summary. This is not overindented This is overindented, but since one line is not overindented this should not raise And so i
crates/ruff_linter/resources/test/fixtures/pydocstyle/D.py:711
Function
return_annotation_is_class_scope_variable
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:4283
Function
return_annotation_is_function_body_variable
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:4298
Function
return_not_counted
()
crates/ruff_linter/src/rules/pylint/helpers.rs:597
Method
return_stmt
(self)
crates/ruff_python_ast/src/generated.rs:449
Function
return_true
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/comments_in_double_parens.py:32
Function
return_type
(arg: Optional = None)
crates/ruff_linter/resources/test/fixtures/ruff/RUF013_4.py:18
Method
return_type
( context: InlayHintImportContext<'_, 'db>, function: &ruff_python_ast::StmtFunctionDef,
crates/ty_ide/src/inlay_hints.rs:251
Function
return_type_hint_imports
()
crates/ty_ide/src/inlay_hints.rs:1256
Function
returning_to_previous_metadata_resynchronizes_the_environment
()
crates/ty_project/src/uv/environments.rs:1321
Function
returns_before_args
Summary. Returns: int Args: x: Description.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D420_google.py:30
Function
returns_iterator
()
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP052.py:97
Function
returns_list
()
crates/ruff_linter/resources/test/fixtures/airflow/AIR202.py:154
Method
returns_nominal_instance
Specializing a nominal return type can change a descriptor's type arguments, but it cannot turn the descriptor into an abstract function, bound method
crates/ty_python_semantic/src/types/infer/builder.rs:12415
Function
returns_none
()
crates/ruff_linter/resources/test/fixtures/airflow/AIR202.py:164
Function
returns_scalar
()
crates/ruff_linter/resources/test/fixtures/airflow/AIR202.py:149
Function
returns_section_fragments_and_range
()
crates/ty_ide/src/docstring/document/google.rs:1525
Function
returns_structured_section_kinds_in_source_order
()
crates/ty_ide/src/docstring/document/google.rs:1499
Function
returns_then_unordered_then_args
Summary. Returns: int Notes: Some notes. Args: x: Description.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D420_google.py:146
Function
returns_tuple
()
crates/ruff_linter/resources/test/fixtures/airflow/AIR202.py:159
Function
returns_value
()
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP052.py:73
Function
revealed_match
()
crates/mdtest/src/matcher.rs:632
Function
revealed_match_with_only_undefined
()
crates/mdtest/src/matcher.rs:739
Function
revealed_match_with_undefined
()
crates/mdtest/src/matcher.rs:722
Function
revealed_mismatch_with_undefined
()
crates/mdtest/src/matcher.rs:753
Function
revealed_unmatched
()
crates/mdtest/src/matcher.rs:715
Function
revealed_wrong_message
()
crates/mdtest/src/matcher.rs:692
Function
revealed_wrong_rule
()
crates/mdtest/src/matcher.rs:669
Method
reverse_bound
(bound: Option<i32>)
crates/ty_python_semantic/src/types/tuple.rs:1550
Method
reverse_index
(index: i32)
crates/ty_python_semantic/src/types/tuple.rs:1545
Method
revision
(&self)
crates/ruff_db/src/vendored.rs:317
Function
revision_from_file_time
()
crates/ruff_db/src/file_revision.rs:59
Method
rewind
(&mut self, checkpoint: InterpolatedStringsCheckpoint)
crates/ruff_python_parser/src/lexer/interpolated_string.rs:151
Method
rewind
(&mut self, checkpoint: IndentationsCheckpoint)
crates/ruff_python_parser/src/lexer/indentation.rs:134
Function
rewrite_client_arrays
Function from https://github.com/zulip/zulip/blob/3da91e951cd03cfa0b9c67378224e348353f36a6/analytics/views/stats.py#L617C1-L626C25
crates/ruff_linter/resources/test/fixtures/pylint/unnecessary_dict_index_lookup.py:43
Function
rewrites_alias_names_and_preserves_asnames_in_a_plain_import
()
crates/ty_ide/src/will_rename.rs:1407
Function
rewrites_imports_for_multiple_module_renames
()
crates/ty_ide/src/will_rename.rs:1683
Function
rewrites_module_fields_and_alias_names_in_an_import_from
()
crates/ty_ide/src/will_rename.rs:1435
Function
rewrites_module_references_in_string_annotations
()
crates/ty_ide/src/will_rename.rs:1644
Function
rewrites_references_only_when_import_definitions_agree
()
crates/ty_ide/src/will_rename.rs:1772
Function
right_assoc_pow_chain_grows_stack
()
crates/ruff_python_parser/src/parser/tests.rs:479
Method
root
()
crates/ty_module_resolver/src/resolve/search.rs:1536
Method
root
()
crates/ruff_python_parser/src/lexer/indentation.rs:40
Method
root
Create a [`PackageRoot::Root`] variant.
crates/ruff_linter/src/package.rs:24
Function
root_directory_for_search_path_is_okay
()
crates/ty_module_resolver/src/list.rs:1638
Function
root_gitignore_file_requires_repository
()
crates/ruff_db/src/system/os/ignore.rs:102
Function
root_ignore_file_allowlist_overrides_root_gitignore_file
()
crates/ruff_db/src/system/os/ignore.rs:121
Function
root_ignore_file_cannot_prune_deeper_file_match
()
crates/ruff_db/src/system/os/ignore.rs:150
Function
root_ignore_file_prunes_top_level_directory
()
crates/ruff_db/src/system/os/ignore.rs:90
Function
rooted_exclusion
()
crates/ruff_workspace/src/resolver.rs:1024
Function
round_trip
Run round-trip source code generation on a given Python code.
crates/ruff_python_codegen/src/lib.rs:9
Function
round_trip
(contents: &str)
crates/ruff_python_codegen/src/generator.rs:1650
Method
row_is_all_th
(row)
crates/ruff_server/resources/test/fixtures/pandas_html.py:455
Function
rst_directive_case_insensitive
.. cOdE-bLoCk:: python cool_stuff( 1 ) Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:619
Function
rst_directive_doctest
.. code-block:: pycon >>> cool_stuff( 1 ) Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:661
Function
rst_directive_options
.. code-block:: python :linenos: :emphasize-lines: 2,3 :name: blah blah cool_stuff( 1 ) cool_stuff( 2 )
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:641
Function
rst_directive_simple
.. code-block:: python cool_stuff( 1 ) Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:608
Function
rst_directive_skipped_doctest
.. code-block:: python >>> cool_stuff( 1 ) Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:835
Function
rst_directive_skipped_not_indented
.. code-block:: python cool_stuff( 1 ) Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:811
Function
rst_directive_skipped_wrong_language
.. code-block:: rust cool_stuff( 1 ) Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:822
Function
rst_directive_sourcecode
.. sourcecode:: python cool_stuff( 1 ) Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:630
Function
rst_literal_actually_last
Do cool stuff:: cool_stuff( 1 )
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:399
Function
rst_literal_extra_blanks
Do cool stuff:: cool_stuff( 1 ) Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:423
Function
rst_literal_extra_blanks_at_end
Do cool stuff:: cool_stuff( 1 )
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:441
Function
rst_literal_extra_blanks_in_snippet
Do cool stuff:: cool_stuff( 1 ) cool_stuff( 2 ) Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:456
Function
rst_literal_first_line_indent_uses_tabs_4spaces
Do cool stuff:: cool_stuff( 1 ) Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:493
Function
rst_literal_first_line_indent_uses_tabs_4spaces_multiple
Do cool stuff:: cool_stuff( 1 ) cool_stuff( 2 ) Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:505
Function
rst_literal_first_line_indent_uses_tabs_8spaces
Do cool stuff:: cool_stuff( 1 ) Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:524
Function
rst_literal_first_line_indent_uses_tabs_8spaces_multiple
Do cool stuff:: cool_stuff( 1 ) cool_stuff( 2 ) Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:536
Function
rst_literal_first_line_tab_second_line_spaces
Do cool stuff:: cool_stuff( 1 ) cool_stuff( 2 ) Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:551
Function
rst_literal_lone_colon
Do cool stuff. :: cool_stuff( 1 ) Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:595
Function
rst_literal_odd_indentation
Do cool stuff:: cool_stuff( 1 ) cool_stuff( 2 ) Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:581
Function
rst_literal_second_to_last
Do cool stuff:: cool_stuff( 1 )
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:388
Function
rst_literal_simple
Do cool stuff:: cool_stuff( 1 ) Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:363
Function
rst_literal_simple_continued
Do cool stuff:: def cool_stuff( x ): print( f"hi {x}" ); Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:374
Function
rst_literal_skipped_doctest
Do cool stuff:: >>> cool_stuff( 1 ) Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:787
Function
rst_literal_skipped_first_line_not_indented
Do cool stuff:: cool_stuff( 1 ) Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:675
Function
rst_literal_skipped_first_line_not_indented_tab
Do cool stuff:: cool_stuff( 1 ) Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:705
Function
rst_literal_skipped_first_line_not_indented_tab_multiple
Do cool stuff:: cool_stuff( 1 ) cool_stuff( 2 ) Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:717
Function
rst_literal_skipped_first_line_not_indented_then_indented
Do cool stuff:: cool_stuff( 1 ) cool_stuff( 2 ) Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:688
Function
rst_literal_skipped_markdown
Do cool stuff:: ```py cool_stuff( 1 ) ``` Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:798
Function
rst_literal_skipped_not_directive
.. code-block:: cool_stuff( 1 ) Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:753
Function
rst_literal_skipped_possible_false_negative
This is a test. .. This is a test:: cool_stuff( 1 ) Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:771
Function
rst_literal_skipped_subsequent_line_not_indented
Do cool stuff:: if True: cool_stuff( ''' hiya''' ) Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:734
Function
rst_literal_subsequent_line_not_indented
Do cool stuff:: if True: cool_stuff( ''' hiya''' ) Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:472
Function
rst_literal_with_blank_lines
Do cool stuff:: def cool_stuff( x ): print( f"hi {x}" ); def other_stuff( y ): print( y ) D
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:407
Function
ruf013_add_future_import
(rule_code: Rule, path: &Path)
crates/ruff_linter/src/rules/ruff/mod.rs:888
← previous
next →
27,901–28,000 of 31,766, ranked by callers