MCPcopy Create free account

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

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

Methodderef_mut
(&mut self)
crates/ruff_index/src/frozen.rs:53
Functionderive_combine
(input: TokenStream)
crates/ruff_macros/src/lib.rs:55
Functionderive_combine_options
(input: TokenStream)
crates/ruff_macros/src/lib.rs:42
Functionderive_impl
(input: DeriveInput)
crates/ruff_macros/src/combine.rs:5
Functionderive_impl
(input: DeriveInput)
crates/ruff_macros/src/rule_namespace.rs:8
Functionderive_impl
(input: DeriveInput)
crates/ruff_macros/src/combine_options.rs:4
Functionderive_impl
(input: DeriveInput)
crates/ruff_macros/src/rust_doc.rs:5
Functionderive_message_formats
(_attr: TokenStream, item: TokenStream)
crates/ruff_macros/src/lib.rs:112
Functionderive_message_formats
(func: &ItemFn)
crates/ruff_macros/src/derive_message_formats.rs:7
Functionderive_options_metadata
(input: TokenStream)
crates/ruff_macros/src/lib.rs:24
Functionderive_rule_namespace
(input: TokenStream)
crates/ruff_macros/src/lib.rs:95
Functionderive_rust_doc
(input: TokenStream)
crates/ruff_macros/src/lib.rs:33
Functionderive_violation_metadata
(item: TokenStream)
crates/ruff_macros/src/lib.rs:86
Methodderived
Returns the provenance of a constraint derived from two existing constraints.
crates/ty_python_semantic/src/types/constraints/variables.rs:70
Methodderived
(consumed: u16, remaining: u16)
crates/ty_python_semantic/src/types/constraints/paths.rs:160
Functionderiving_meta_unknown_trait
()
crates/ruff_annotate_snippets/tests/rustc_tests.rs:4005
Methoddescribe_kind
(&self)
crates/ty_module_resolver/src/path.rs:855
Methoddescribe_problematic_class_bases
List the problematic class bases in a human-readable format.
crates/ty_python_semantic/src/types/diagnostic.rs:3673
Methoddescribe_typevar
Add an `info`-level diagnostic describing the bounds or constraints, and return the type variable's upper bound or the union of its constraints.
crates/ty_python_semantic/src/types/bound_super.rs:204
Methoddescription
(self)
crates/ty_python_semantic/src/types/relation.rs:190
Methoddescription
(self)
crates/ty_python_semantic/src/types/relation_error.rs:33
Methoddescription
Returns a concise description of this decorator category.
crates/ty_python_semantic/src/types/class.rs:2726
Methoddescriptor
( descriptor_ty: Type<'db>, domain: Option<Type<'db>>, definition: Option<Definition<'
crates/ty_python_semantic/src/types/protocol_class.rs:1066
Methoddeserialize
(deserializer: D)
crates/ty_project/src/metadata/pyproject.rs:270
Methoddeserialize
(deserializer: D)
crates/ty_project/src/uv/metadata/string_interner.rs:71
Methoddeserialize
(deserializer: D)
crates/ruff_python_semantic/src/imports.rs:206
Methoddeserialize
(deserializer: D)
crates/ty_server/src/system.rs:317
Methoddeserialize
(deserializer: D)
crates/ruff_ranged_value/src/lib.rs:341
Methoddeserialize
(deserializer: D)
crates/ruff_workspace/src/options.rs:635
Methoddeserialize
(deserializer: D)
crates/ruff_text_size/src/serde_impls.rs:16
Methoddeserialize
(deserializer: D)
crates/ruff_python_ast/src/python_version.rs:185
Methoddeserialize
(deserializer: D)
crates/ruff_linter/src/line_width.rs:44
Functiondeserialize_docstring_code_line_width_dynamic
Responsible for deserializing the `DocstringCodeLineWidth::Dynamic` variant.
crates/ruff_python_formatter/src/options.rs:499
Functiondeserialize_map
( deserializer: D, )
crates/ty_project/src/uv/metadata/string_interner.rs:82
Functiondeserialize_optional
( deserializer: D, )
crates/ty_project/src/uv/metadata/string_interner.rs:76
Methoddeserialize_toml
(content: &str)
crates/ty_project/src/metadata/pyproject.rs:44
Methoddeserialize_with
( source: ValueSource, deserializer: D, registry: &LintRegistry, )
crates/ty_project/src/metadata/options.rs:198
Functiondesperate_resolution_finds_stub_package
()
crates/ty_module_resolver/src/resolve.rs:1971
Functiondetached_command_executor_does_not_retain_document_index
()
crates/ty_server/src/session.rs:2353
Functiondetached_untrusted_executor_rejects_commands
()
crates/ty_server/src/session.rs:2370
Methoddetect
Detect the [`ModuleImports`] for a given Python file.
crates/ruff_graph/src/lib.rs:27
Methoddetect
Attempts to detect an import statement in reverse starting at the end of `tokens`. That is, `tokens` should correspond to the sequence of tokens up to
crates/ty_ide/src/completion.rs:2694
Functiondetect_correct_file_change
()
crates/ruff/src/lib.rs:536
Functiondetect_same_package
()
crates/ruff_linter/src/rules/isort/mod.rs:1635
Functiondetect_wsl
()
crates/ruff_linter/src/rules/flake8_executable/helpers.rs:23
Functiondetects_cpython_implementation
()
crates/ty_site_packages/src/lib.rs:2966
Functiondetects_graalpy_implementation
()
crates/ty_site_packages/src/lib.rs:2982
Functiondetects_pypy_implementation
()
crates/ty_site_packages/src/lib.rs:2950
Functiondetects_unknown_implementation
()
crates/ty_site_packages/src/lib.rs:2998
Functiondeveloper_greeting
()
crates/ruff_linter/resources/test/fixtures/pylint/no_self_use.py:18
Methoddeveloper_greeting
(self, name)
crates/ruff_linter/resources/test/fixtures/pylint/no_self_use.py:7
Methoddeveloper_greeting
(self, name)
crates/ruff_linter/resources/test/fixtures/pylint/no_self_use.py:145
Functiondfa_memory_usage
(dfa: &Option<dfa::dense::DFA<Vec<u32>>>)
crates/ty_project/src/glob/include.rs:55
Methoddiagnostic
(_locator: &Locator, _comment_ranges: &CommentRanges, context: &LintContext)
crates/ruff_linter/src/rules/ruff/rules/test_rules.rs:86
Methoddiagnostic_display
Display the version range in a way that is suitable for rendering in user-facing diagnostics.
crates/ty_module_resolver/src/typeshed.rs:241
Functiondiagnostic_end_of_file
()
crates/ty_server/tests/e2e/notebook.rs:158
Functiondiagnostic_includes_secondary_annotations
()
crates/ty_wasm/tests/api.rs:299
Methoddiagnostic_name
(self)
crates/ty_python_semantic/src/types/typed_dict.rs:1589
Functiondiagnostic_order_with_missing_locations
()
crates/ruff_db/src/diagnostic/render.rs:2439
Functiondiagnostic_tags
()
crates/ruff_wasm/tests/api.rs:183
Functiondiagnostic_tags
()
crates/ty_wasm/tests/api.rs:202
Functiondiagnostic_width
()
crates/ruff_annotate_snippets/tests/formatter.rs:3226
Functiondiagnostic_width2
()
crates/ruff_annotate_snippets/tests/formatter.rs:3279
Methoddiagnostics
(&self)
crates/ty_project/src/files.rs:211
Functiondiagnostics_to_json_value
( diagnostics: impl IntoIterator<Item = &'a Diagnostic>, resolver: &dyn FileResolver, config: &Dis
crates/ruff_db/src/diagnostic/render/json.rs:39
Functiondiagnostics_with_equal_locations_sort_by_concise_message
()
crates/ruff_db/src/diagnostic/render.rs:2456
Functiondict_comp
()
crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_skip/compound_one_liners.py:82
Methoddict_comp_expr
(self)
crates/ruff_python_ast/src/generated.rs:1990
Functiondict_comp_fields
( node: &ast::ExprDictComp, )
crates/ruff_python_ast/src/comparable.rs:1183
Functiondict_comprehension
()
crates/ruff_python_ast_integration_tests/tests/visitor.rs:55
Functiondict_comprehension
()
crates/ruff_python_ast_integration_tests/tests/source_order.rs:46
Functiondict_comprehension_also_not_okay
(default={i: i**2 for i in range(3)})
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B006_B008.py:106
Methoddict_expr
(self)
crates/ruff_python_ast/src/generated.rs:1842
Functiondict_fields
(node: &ast::ExprDict)
crates/ruff_python_ast/src/comparable.rs:1130
Methoddid_change_watched_files
(&mut self, events: Vec<FileEvent>)
crates/ruff_server/tests/e2e/main.rs:751
Methoddiff
Returns a diff between the original and modified source code. Returns `None` if `self` and `other` are not of the same kind.
crates/ruff_linter/src/source_kind.rs:177
Functiondiff_after_unchanged_prefix
()
crates/ruff_dev/src/generate_all.rs:129
Functiondiff_does_not_show_display_only_fixes_with_unsafe_fixes_enabled
()
crates/ruff/tests/integration_test.rs:2276
Functiondiff_format
()
crates/ruff_annotate_snippets/tests/formatter.rs:2077
Functiondiff_only_unsafe_fixes_available
()
crates/ruff/tests/integration_test.rs:2292
Functiondiff_shows_safe_fixes_by_default
()
crates/ruff/tests/integration_test.rs:2235
Functiondiff_shows_unsafe_fixes_with_opt_in
()
crates/ruff/tests/integration_test.rs:2255
Functiondiff_within_limit
()
crates/ruff_dev/src/generate_all.rs:101
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:1811
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:2982
Functiondirect_call
()
crates/ty_ide/src/call_hierarchy/outgoing_calls.rs:361
Functiondirectory_deleted
()
crates/ty/tests/file_watching.rs:1500
Functiondirectory_moved_to_project
()
crates/ty/tests/file_watching.rs:1341
Functiondirectory_moved_to_trash
()
crates/ty/tests/file_watching.rs:1387
Methoddirectory_path
(system: &dyn System, root: SystemPathBuf)
crates/ty_module_resolver/src/path.rs:609
Functiondirectory_renamed
()
crates/ty/tests/file_watching.rs:1432
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
← previousnext →17,701–17,800 of 31,562, ranked by callers