Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/astral-sh/ruff
/ functions
Functions
31,562 in github.com/astral-sh/ruff
⨍
Functions
31,562
◇
Types & classes
7,116
↳
Endpoints
82
↓ 2 callers
Method
with_transposed_type_var_with_recursion
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, context: &TypeRecursio
crates/ty_python_semantic/src/types/subclass_of.rs:622
↓ 2 callers
Method
with_trigger_parameter_hints_command
Advertise support for the `ty.triggerParameterHints` completion command.
crates/ty_server/tests/e2e/main.rs:1581
↓ 2 callers
Method
with_type
(self, db: &'db dyn Db, ty: Type<'db>)
crates/ty_python_semantic/src/types.rs:12852
↓ 2 callers
Method
with_type_expression_context
(&mut self, infer: impl FnOnce(&mut Self) -> R)
crates/ty_python_semantic/src/types/infer/builder/type_expression.rs:210
↓ 2 callers
Method
with_typeshed
(self, typeshed_option: U)
crates/ty_module_resolver/src/testing.rs:120
↓ 2 callers
Method
with_unknown
(mut self, unknown: HashMap<String, Value>)
crates/ty_server/src/session/options.rs:189
↓ 2 callers
Method
with_unknown_member_fallback
( self, db: &'db dyn Db, result: PlaceAndQualifiers<'db>, )
crates/ty_python_semantic/src/types/class/enum_literal.rs:219
↓ 2 callers
Method
with_user_config_directory
Overrides the user configuration directory for the current scope (for as long as the returned override is not dropped).
crates/ruff_db/src/system/os.rs:483
↓ 2 callers
Method
with_variable_types_inlay_hints
(mut self, variable_types: bool)
crates/ty_server/src/session/options.rs:156
↓ 2 callers
Method
with_vendored
(&mut self, vendored_file_system: VendoredFileSystem)
crates/ruff_db/src/lib.rs:185
↓ 2 callers
Method
without_bindings
Returns the mapping for nested types when a callable has selected outer parameter lists.
crates/ty_python_semantic/src/types.rs:11716
↓ 2 callers
Method
without_unchanged_lines
(self)
python/ruff-ecosystem/ruff_ecosystem/types.py:67
↓ 2 callers
Function
workspace_symbols
Get all workspace symbols matching the query string. Returns symbols from all files in the workspace, filtered by the query.
crates/ty_ide/src/workspace_symbols.rs:8
↓ 2 callers
Method
wrap_socket
(self)
crates/ruff_linter/resources/test/fixtures/flake8_bandit/S504.py:10
↓ 2 callers
Method
writable_system
(&self)
crates/ruff_db/src/system/test.rs:366
↓ 2 callers
Method
write
(&self, writer: &mut impl std::fmt::Write)
crates/ruff_linter/src/noqa.rs:1091
↓ 2 callers
Method
write_changed
Write a list of the files that would be changed and any errors to the given writer.
crates/ruff/src/commands/format.rs:573
↓ 2 callers
Function
write_conda_interpreters
(case: &CliTest)
crates/ty/tests/cli/python_environment.rs:1328
↓ 2 callers
Method
write_config
Write the tool's configuration file.
scripts/ty_benchmark/src/benchmark/tool.py:44
↓ 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:392
↓ 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:139
↓ 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:177
↓ 1 callers
Method
_mdtest_for_path
(path: Path)
crates/ty_python_semantic/mdtest.py:203
↓ 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:233
↓ 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:76
↓ 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:112
← previous
next →
7,401–7,500 of 31,562, ranked by callers