MCPcopy Create free account

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

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

Functionrestore_stack
()
crates/ruff_formatter/src/printer/stack.rs:116
Methodrestore_state_snapshot
Restore the state of the formatter to a previous snapshot
crates/ruff_formatter/src/formatter.rs:212
Functionrestoring_script_metadata_rewatches_search_path
()
crates/ty/tests/file_watching.rs:1726
Functionrestrict_to_this_line
(arg1, arg2, arg3)
crates/ruff_python_formatter/resources/test/fixtures/black/cases/line_ranges_two_passes.py:9
Methodresult_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
Functionresumes_after_markdown_fence
()
crates/ty_ide/src/docstring/document/google.rs:1411
Functionresumes_after_rest_directive
()
crates/ty_ide/src/docstring/document/google.rs:1445
Functionresumes_after_rest_literal_block
()
crates/ty_ide/src/docstring/document/google.rs:1428
Functionresumes_after_unindented_markdown_fence_following_rest_literal_marker
()
crates/ty_ide/src/docstring/document/google.rs:1458
Functionretain_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
Functionretain_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
Functionretain_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
Functionretain_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
Functionretain_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
Functionreturn_annotation_is_class_scope_variable
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:4283
Functionreturn_annotation_is_function_body_variable
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:4298
Functionreturn_not_counted
()
crates/ruff_linter/src/rules/pylint/helpers.rs:597
Methodreturn_stmt
(self)
crates/ruff_python_ast/src/generated.rs:449
Functionreturn_true
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/comments_in_double_parens.py:32
Functionreturn_type
(arg: Optional = None)
crates/ruff_linter/resources/test/fixtures/ruff/RUF013_4.py:18
Methodreturn_type
( context: InlayHintImportContext<'_, 'db>, function: &ruff_python_ast::StmtFunctionDef,
crates/ty_ide/src/inlay_hints.rs:251
Functionreturn_type_hint_imports
()
crates/ty_ide/src/inlay_hints.rs:1256
Functionreturning_to_previous_metadata_resynchronizes_the_environment
()
crates/ty_project/src/uv/environments.rs:1321
Functionreturns_before_args
Summary. Returns: int Args: x: Description.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D420_google.py:30
Functionreturns_iterator
()
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP052.py:97
Functionreturns_list
()
crates/ruff_linter/resources/test/fixtures/airflow/AIR202.py:154
Methodreturns_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
Functionreturns_none
()
crates/ruff_linter/resources/test/fixtures/airflow/AIR202.py:164
Functionreturns_scalar
()
crates/ruff_linter/resources/test/fixtures/airflow/AIR202.py:149
Functionreturns_section_fragments_and_range
()
crates/ty_ide/src/docstring/document/google.rs:1525
Functionreturns_structured_section_kinds_in_source_order
()
crates/ty_ide/src/docstring/document/google.rs:1499
Functionreturns_then_unordered_then_args
Summary. Returns: int Notes: Some notes. Args: x: Description.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D420_google.py:146
Functionreturns_tuple
()
crates/ruff_linter/resources/test/fixtures/airflow/AIR202.py:159
Functionreturns_value
()
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP052.py:73
Functionrevealed_match
()
crates/mdtest/src/matcher.rs:632
Functionrevealed_match_with_only_undefined
()
crates/mdtest/src/matcher.rs:739
Functionrevealed_match_with_undefined
()
crates/mdtest/src/matcher.rs:722
Functionrevealed_mismatch_with_undefined
()
crates/mdtest/src/matcher.rs:753
Functionrevealed_unmatched
()
crates/mdtest/src/matcher.rs:715
Functionrevealed_wrong_message
()
crates/mdtest/src/matcher.rs:692
Functionrevealed_wrong_rule
()
crates/mdtest/src/matcher.rs:669
Methodreverse_bound
(bound: Option<i32>)
crates/ty_python_semantic/src/types/tuple.rs:1550
Methodreverse_index
(index: i32)
crates/ty_python_semantic/src/types/tuple.rs:1545
Methodrevision
(&self)
crates/ruff_db/src/vendored.rs:317
Functionrevision_from_file_time
()
crates/ruff_db/src/file_revision.rs:59
Methodrewind
(&mut self, checkpoint: InterpolatedStringsCheckpoint)
crates/ruff_python_parser/src/lexer/interpolated_string.rs:151
Methodrewind
(&mut self, checkpoint: IndentationsCheckpoint)
crates/ruff_python_parser/src/lexer/indentation.rs:134
Functionrewrite_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
Functionrewrites_alias_names_and_preserves_asnames_in_a_plain_import
()
crates/ty_ide/src/will_rename.rs:1407
Functionrewrites_imports_for_multiple_module_renames
()
crates/ty_ide/src/will_rename.rs:1683
Functionrewrites_module_fields_and_alias_names_in_an_import_from
()
crates/ty_ide/src/will_rename.rs:1435
Functionrewrites_module_references_in_string_annotations
()
crates/ty_ide/src/will_rename.rs:1644
Functionrewrites_references_only_when_import_definitions_agree
()
crates/ty_ide/src/will_rename.rs:1772
Functionright_assoc_pow_chain_grows_stack
()
crates/ruff_python_parser/src/parser/tests.rs:479
Methodroot
()
crates/ty_module_resolver/src/resolve/search.rs:1536
Methodroot
()
crates/ruff_python_parser/src/lexer/indentation.rs:40
Methodroot
Create a [`PackageRoot::Root`] variant.
crates/ruff_linter/src/package.rs:24
Functionroot_directory_for_search_path_is_okay
()
crates/ty_module_resolver/src/list.rs:1638
Functionroot_gitignore_file_requires_repository
()
crates/ruff_db/src/system/os/ignore.rs:102
Functionroot_ignore_file_allowlist_overrides_root_gitignore_file
()
crates/ruff_db/src/system/os/ignore.rs:121
Functionroot_ignore_file_cannot_prune_deeper_file_match
()
crates/ruff_db/src/system/os/ignore.rs:150
Functionroot_ignore_file_prunes_top_level_directory
()
crates/ruff_db/src/system/os/ignore.rs:90
Functionrooted_exclusion
()
crates/ruff_workspace/src/resolver.rs:1024
Functionround_trip
Run round-trip source code generation on a given Python code.
crates/ruff_python_codegen/src/lib.rs:9
Functionround_trip
(contents: &str)
crates/ruff_python_codegen/src/generator.rs:1650
Methodrow_is_all_th
(row)
crates/ruff_server/resources/test/fixtures/pandas_html.py:455
Functionrst_directive_case_insensitive
.. cOdE-bLoCk:: python cool_stuff( 1 ) Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:619
Functionrst_directive_doctest
.. code-block:: pycon >>> cool_stuff( 1 ) Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:661
Functionrst_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
Functionrst_directive_simple
.. code-block:: python cool_stuff( 1 ) Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:608
Functionrst_directive_skipped_doctest
.. code-block:: python >>> cool_stuff( 1 ) Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:835
Functionrst_directive_skipped_not_indented
.. code-block:: python cool_stuff( 1 ) Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:811
Functionrst_directive_skipped_wrong_language
.. code-block:: rust cool_stuff( 1 ) Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:822
Functionrst_directive_sourcecode
.. sourcecode:: python cool_stuff( 1 ) Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:630
Functionrst_literal_actually_last
Do cool stuff:: cool_stuff( 1 )
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:399
Functionrst_literal_extra_blanks
Do cool stuff:: cool_stuff( 1 ) Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:423
Functionrst_literal_extra_blanks_at_end
Do cool stuff:: cool_stuff( 1 )
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:441
Functionrst_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
Functionrst_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
Functionrst_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
Functionrst_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
Functionrst_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
Functionrst_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
Functionrst_literal_lone_colon
Do cool stuff. :: cool_stuff( 1 ) Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:595
Functionrst_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
Functionrst_literal_second_to_last
Do cool stuff:: cool_stuff( 1 )
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:388
Functionrst_literal_simple
Do cool stuff:: cool_stuff( 1 ) Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:363
Functionrst_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
Functionrst_literal_skipped_doctest
Do cool stuff:: >>> cool_stuff( 1 ) Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:787
Functionrst_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
Functionrst_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
Functionrst_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
Functionrst_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
Functionrst_literal_skipped_markdown
Do cool stuff:: ```py cool_stuff( 1 ) ``` Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:798
Functionrst_literal_skipped_not_directive
.. code-block:: cool_stuff( 1 ) Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:753
Functionrst_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
Functionrst_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
Functionrst_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
Functionrst_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
Functionruf013_add_future_import
(rule_code: Rule, path: &Path)
crates/ruff_linter/src/rules/ruff/mod.rs:888
← previousnext →27,901–28,000 of 31,766, ranked by callers