MCPcopy Create free account

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

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

Methoddifferent_argument
(self, other)
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP008.py:42
Methoddifferent_class
(self)
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP008.py:39
Functiondifferent_items_with_same_identity_form_cycle
()
crates/ty_python_semantic/src/types/cyclic.rs:1823
Functiondifferent_overlap
()
crates/ruff_annotate_snippets/tests/rustc_tests.rs:199
Functiondifferent_settings
()
crates/ty_server/tests/e2e/workspace_folders.rs:503
Functiondifferent_submodule_import
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:2987
Functiondirect_call
()
crates/ty_ide/src/call_hierarchy/outgoing_calls.rs:361
Functiondirectory_deleted
()
crates/ty/tests/file_watching.rs:1508
Functiondirectory_moved_to_project
()
crates/ty/tests/file_watching.rs:1349
Functiondirectory_moved_to_trash
()
crates/ty/tests/file_watching.rs:1395
Methoddirectory_path
(system: &dyn System, root: SystemPathBuf)
crates/ty_module_resolver/src/path.rs:609
Functiondirectory_renamed
()
crates/ty/tests/file_watching.rs:1440
Functiondisable_auto_import
()
crates/ty_server/tests/e2e/completions.rs:59
Functiondisable_language_services_for_one_workspace
()
crates/ty_server/tests/e2e/initialize.rs:429
Functiondisable_language_services_set_on_initialization
()
crates/ty_server/tests/e2e/initialize.rs:368
Functiondisable_language_services_set_on_workspace
()
crates/ty_server/tests/e2e/initialize.rs:397
Functiondisable_lru
(db: &mut dyn Db)
crates/ruff_db/src/parsed.rs:45
Functiondisable_multiple_codes
()
crates/ruff_linter/src/suppression.rs:2789
Functiondisable_single_code
()
crates/ruff_linter/src/suppression.rs:2751
Functiondisable_single_code_with_reason
()
crates/ruff_linter/src/suppression.rs:2770
Methoddisabled
()
crates/ty/src/printer.rs:128
Functiondisabled_baseline_does_not_run_baseline_query
()
crates/ty_project/src/baseline.rs:440
Functiondisabled_integration_does_not_initialize_scripts
()
crates/ty/tests/cli/scripts.rs:1617
Functiondisabled_language_services_suppress_file_rename_edits
()
crates/ty_server/tests/e2e/will_rename_files.rs:299
Functiondisabling_script_uv_discards_pending_synchronization
()
crates/ty_project/src/uv/environments.rs:857
Functiondisallow_merged_snippets_in_presence_of_explicit_paths
()
crates/mdtest/src/parser.rs:1512
Functiondisallow_pyi_snippets_in_presence_of_merged_py_snippets
()
crates/mdtest/src/parser.rs:1560
Methoddisappearing_comment
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/preview_long_strings__regression.py:59
Methoddiscover
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:191
Methoddiscover
Obtains uv workspace metadata for `path`. Failures are retained as diagnostics for the project to report.
crates/ty_project/src/uv/environments.rs:537
Methoddiscover
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
Methoddiscover_in
( project_root: &SystemPath, system: &dyn System, )
crates/ty_project/src/metadata.rs:271
Functiondiscover_pyproject_with_conflicting_rule_alias_levels
()
crates/ty/tests/cli/rule_selection.rs:319
Functiondiscovered_tests
(test: &CursorTest)
crates/ty_ide/src/pytest_test_discovery.rs:329
Functiondiscovers_functions_and_test_classes
()
crates/ty_ide/src/pytest_test_discovery.rs:144
Functiondisjoint_lower_bounds_skip_empty_sequent_maps
()
crates/ty_python_semantic/src/types/constraints/sequents.rs:2433
Functiondisjunction_of_independent_conjunctions_stays_compact
()
crates/ty_python_semantic/src/types/constraints.rs:6939
Methoddisplay
Display diagnostics in this output format.
crates/ty_project/src/metadata/options.rs:1633
Methoddisplay
Returns a display implementation for these diagnostics.
crates/ruff_db/src/diagnostic/render.rs:67
Methoddisplay
(&self, format: Format)
crates/ruff_dev/src/format_dev.rs:635
Methoddisplay
( self, db: &'db dyn Db, env: &'env ProgramEnvironment<'db>, )
crates/ty_python_semantic/src/types/protocol_class.rs:1042
Methoddisplay
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/typevar.rs:2207
Methoddisplay
( self, db: &'db dyn Db, env: &'c ProgramEnvironment<'db>, )
crates/ty_python_semantic/src/types/constraints.rs:998
Methoddisplay
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, )
crates/ty_python_semantic/src/types/class_base.rs:519
Methoddisplay
Keep this around for debugging purposes
crates/ty_python_semantic/src/types/constraints/sequents.rs:159
Methoddisplay
( &'a self, db: &'db dyn Db, env: &'a ProgramEnvironment<'db>, holds: Option<b
crates/ty_python_semantic/src/types/constraints/variables.rs:178
Methoddisplay
(&'a self, source: &'a str)
crates/ruff_linter/src/rules/pyupgrade/rules/pep695/mod.rs:98
Functiondisplay_default_settings
()
crates/ruff/tests/cli/show_settings.rs:6
Functiondisplay_elements
()
crates/ruff_formatter/src/format_element/document.rs:818
Functiondisplay_elements_with_source_text_slice
()
crates/ruff_formatter/src/format_element/document.rs:871
Methoddisplay_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
Methoddisplay_full
Returns a short report that provides fine-grained memory usage information per Salsa ingredient.
crates/ty_project/src/db.rs:457
Methoddisplay_full
(&'a self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/display.rs:2217
Functiondisplay_invalid_document
()
crates/ruff_formatter/src/format_element/document.rs:909
Methoddisplay_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
Methoddisplay_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
Functiondisplay_only_fix
()
crates/ty/tests/cli/fixes.rs:349
Functiondisplay_parameters
(raw: &str)
crates/ty_ide/src/docstring/document/google.rs:1622
Methoddisplay_parameters
( display: &DisplayParameters<'_, 'db>, f: &mut TypeWriter<'_, '_, 'db>, p
crates/ty_python_semantic/src/types/display.rs:2817
Functiondisplay_representations_are_normalized
()
crates/ruff_python_literal/src/escape.rs:748
Methoddisplay_search_paths
( self, db: &'db dyn Db, mode: ModuleResolveMode, )
crates/ty_module_resolver/src/environment.rs:19
Functiondisplay_settings_from_nested_directory
()
crates/ruff/tests/cli/show_settings.rs:35
Methoddisplay_short
Returns a short report that provides total memory usage information.
crates/ty_project/src/db.rs:410
Functiondisplay_signature
( db: &'db TestDb, parameters: impl IntoIterator<Item = Parameter<'db>>, return_ty: Op
crates/ty_python_semantic/src/types/display.rs:4205
Functiondisplay_signature_multiline
( db: &'db TestDb, parameters: impl IntoIterator<Item = Parameter<'db>>, return_ty: Op
crates/ty_python_semantic/src/types/display.rs:4218
Methoddistance_from_end
(index: i32)
crates/ty_python_semantic/src/types/tuple.rs:2015
Functiondistinguishes_unsuffixed_default_from_free_threaded_executable
()
crates/ty_site_packages/src/lib.rs:4094
Methoddistributed_and
( builder: &ConstraintSetBuilder<'_>, nodes: impl Iterator<Item = (NodeId, Option<SourceOrderI
crates/ty_python_semantic/src/types/constraints.rs:2751
Methoddistributed_or
( builder: &ConstraintSetBuilder<'_>, nodes: impl Iterator<Item = (NodeId, Option<SourceOrderI
crates/ty_python_semantic/src/types/constraints.rs:2744
Methoddivergent
(id: salsa::Id)
crates/ty_python_semantic/src/types.rs:2449
Methoddivergent_alias
Returns a divergent marker for a cycle in type alias inference.
crates/ty_python_semantic/src/types.rs:2454
Functiondivergent_type
()
crates/ty_python_semantic/src/types/tests.rs:398
Methoddo
(position)
crates/ruff_linter/resources/test/fixtures/pylint/singledispatch_method.py:25
Methoddo
(position)
crates/ruff_linter/resources/test/fixtures/pylint/singledispatchmethod_function.py:22
Methoddo_GET
(self)
crates/ruff_linter/resources/test/fixtures/pep8_naming/N802.py:81
Methoddo_OPTIONS
(self)
crates/ruff_linter/resources/test/fixtures/pep8_naming/N802.py:92
Methoddo_OPTIONS
(self)
crates/ruff_linter/resources/test/fixtures/pep8_naming/N802.py:103
Functiondo_fuzz
(case: &[u8])
fuzz/fuzz_targets/ruff_parse_simple.rs:11
Functiondo_fuzz
(case: &[u8])
fuzz/fuzz_targets/ruff_fix_validity.rs:12
Functiondo_fuzz
(case: &[u8])
fuzz/fuzz_targets/ruff_formatter_idempotency.rs:11
Functiondo_fuzz
(case: &[u8])
fuzz/fuzz_targets/ruff_parse_idempotency.rs:10
Functiondo_fuzz
(case: &[u8])
fuzz/fuzz_targets/ruff_formatter_validity.rs:20
Functiondo_fuzz
(case: &[u8])
fuzz/fuzz_targets/ty_check_invalid_syntax.rs:171
Functiondo_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
Functiondo_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
Functiondo_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
Functiondo_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
Methoddo_thing
(self, item)
crates/ruff_linter/resources/test/fixtures/pylint/unnecessary_dunder_call.py:115
Functiondo_this_instead
(value=None)
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B006_B008.py:119
Functiondo_this_instead_of_calls_in_defaults
(logger=LOGGER)
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B006_B008.py:142
Methoddoc_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
Functiondocstring
()
crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/string.py:200
Methoddocstring
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
Methoddocstring
Lorem ipsum dolor sit amet.
crates/ruff_linter/resources/test/fixtures/pylint/no_self_use.py:120
Functiondocstring_almost_at_line_limit
long docstring.................................................................
crates/ruff_python_formatter/resources/test/fixtures/black/cases/docstring.py:196
Functiondocstring_almost_at_line_limit
long docstring.................................................................
crates/ruff_python_formatter/resources/test/fixtures/black/cases/docstring_preview.py:1
Functiondocstring_almost_at_line_limit2
long docstring................................................................. .................................................................
crates/ruff_python_formatter/resources/test/fixtures/black/cases/docstring.py:200
Functiondocstring_almost_at_line_limit_with_prefix
f"""long docstring................................................................
crates/ruff_python_formatter/resources/test/fixtures/black/cases/docstring_preview.py:6
Functiondocstring_at_line_limit
long docstring................................................................
crates/ruff_python_formatter/resources/test/fixtures/black/cases/docstring.py:207
Functiondocstring_at_line_limit
long docstring................................................................
crates/ruff_python_formatter/resources/test/fixtures/black/cases/docstring_preview.py:25
← previousnext →17,901–18,000 of 31,766, ranked by callers