MCPcopy Create free account

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

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

Methodrange_deletion
Creates an edit that deletes the content in `range`.
crates/ruff_diagnostics/src/edit.rs:27
Functionrange_end_only
()
crates/ruff/tests/cli/format.rs:2331
Functionrange_format_custom_extension_mapped_to_markdown_is_unsupported
()
crates/ruff_server/tests/e2e/custom_extension.rs:49
Functionrange_formatting
()
crates/ruff/tests/cli/format.rs:2148
Functionrange_formatting_multiple_files
()
crates/ruff/tests/cli/format.rs:2196
Functionrange_formatting_notebook
()
crates/ruff/tests/cli/format.rs:2431
Functionrange_formatting_out_of_bounds
()
crates/ruff/tests/cli/format.rs:2233
Functionrange_formatting_quick_test
()
crates/ruff_python_formatter/src/lib.rs:298
Functionrange_formatting_unicode
()
crates/ruff/tests/cli/format.rs:2175
Functionrange_line_numbers_only
()
crates/ruff/tests/cli/format.rs:2281
Functionrange_missing_line
()
crates/ruff/tests/cli/format.rs:2357
Methodrange_replacement
Creates an edit that replaces the content in `range` with `content`.
crates/ruff_diagnostics/src/edit.rs:41
Functionrange_serialization
()
crates/ruff_text_size/tests/serde.rs:24
Functionrange_start_larger_than_end
()
crates/ruff/tests/cli/format.rs:2257
Functionrange_start_only
()
crates/ruff/tests/cli/format.rs:2308
Functionrange_suppression_extra_disable
()
crates/ruff_linter/src/suppression.rs:1919
Functionrange_suppression_two_codes
()
crates/ruff_linter/src/suppression.rs:1748
Functionrange_suppression_unmatched
()
crates/ruff_linter/src/suppression.rs:1812
Functionrange_suppression_unordered
()
crates/ruff_linter/src/suppression.rs:1858
Functionrange_suppressions
()
crates/ruff_linter/src/rules/ruff/mod.rs:496
Methodrange_to_sarif_region
(source_code: &SourceCode, range: TextRange)
crates/ruff_db/src/diagnostic/render/sarif.rs:327
Functionraw_contents
Strip the leading and trailing quotes from a string. Assumes that the string is a valid string literal, but does not verify that the string is a "simp
crates/ruff_python_ast/src/str.rs:268
Functionraw_docstring
r"""Black's `Preview.accept_raw_docstrings` a b
crates/ruff_python_formatter/resources/test/fixtures/ruff/preview.py:12
Functionraw_string
()
crates/ruff_linter/resources/test/fixtures/ruff/RUF027_0.py:19
Functionre_compile_ok
(value=re.compile("foo"))
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B006_B008.py:36
Functionre_entrance
()
crates/ty_project/src/files.rs:317
Methodre_lex_logical_token
Calls the underlying [`re_lex_logical_token`] method on the lexer with the new lexer position and updates the token vector accordingly. [`re_lex_logi
crates/ruff_python_parser/src/token_source.rs:68
Methodre_lex_raw_string_in_format_spec
(&mut self)
crates/ruff_python_parser/src/token_source.rs:133
Methodre_lex_string_token_in_interpolation_element
( &mut self, kind: InterpolatedStringKind, )
crates/ruff_python_parser/src/token_source.rs:125
Functionre_runs_query_when_file_revision_changes
()
crates/ruff_db/src/source.rs:244
Functionreachability_trivial
()
crates/ty_python_core/src/lib.rs:2057
Functionreaching_definitions_distinguish_eager_and_deferred_uses
()
crates/ty_python_semantic/src/semantic_model.rs:1304
Functionreaching_definitions_distinguish_reads_from_deletion_targets
()
crates/ty_python_semantic/src/semantic_model.rs:1286
Functionreaching_definitions_expand_loop_headers
()
crates/ty_python_semantic/src/semantic_model.rs:1628
Functionreaching_definitions_follow_statement_order
()
crates/ty_python_semantic/src/semantic_model.rs:1258
Functionreaching_definitions_follow_type_dependent_deferredness
()
crates/ty_python_semantic/src/semantic_model.rs:1364
Functionreaching_definitions_preserve_deferred_uses_in_function_decorators
()
crates/ty_python_semantic/src/semantic_model.rs:1342
Functionreaching_definitions_skip_unsupported_scopes_in_string_annotations
()
crates/ty_python_semantic/src/semantic_model.rs:1415
Methodread_bits
(words: &[u64], bit: usize, bits: u8)
crates/ruff_db/src/parsed.rs:524
Functionread_comment_id
(path: str)
scripts/publish_pr_report.py:107
Functionread_directory
()
crates/ruff_db/src/system/memory_fs.rs:1073
Functionread_directory
()
crates/ruff_db/src/system/os.rs:543
Methodread_directory
( &'a self, path: &SystemPath, )
crates/ruff_db/src/system/test.rs:175
Methodread_directory
( &'a self, path: &SystemPath, )
crates/ty_wasm/src/lib.rs:1690
Functionread_directory_asyncio
()
crates/ruff_db/src/vendored.rs:662
Functionread_directory_nonexistent
()
crates/ruff_db/src/system/memory_fs.rs:1089
Functionread_directory_nonexistent
()
crates/ruff_db/src/system/os.rs:571
Functionread_directory_on_file
()
crates/ruff_db/src/system/memory_fs.rs:1098
Functionread_directory_on_file
()
crates/ruff_db/src/system/os.rs:580
Functionread_directory_stdlib
()
crates/ruff_db/src/vendored.rs:640
Functionread_fails_if_path_doesnt_exist
()
crates/ruff_db/src/system/memory_fs.rs:938
Functionread_fails_if_path_is_a_directory
()
crates/ruff_db/src/system/memory_fs.rs:925
Functionread_fails_if_virtual_path_doesnt_exit
()
crates/ruff_db/src/system/memory_fs.rs:962
Functionread_html
r""" Read HTML tables into a ``list`` of ``DataFrame`` objects. Parameters ---------- io : str, path object, or file-like object
crates/ruff_server/resources/test/fixtures/pandas_html.py:1024
Functionread_html_files
(value: str)
scripts/publish_pr_report.py:37
Functionread_item
(item_id)
crates/ruff_linter/resources/test/fixtures/ruff/RUF027_1.py:69
Functionread_items
(*, item_id: int = Path(title="The ID of the item to get"), q: str)
crates/ruff_linter/resources/test/fixtures/fastapi/FAST002_0.py:61
Functionread_jupyter_cell
Read a Jupyter cell from the `resources/test/fixtures/jupyter/cell` directory.
crates/ruff_notebook/src/notebook.rs:611
Functionread_line
(fd: int = 0)
crates/ruff_linter/resources/test/fixtures/pycodestyle/E30_isort.py:54
Functionread_query_nfkc
(query: str)
crates/ruff_linter/resources/test/fixtures/fastapi/FAST003.py:263
Functionread_thing
(query: str)
crates/ruff_linter/resources/test/fixtures/fastapi/FAST003.py:10
Functionread_thing_callable_dep
(query: Annotated[str, Depends(CallableQuery)])
crates/ruff_linter/resources/test/fixtures/fastapi/FAST003.py:315
Functionread_thing_callable_dep_instance
(query: Annotated[str, Depends(CallableQuery())])
crates/ruff_linter/resources/test/fixtures/fastapi/FAST003.py:321
Functionread_thing_callable_dep_instance_default
(query: str = Depends(CallableQuery()))
crates/ruff_linter/resources/test/fixtures/fastapi/FAST003.py:368
Functionread_thing_callable_dep_missing
(query: Annotated[str, Depends(CallableQueryOther)])
crates/ruff_linter/resources/test/fixtures/fastapi/FAST003.py:346
Functionread_thing_empty_class_dep
(query: Annotated[str, Depends(EmptyClass)])
crates/ruff_linter/resources/test/fixtures/fastapi/FAST003.py:362
Functionread_thing_init_and_call_dep
(query: Annotated[str, Depends(InitAndCallQuery)])
crates/ruff_linter/resources/test/fixtures/fastapi/FAST003.py:335
Functionread_thing_init_and_call_instance
(query: Annotated[str, Depends(InitAndCallQuery())])
crates/ruff_linter/resources/test/fixtures/fastapi/FAST003.py:352
Functionread_thing_init_and_call_instance_default
(query: str = Depends(InitAndCallQuery()))
crates/ruff_linter/resources/test/fixtures/fastapi/FAST003.py:371
Functionread_thing_kwarg
(**query: str)
crates/ruff_linter/resources/test/fixtures/fastapi/FAST003.py:282
Functionread_thing_posonly
(query: str, /)
crates/ruff_linter/resources/test/fixtures/fastapi/FAST003.py:289
Functionread_thing_posonly_default
(query: str = "", /)
crates/ruff_linter/resources/test/fixtures/fastapi/FAST003.py:295
Functionread_thing_posonly_default_trailing
(query: str = "", /,)
crates/ruff_linter/resources/test/fixtures/fastapi/FAST003.py:298
Functionread_thing_posonly_trailing
(query: str, /,)
crates/ruff_linter/resources/test/fixtures/fastapi/FAST003.py:292
Functionread_thing_posonly_with_regular
(query: str = "", /, x=None)
crates/ruff_linter/resources/test/fixtures/fastapi/FAST003.py:301
Functionread_thing_vararg
(*query: str)
crates/ruff_linter/resources/test/fixtures/fastapi/FAST003.py:279
Functionread_thing_vararg_kwarg
(*args, **kwargs)
crates/ruff_linter/resources/test/fixtures/fastapi/FAST003.py:285
Methodread_to_notebook
(&self, path: &SystemPath)
crates/ty_test/src/db.rs:547
Methodread_to_notebook
(&self, path: &SystemPath)
crates/ty_server/src/system.rs:217
Methodread_to_notebook
(&self, path: &SystemPath)
crates/ruff_db/src/system/test.rs:128
Methodread_to_notebook
(&self, path: &SystemPath)
crates/ruff_db/src/system/os.rs:99
Methodread_to_notebook
( &self, path: &SystemPath, )
crates/ty_wasm/src/lib.rs:1652
Methodread_to_string
(&self, path: &SystemPath)
crates/ruff_db/src/system/os.rs:95
Methodread_virtual_path_to_notebook
( &self, path: &ruff_db::system::SystemVirtualPath, )
crates/ty_test/src/db.rs:559
Methodread_virtual_path_to_notebook
( &self, path: &SystemVirtualPath, )
crates/ty_server/src/system.rs:239
Methodread_virtual_path_to_notebook
( &self, path: &SystemVirtualPath, )
crates/ruff_db/src/system/test.rs:136
Methodread_virtual_path_to_notebook
( &self, _path: &SystemVirtualPath, )
crates/ty_wasm/src/lib.rs:1667
Methodread_virtual_path_to_string
( &self, path: &ruff_db::system::SystemVirtualPath, )
crates/ty_test/src/db.rs:552
Methodread_virtual_path_to_string
(&self, path: &SystemVirtualPath)
crates/ty_server/src/system.rs:227
Methodread_virtual_path_to_string
(&self, _path: &SystemVirtualPath)
crates/ruff_db/src/system/os.rs:103
Methodread_virtual_path_to_string
( &self, _path: &SystemVirtualPath, )
crates/ty_wasm/src/lib.rs:1660
Functionread_whole_file_newline_python_version_diff
()
crates/ruff_linter/src/rules/refurb/mod.rs:71
Functionreaddir_snapshot
(fs: &VendoredFileSystem, path: &str)
crates/ruff_db/src/vendored.rs:630
Methodreal
(real: HashableReal)
crates/ruff_python_ast/src/comparable.rs:2131
Methodreal_stdlib
Create a new search path pointing to the real stdlib of a python install
crates/ty_module_resolver/src/path.rs:662
Functionreally_long
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/type_params.py:7
Methodreason
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, flags: InferenceFlags,
crates/ty_python_semantic/src/types.rs:12268
Methodreason
Return an [`MetaclassErrorKind`] variant describing why we could not resolve the metaclass for this class.
crates/ty_python_semantic/src/types/class.rs:3581
Functionreassignments_prevent_dependent_reference_rewrites
()
crates/ty_ide/src/will_rename.rs:2060
Methodrebuild_node
( storage: &mut ConstraintSetStorage<'_>, old_node: NodeId, mapped_constra
crates/ty_python_semantic/src/types/constraints.rs:877
← previousnext →27,201–27,300 of 31,766, ranked by callers