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
Function
disable_multiple_codes
()
crates/ruff_linter/src/suppression.rs:2790
Function
disable_single_code
()
crates/ruff_linter/src/suppression.rs:2752
Function
disable_single_code_with_reason
()
crates/ruff_linter/src/suppression.rs:2771
Method
disabled
()
crates/ty/src/printer.rs:131
Function
disabled_baseline_does_not_run_baseline_query
()
crates/ty_project/src/baseline.rs:440
Function
disabled_integration_does_not_initialize_scripts
()
crates/ty/tests/cli/scripts.rs:1579
Function
disabled_language_services_suppress_file_rename_edits
()
crates/ty_server/tests/e2e/will_rename_files.rs:151
Function
disallow_merged_snippets_in_presence_of_explicit_paths
()
crates/mdtest/src/parser.rs:1515
Function
disallow_pyi_snippets_in_presence_of_merged_py_snippets
()
crates/mdtest/src/parser.rs:1563
Method
disappearing_comment
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/preview_long_strings__regression.py:59
Method
discover
Discovers the closest project at `path` and returns its metadata. The algorithm traverses upwards in the `path`'s ancestor chain and uses the followi
crates/ty_project/src/metadata.rs:187
Method
discover
Obtains uv workspace metadata for `path`. Failures are retained as diagnostics for the project to report.
crates/ty_project/src/uv/environments.rs:537
Method
discover
Discovers the Python environment in order of priority: 1. An activated virtual environment. 2. An active child Conda or Pixi environment containing P
crates/ty_site_packages/src/lib.rs:310
Method
discover_in
( project_root: &SystemPath, system: &dyn System, )
crates/ty_project/src/metadata.rs:268
Function
discover_pyproject_with_conflicting_rule_alias_levels
()
crates/ty/tests/cli/rule_selection.rs:319
Function
discovered_tests
(test: &CursorTest)
crates/ty_ide/src/pytest_test_discovery.rs:329
Function
discovers_functions_and_test_classes
()
crates/ty_ide/src/pytest_test_discovery.rs:144
Function
disjoint_lower_bounds_skip_empty_sequent_maps
()
crates/ty_python_semantic/src/types/constraints/sequents.rs:2431
Function
disjunction_of_independent_conjunctions_stays_compact
()
crates/ty_python_semantic/src/types/constraints.rs:6826
Method
display
Display diagnostics in this output format.
crates/ty_project/src/metadata/options.rs:1537
Method
display
Returns a display implementation for these diagnostics.
crates/ruff_db/src/diagnostic/render.rs:67
Method
display
(&self, format: Format)
crates/ruff_dev/src/format_dev.rs:635
Method
display
( self, db: &'db dyn Db, env: &'env ProgramEnvironment<'db>, )
crates/ty_python_semantic/src/types/protocol_class.rs:1029
Method
display
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/typevar.rs:2038
Method
display
( self, db: &'db dyn Db, env: &'c ProgramEnvironment<'db>, )
crates/ty_python_semantic/src/types/constraints.rs:1002
Method
display
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, )
crates/ty_python_semantic/src/types/class_base.rs:519
Method
display
Keep this around for debugging purposes
crates/ty_python_semantic/src/types/constraints/sequents.rs:158
Method
display
( &'a self, db: &'db dyn Db, env: &'a ProgramEnvironment<'db>, holds: Option<b
crates/ty_python_semantic/src/types/constraints/variables.rs:178
Method
display
(&'a self, source: &'a str)
crates/ruff_linter/src/rules/pyupgrade/rules/pep695/mod.rs:98
Function
display_default_settings
()
crates/ruff/tests/cli/show_settings.rs:6
Function
display_elements
()
crates/ruff_formatter/src/format_element/document.rs:818
Function
display_elements_with_source_text_slice
()
crates/ruff_formatter/src/format_element/document.rs:871
Method
display_escapes
Finds the byte offsets of characters that need escaping beyond Python's ordinary repr. ASCII escapes separate runs of characters written without esca
crates/ruff_python_literal/src/escape.rs:243
Method
display_full
Returns a short report that provides fine-grained memory usage information per Salsa ingredient.
crates/ty_project/src/db.rs:457
Method
display_full
(&'a self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/display.rs:2217
Function
display_invalid_document
()
crates/ruff_formatter/src/format_element/document.rs:909
Method
display_only_edit
Create a new [`Fix`] that should only [display](Applicability::DisplayOnly) and not apply from an [`Edit`] element .
crates/ruff_diagnostics/src/fix.rs:99
Method
display_only_edits
Create a new [`Fix`] from multiple [`Edit`] elements, but which should only [display](Applicability::DisplayOnly) and not apply.
crates/ruff_diagnostics/src/fix.rs:109
Function
display_only_fix
()
crates/ty/tests/cli/fixes.rs:315
Function
display_parameters
(raw: &str)
crates/ty_ide/src/docstring/document/google.rs:1622
Method
display_parameters
( display: &DisplayParameters<'_, 'db>, f: &mut TypeWriter<'_, '_, 'db>, p
crates/ty_python_semantic/src/types/display.rs:2817
Function
display_representations_are_normalized
()
crates/ruff_python_literal/src/escape.rs:748
Method
display_search_paths
( self, db: &'db dyn Db, mode: ModuleResolveMode, )
crates/ty_module_resolver/src/environment.rs:19
Function
display_settings_from_nested_directory
()
crates/ruff/tests/cli/show_settings.rs:35
Method
display_short
Returns a short report that provides total memory usage information.
crates/ty_project/src/db.rs:410
Function
display_signature
( db: &'db TestDb, parameters: impl IntoIterator<Item = Parameter<'db>>, return_ty: Op
crates/ty_python_semantic/src/types/display.rs:4206
Function
display_signature_multiline
( db: &'db TestDb, parameters: impl IntoIterator<Item = Parameter<'db>>, return_ty: Op
crates/ty_python_semantic/src/types/display.rs:4219
Method
distance_from_end
(index: i32)
crates/ty_python_semantic/src/types/tuple.rs:2015
Function
distinguishes_unsuffixed_default_from_free_threaded_executable
()
crates/ty_site_packages/src/lib.rs:4094
Method
distributed_and
( builder: &ConstraintSetBuilder<'_>, nodes: impl Iterator<Item = (NodeId, Option<SourceOrderI
crates/ty_python_semantic/src/types/constraints.rs:2790
Method
distributed_or
( builder: &ConstraintSetBuilder<'_>, nodes: impl Iterator<Item = (NodeId, Option<SourceOrderI
crates/ty_python_semantic/src/types/constraints.rs:2783
Method
divergent
(id: salsa::Id)
crates/ty_python_semantic/src/types.rs:2450
Method
divergent_alias
Returns a divergent marker for a cycle in type alias inference.
crates/ty_python_semantic/src/types.rs:2455
Function
divergent_type
()
crates/ty_python_semantic/src/types/tests.rs:398
Method
do
(position)
crates/ruff_linter/resources/test/fixtures/pylint/singledispatch_method.py:25
Method
do
(position)
crates/ruff_linter/resources/test/fixtures/pylint/singledispatchmethod_function.py:22
Method
do_GET
(self)
crates/ruff_linter/resources/test/fixtures/pep8_naming/N802.py:81
Method
do_OPTIONS
(self)
crates/ruff_linter/resources/test/fixtures/pep8_naming/N802.py:92
Method
do_OPTIONS
(self)
crates/ruff_linter/resources/test/fixtures/pep8_naming/N802.py:103
Function
do_fuzz
(case: &[u8])
fuzz/fuzz_targets/ruff_parse_simple.rs:11
Function
do_fuzz
(case: &[u8])
fuzz/fuzz_targets/ruff_fix_validity.rs:12
Function
do_fuzz
(case: &[u8])
fuzz/fuzz_targets/ruff_formatter_idempotency.rs:11
Function
do_fuzz
(case: &[u8])
fuzz/fuzz_targets/ruff_parse_idempotency.rs:10
Function
do_fuzz
(case: &[u8])
fuzz/fuzz_targets/ruff_formatter_validity.rs:20
Function
do_fuzz
(case: &[u8])
fuzz/fuzz_targets/ty_check_invalid_syntax.rs:171
Function
do_not_touch_this_prefix
R"""There was a bug where docstring prefixes would be normalized even with -S.
crates/ruff_python_formatter/resources/test/fixtures/black/cases/raw_docstring_no_string_normalization.py:1
Function
do_not_touch_this_prefix2
FR'There was a bug where docstring prefixes would be normalized even with -S.
crates/ruff_python_formatter/resources/test/fixtures/black/cases/raw_docstring_no_string_normalization.py:5
Function
do_not_touch_this_prefix3
u'''There was a bug where docstring prefixes would be normalized even with -S.
crates/ruff_python_formatter/resources/test/fixtures/black/cases/raw_docstring_no_string_normalization.py:9
Function
do_stuff
( some_path_param: str = Path(), some_cookie_param: str = Cookie(), some_file_param: UploadFile =
crates/ruff_linter/resources/test/fixtures/fastapi/FAST002_0.py:31
Method
do_thing
(self, item)
crates/ruff_linter/resources/test/fixtures/pylint/unnecessary_dunder_call.py:115
Function
do_this_instead
(value=None)
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B006_B008.py:119
Function
do_this_instead_of_calls_in_defaults
(logger=LOGGER)
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B006_B008.py:142
Method
doc_string_without_linebreak_after_colon
This is somewhat strange a b We format this a is the docstring had started properly indented on the next line if the
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring.py:66
Function
docstring
()
crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/string.py:200
Method
docstring
Extract a docstring from this definition, if applicable. This method returns a docstring for function, class, and attribute definitions. The docstring
crates/ty_python_core/src/definition.rs:157
Method
docstring
Lorem ipsum dolor sit amet.
crates/ruff_linter/resources/test/fixtures/pylint/no_self_use.py:120
Function
docstring_almost_at_line_limit
long docstring.................................................................
crates/ruff_python_formatter/resources/test/fixtures/black/cases/docstring.py:196
Function
docstring_almost_at_line_limit
long docstring.................................................................
crates/ruff_python_formatter/resources/test/fixtures/black/cases/docstring_preview.py:1
Function
docstring_almost_at_line_limit2
long docstring................................................................. .................................................................
crates/ruff_python_formatter/resources/test/fixtures/black/cases/docstring.py:200
Function
docstring_almost_at_line_limit_with_prefix
f"""long docstring................................................................
crates/ruff_python_formatter/resources/test/fixtures/black/cases/docstring_preview.py:6
Function
docstring_at_line_limit
long docstring................................................................
crates/ruff_python_formatter/resources/test/fixtures/black/cases/docstring.py:207
Function
docstring_at_line_limit
long docstring................................................................
crates/ruff_python_formatter/resources/test/fixtures/black/cases/docstring_preview.py:25
Function
docstring_at_line_limit_with_prefix
f"""long docstring...............................................................
crates/ruff_python_formatter/resources/test/fixtures/black/cases/docstring_preview.py:29
Function
docstring_bad
Runs something
crates/ruff_linter/resources/test/fixtures/pydocstyle/D.py:469
Function
docstring_bad_ignore_all
Runs something
crates/ruff_linter/resources/test/fixtures/pydocstyle/D.py:474
Function
docstring_bad_ignore_one
Runs something
crates/ruff_linter/resources/test/fixtures/pydocstyle/D.py:479
Function
docstring_classification_concat
()
crates/ty_ide/src/semantic_tokens.rs:3640
Function
docstring_classification_concat_commented_nextline
()
crates/ty_ide/src/semantic_tokens.rs:3754
Function
docstring_classification_concat_commented_sameline
()
crates/ty_ide/src/semantic_tokens.rs:3791
Function
docstring_classification_concat_parens
()
crates/ty_ide/src/semantic_tokens.rs:3671
Function
docstring_classification_concat_parens_commented_nextline
()
crates/ty_ide/src/semantic_tokens.rs:3711
Function
docstring_classification_concat_slashed
()
crates/ty_ide/src/semantic_tokens.rs:3825
Function
docstring_classification_plus
()
crates/ty_ide/src/semantic_tokens.rs:3859
Function
docstring_double
double triple
crates/ruff_python_formatter/resources/test/fixtures/ruff/quote_style.py:46
Function
docstring_double_triple
double triple
crates/ruff_python_formatter/resources/test/fixtures/ruff/quote_style.py:43
Function
docstring_flat
()
crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/string.py:206
Function
docstring_flat_overlong
()
crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/string.py:211
Function
docstring_ignore_some_violations_but_catch_D401
Runs something
crates/ruff_linter/resources/test/fixtures/pydocstyle/D.py:486
Function
docstring_initializes
Initializes the process.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D.py:503
Function
docstring_initiates
Initiates the process.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D.py:495
← previous
next →
17,801–17,900 of 31,562, ranked by callers