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
↓ 2 callers
Function
write_dependency_wheel
( case: &CliTest, distribution: &str, module: &str, dependencies: &[&str], )
crates/ty/tests/cli/uv_workspace.rs:105
↓ 2 callers
Method
write_diagnostics_for_file
( &mut self, db: &ProjectDatabase, file: File, diagnostics: &[Diagnostic],
crates/ty_server/src/server/api/requests/workspace_diagnostic.rs:394
↓ 2 callers
Method
write_files
( &self, files: impl IntoIterator<Item = (&'a str, &'a str)>, )
crates/ruff/tests/cli/main.rs:168
↓ 2 callers
Function
write_in_parentheses_only_group_end_tag
(f: &mut PyFormatter)
crates/ruff_python_formatter/src/expression/parentheses.rs:338
↓ 2 callers
Function
write_in_parentheses_only_group_start_tag
(f: &mut PyFormatter)
crates/ruff_python_formatter/src/expression/parentheses.rs:321
↓ 2 callers
Method
write_str
(&mut self, s: &str)
crates/ty_server/src/server/api/requests/execute_command.rs:104
↓ 2 callers
Method
write_summary_text
(&self, writer: &mut dyn Write, diagnostics: &Diagnostics)
crates/ruff/src/printer.rs:90
↓ 2 callers
Function
write_suppressed_statements
Formats the statements from `first_suppressed` until the suppression ends (by a `fmt: on` comment) as they appear in the source code.
crates/ruff_python_formatter/src/verbatim.rs:262
↓ 2 callers
Function
write_suppressed_statements_starting_with_trailing_comment
( last_formatted: SuiteChildStatement<'a>, statements: &mut std::slice::Iter<'a, Stmt>, f: &mut Py
crates/ruff_python_formatter/src/verbatim.rs:116
↓ 2 callers
Method
write_u16
(&mut self, i: u16)
crates/ruff_cache/src/cache_key.rs:425
↓ 2 callers
Method
write_u64
(&mut self, i: u64)
crates/ruff_cache/src/cache_key.rs:435
↓ 2 callers
Method
write_usize
(&mut self, i: usize)
crates/ruff_cache/src/cache_key.rs:445
↓ 1 callers
Function
CONSTANT
()
crates/ruff_linter/resources/test/fixtures/pylint/global_statement.py:52
↓ 1 callers
Function
FUNC
()
crates/ruff_linter/resources/test/fixtures/pylint/global_statement.py:7
↓ 1 callers
Function
_
()
crates/ruff_linter/resources/test/fixtures/ruff/RUF069.py:51
↓ 1 callers
Function
_
(message)
crates/ruff_linter/resources/test/fixtures/flake8_gettext/INT003.py:25
↓ 1 callers
Function
_
(message)
crates/ruff_linter/resources/test/fixtures/flake8_gettext/INT002.py:25
↓ 1 callers
Function
_
(message)
crates/ruff_linter/resources/test/fixtures/flake8_gettext/INT001.py:29
↓ 1 callers
Function
_
()
crates/ruff_linter/resources/test/fixtures/pyflakes/F704.py:13
↓ 1 callers
Method
_
(self)
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP049_1.py:76
↓ 1 callers
Method
__add__
(self, other)
crates/ruff_linter/resources/test/fixtures/pylint/unnecessary_dunder_call.py:55
↓ 1 callers
Method
__call__
(self=None, x=None, y=None, z=None)
crates/ruff_linter/resources/test/fixtures/pydocstyle/D.py:68
↓ 1 callers
Method
__eq__
(self, other)
crates/ruff_linter/resources/test/fixtures/pylint/eq_without_hash.py:7
↓ 1 callers
Method
__ge__
(self, b)
crates/ruff_linter/resources/test/fixtures/pylint/if_stmt_min_max.py:106
↓ 1 callers
Method
__get__
(self, obj, type)
crates/ruff_linter/resources/test/fixtures/ruff/RUF009.py:59
↓ 1 callers
Method
__getattribute__
(self, item)
crates/ruff_linter/resources/test/fixtures/pylint/unnecessary_dunder_call.py:112
↓ 1 callers
Method
__gt__
(self, b)
crates/ruff_linter/resources/test/fixtures/pylint/if_stmt_min_max.py:103
↓ 1 callers
Method
__init__
(self, project: Project, tool: Tool, venv: Venv)
scripts/ty_benchmark/src/benchmark/test_lsp_diagnostics.py:174
↓ 1 callers
Method
__init__
( self, io: FilePath | ReadBuffer[str] | ReadBuffer[bytes], match: str | Pattern,
crates/ruff_server/resources/test/fixtures/pandas_html.py:224
↓ 1 callers
Method
__init__
(self, app: AppT)
crates/ty_python_semantic/resources/corpus/recursive_bound_method_source_order.py:19
↓ 1 callers
Method
__init__
(self, message, **kwargs)
crates/ruff_linter/resources/test/fixtures/airflow/AIR301_decorator.py:16
↓ 1 callers
Method
__init__
(self, v)
crates/ruff_linter/resources/test/fixtures/pylint/unnecessary_dunder_call.py:52
↓ 1 callers
Method
__le__
(self, b)
crates/ruff_linter/resources/test/fixtures/pylint/if_stmt_min_max.py:112
↓ 1 callers
Method
__len__
(self)
crates/ruff_linter/resources/test/fixtures/pylint/invalid_return_type_length.py:15
↓ 1 callers
Method
__length_hint__
(self)
crates/ruff_linter/resources/test/fixtures/flake8_annotations/simple_magic_methods.py:11
↓ 1 callers
Method
__lt__
(self, b)
crates/ruff_linter/resources/test/fixtures/pylint/if_stmt_min_max.py:109
↓ 1 callers
Method
__mul__
(self, other: bool)
crates/ruff_linter/resources/test/fixtures/flake8_boolean_trap/FBT.py:169
↓ 1 callers
Method
__ne__
(self, other: typing.Any)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI034.py:33
↓ 1 callers
Method
__neg__
(self: S)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI019_0.py:65
↓ 1 callers
Method
__new__
(cls, *args: Any, **kwargs: Any)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI034.py:21
↓ 1 callers
Method
__really_private_func
(self, arg)
crates/ruff_linter/resources/test/fixtures/flake8_self/SLF001.py:53
↓ 1 callers
Method
__repr__
(self)
crates/ruff_linter/resources/test/fixtures/pylint/no_self_use.py:32
↓ 1 callers
Method
__set__
(self, obj, value)
crates/ruff_linter/resources/test/fixtures/ruff/RUF009.py:65
↓ 1 callers
Method
__str__
(self)
crates/ruff_linter/resources/test/fixtures/pylint/invalid_return_type_str.py:10
↓ 1 callers
Method
__str__
(self)
crates/ruff_linter/resources/test/fixtures/flake8_self/SLF001.py:30
↓ 1 callers
Method
__sub__
(self: S, other: S)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI019_0.py:71
↓ 1 callers
Method
_attr_getter
Return the attribute value of an individual DOM node. Parameters ---------- obj : node-like A DOM node.
crates/ruff_server/resources/test/fixtures/pandas_html.py:253
↓ 1 callers
Method
_build_doc
Return a tree-like object that can be used to iterate over the DOM. Returns ------- node-like The DOM fr
crates/ruff_server/resources/test/fixtures/pandas_html.py:415
↓ 1 callers
Function
_build_xpath_expr
Build an xpath expression to simulate bs4's ability to pass in kwargs to search for attributes when using the lxml parser. Parameters
crates/ruff_server/resources/test/fixtures/pandas_html.py:676
↓ 1 callers
Function
_ctype_from_dtype_scalar
(dtype)
crates/ruff_benchmark/resources/numpy/ctypeslib.py:379
↓ 1 callers
Function
_ctype_from_dtype_structured
(dtype)
crates/ruff_benchmark/resources/numpy/ctypeslib.py:404
↓ 1 callers
Function
_ctype_from_dtype_subarray
(dtype)
crates/ruff_benchmark/resources/numpy/ctypeslib.py:398
↓ 1 callers
Function
_data_to_frame
(**kwargs)
crates/ruff_server/resources/test/fixtures/pandas_html.py:852
↓ 1 callers
Method
_equals_tag
Return whether an individual DOM node matches a tag Parameters ---------- obj : node-like A DOM node.
crates/ruff_server/resources/test/fixtures/pandas_html.py:396
↓ 1 callers
Method
_expand_colspan_rowspan
Given a list of <tr>s, return a list of text rows. Parameters ---------- rows : list of node-like List o
crates/ruff_server/resources/test/fixtures/pandas_html.py:471
↓ 1 callers
Function
_expand_elements
(body)
crates/ruff_server/resources/test/fixtures/pandas_html.py:841
↓ 1 callers
Method
_get_executable_path_from_json
(self, json_output: str)
crates/ty_python_semantic/mdtest.py:121
↓ 1 callers
Function
_get_scalar_type_map
Return a dictionary mapping native endian scalar dtype to ctypes types
crates/ruff_benchmark/resources/numpy/ctypeslib.py:362
↓ 1 callers
Function
_get_skiprows
Get an iterator given an integer, slice or container. Parameters ---------- skiprows : int, slice, container The iterator to
crates/ruff_server/resources/test/fixtures/pandas_html.py:97
↓ 1 callers
Method
_href_getter
Return a href if the DOM node contains a child <a> or None. Parameters ---------- obj : node-like A DOM
crates/ruff_server/resources/test/fixtures/pandas_html.py:273
↓ 1 callers
Function
_join
(path: str | None, *parts: str)
python/ruff/_find_ruff.py:89
↓ 1 callers
Function
_matching_parents
Return the parent directory of `path` after trimming a `match` from the end. The match is expected to contain `/` as a path separator, while
python/ruff/_find_ruff.py:63
↓ 1 callers
Method
_md_file_for_snapshot
Given a deleted .snap.new path, find the source .md file it belongs to. Snapshot filenames follow the pattern: <md_filename>_-_<S
crates/ty_python_semantic/mdtest.py:159
↓ 1 callers
Method
_mdtest_for_path
(path: Path)
crates/ty_python_semantic/mdtest.py:185
↓ 1 callers
Method
_missing_
(cls, value)
crates/ruff_linter/resources/test/fixtures/pylint/bad_dunder_method_name.py:79
↓ 1 callers
Function
_module_path
()
python/ruff/_find_ruff.py:58
↓ 1 callers
Function
_num_fromflags
(flaglist)
crates/ruff_benchmark/resources/numpy/ctypeslib.py:166
↓ 1 callers
Function
_parse
( flavor, io, match, attrs, encoding, displayed_only, extract_links, storage_o
crates/ruff_server/resources/test/fixtures/pandas_html.py:952
↓ 1 callers
Method
_parse_tables
Return all tables from the parsed DOM. Parameters ---------- document : the DOM from which to parse the table elemen
crates/ruff_server/resources/test/fixtures/pandas_html.py:370
↓ 1 callers
Method
_parse_tbody_tr
Return the list of tbody row elements from the parsed table element. HTML5 table bodies consist of either 0 or more <tbody> elements
crates/ruff_server/resources/test/fixtures/pandas_html.py:336
↓ 1 callers
Method
_parse_tfoot_tr
Return the list of tfoot row elements from the parsed table element. Parameters ---------- table : a table element t
crates/ruff_server/resources/test/fixtures/pandas_html.py:355
↓ 1 callers
Method
_parse_thead_tbody_tfoot
Given a table, return parsed header, body, and foot. Parameters ---------- table_html : node-like Returns
crates/ruff_server/resources/test/fixtures/pandas_html.py:426
↓ 1 callers
Method
_parse_thead_tr
Return the list of thead row elements from the parsed table element. Parameters ---------- table : a table element t
crates/ruff_server/resources/test/fixtures/pandas_html.py:321
↓ 1 callers
Function
_parser_dispatch
Choose the parser based on the input flavor. Parameters ---------- flavor : {{"lxml", "html5lib", "bs4"}} or None The type o
crates/ruff_server/resources/test/fixtures/pandas_html.py:884
↓ 1 callers
Method
_pre_core_schema
(cls)
crates/ruff_benchmark/resources/pydantic/types.py:536
↓ 1 callers
Function
_print_as_set
(s)
crates/ruff_server/resources/test/fixtures/pandas_html.py:919
↓ 1 callers
Method
_print_trimmed_cargo_test_output
(self, output: str, test_name: str)
crates/ty_python_semantic/mdtest.py:215
↓ 1 callers
Method
_private_func
(self)
crates/ruff_linter/resources/test/fixtures/flake8_self/SLF001.py:50
↓ 1 callers
Function
_project_not_found
(name: str, projects: list[Project])
scripts/setup_primer_project.py:58
↓ 1 callers
Function
_read
Try to read from a url, file or string. Parameters ---------- obj : str, unicode, path object, or file-like object Returns
crates/ruff_server/resources/test/fixtures/pandas_html.py:126
↓ 1 callers
Method
_recompile_tests
( self, status_message: str, *, message_on_success: bool = True )
crates/ty_python_semantic/mdtest.py:94
↓ 1 callers
Function
_register_notebook_structure_hooks
Register structure hooks for notebook document types to work around cattrs deserialization issues.
scripts/ty_benchmark/src/benchmark/lsp_client.py:15
↓ 1 callers
Function
_remove_whitespace
Replace extra whitespace inside of a string with a single space. Parameters ---------- s : str or unicode The string from wh
crates/ruff_server/resources/test/fixtures/pandas_html.py:78
↓ 1 callers
Function
_run
()
python/ruff/__main__.py:9
↓ 1 callers
Method
_run_cargo_test
(self, *, message_format: Literal["human", "json"])
crates/ty_python_semantic/mdtest.py:70
↓ 1 callers
Method
_run_mdtests_for_file
(self, test_function: str, markdown_file: Path)
crates/ty_python_semantic/mdtest.py:191
↓ 1 callers
Function
_rustfmt
(path: str | Path)
scripts/add_rule.py:192
↓ 1 callers
Method
_setup_build_doc
(self)
crates/ruff_server/resources/test/fixtures/pandas_html.py:651
↓ 1 callers
Method
_text_getter
Return the text of an individual DOM node. Parameters ---------- obj : node-like A DOM node. Re
crates/ruff_server/resources/test/fixtures/pandas_html.py:289
↓ 1 callers
Function
_user_scheme
()
python/ruff/_find_ruff.py:95
↓ 1 callers
Function
_valid_fun
()
crates/ruff_linter/resources/test/fixtures/ruff/RUF052_0.py:18
↓ 1 callers
Function
_validate_flavor
(flavor)
crates/ruff_server/resources/test/fixtures/pandas_html.py:924
↓ 1 callers
Function
a
()
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/return_type_parameters.py:143
↓ 1 callers
Function
a
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/pep_572_remove_parens.py:43
↓ 1 callers
Function
a
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/remove_parens_from_lhs.py:4
↓ 1 callers
Function
a
()
crates/ruff_linter/resources/test/fixtures/refurb/FURB187.py:4
↓ 1 callers
Function
a
()
crates/ruff_linter/resources/test/fixtures/mccabe/C901.py:63
↓ 1 callers
Function
a
()
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP036_5.py:5
↓ 1 callers
Function
absolute_desperate_search_paths
( db: &dyn Db, importing_file: ResolverFile<'_>, )
crates/ty_module_resolver/src/resolve.rs:626
↓ 1 callers
Function
abstract_base_class
B024 B027
crates/ruff_linter/src/rules/flake8_bugbear/rules/abstract_base_class.rs:147
← previous
next →
7,501–7,600 of 31,766, ranked by callers