MCPcopy Create free account

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

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

Functionskips_closure_captured_bindings
()
crates/ty_python_semantic/src/types/ide_support/unused_bindings.rs:676
Functionskips_global_and_nonlocal_assignments
()
crates/ty_python_semantic/src/types/ide_support/unused_bindings.rs:412
Functionskips_identity_for_distinct_candidates
()
crates/ty_python_semantic/src/types/cyclic.rs:1777
Functionskips_identity_without_a_distinct_active_item
()
crates/ty_python_semantic/src/types/cyclic.rs:1793
Functionskips_invalid_core_plugin_names
()
crates/ty_python_semantic/src/types/dedicated/pytest/fixtures.rs:3252
Functionskips_loop_carried_rebinding
()
crates/ty_python_semantic/src/types/ide_support/unused_bindings.rs:950
Functionskips_loop_condition_guarded_rebinding
()
crates/ty_python_semantic/src/types/ide_support/unused_bindings.rs:1089
Functionskips_module_and_class_scope_bindings
()
crates/ty_python_semantic/src/types/ide_support/unused_bindings.rs:372
Functionskips_parameter_captured_by_nested_comprehension
()
crates/ty_python_semantic/src/types/ide_support/unused_bindings.rs:745
Functionskips_placeholder_and_dunder_locals
()
crates/ty_python_semantic/src/types/ide_support/unused_bindings.rs:394
Functionskips_rest_roles_before_field_delimiter
()
crates/ty_ide/src/docstring/document/google.rs:1576
Functionskips_static_substitutions
()
crates/ty_ide/src/docstring/document/numpy.rs:1176
Functionskips_unreachable_loop_carried_rebinding
()
crates/ty_python_semantic/src/types/ide_support/unused_bindings.rs:1064
Functionskips_unresolved_calls
()
crates/ty_ide/src/call_hierarchy/outgoing_calls.rs:692
Functionskips_unused_parameter_for_method_with_stub_body
()
crates/ty_python_semantic/src/types/ide_support/unused_bindings.rs:560
Functionskips_unused_parameter_for_module_level_overload_stub_declarations
()
crates/ty_python_semantic/src/types/ide_support/unused_bindings.rs:602
Functionskips_unused_parameter_for_overload_stub_declarations
()
crates/ty_python_semantic/src/types/ide_support/unused_bindings.rs:578
Functionskips_unused_parameters_in_stub_files
()
crates/ty_python_semantic/src/types/ide_support/unused_bindings.rs:625
Functionsla_callback
(*arg, **kwargs)
crates/ruff_linter/resources/test/fixtures/airflow/AIR311_args.py:9
Methodsleep
(self, x, y, z)
crates/ruff_linter/resources/test/fixtures/pylint/bad_staticmethod_argument.py:19
Methodslice
Take the source code between the given [`ruff_text_size::TextRange`].
crates/ruff_source_file/src/lib.rs:59
Methodslice
(&self, ranged: impl Ranged)
crates/ruff_text_size/src/traits.rs:96
Methodslice_expr
(self)
crates/ruff_python_ast/src/generated.rs:2767
Functionslice_fields
(node: &ast::ExprSlice)
crates/ruff_python_ast/src/comparable.rs:1424
Functionslice_okay
(value=slice(1,2))
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B006_B008.py:203
Methodsmall
Create an [`Int`] to represent a value that can be represented as an `i64`.
crates/ruff_python_ast/src/int.rs:35
Functionsmall_file
()
crates/ruff_linter/src/rules/flake8_copyright/mod.rs:257
Functionsnapshot
(db: &dyn Db, items: &[TypeHierarchyItem])
crates/ty_ide/src/type_hierarchy.rs:712
Methodsnapshot
( session: &Session, params: &<<Self as RequestHandler>::RequestType as Request>::Params,
crates/ruff_server/src/server/api/traits.rs:102
Methodsnapshot
(session: &Session, action: &types::CodeAction)
crates/ruff_server/src/server/api/requests/code_action_resolve.rs:25
Functionsnapshot_diagnostic_directive_detection_ignores_whitespace
()
crates/mdtest/src/parser.rs:2291
Functionsnapshot_is_empty_relative_to_its_buffer
()
crates/ruff_python_parser/src/parser/scratch_buffer.rs:123
Functionsnapshot_must_be_restored
()
crates/ruff_python_parser/src/parser/scratch_buffer.rs:103
Functionsnapshot_must_be_restored_in_reverse_order
()
crates/ruff_python_parser/src/parser/scratch_buffer.rs:113
Functionsnippet_no_path
()
crates/ruff_annotate_snippets/tests/formatter.rs:4134
Functionsnippet_with_cell
()
crates/ruff_annotate_snippets/tests/ruff.rs:7
Functionsnippet_with_path_cell
()
crates/ruff_annotate_snippets/tests/ruff.rs:35
Methodsnippets_support
When set, completions may make use of snippets in the insertion text (e.g. `$0`).
crates/ty_ide/src/completion.rs:11622
Functionsoft_line_indent_or_space
( content: &impl Format<Context>, )
crates/ruff_formatter/src/builders.rs:1190
Functionsoft_space_or_block_indent
Adds spaces around the content if its enclosing group fits on a line, otherwise indents the content and separates it by line breaks. # Examples Adds
crates/ruff_formatter/src/builders.rs:1325
Functionsolution
( solved_typevars: impl IntoIterator<Item = TypeVarSolution<'db>>, )
crates/ty_python_semantic/src/types/constraints.rs:5288
Functionsolution_budget_exhaustion_preserves_available_bindings
()
crates/ty_python_semantic/src/types/constraints.rs:5885
Functionsolution_walker_break_restores_path_assignments
()
crates/ty_python_semantic/src/types/constraints/paths.rs:1331
Methodsolve_bounds
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, builder: &ConstraintSetBuilder<'db>,
crates/ty_python_semantic/src/types/constraints.rs:4276
Methodsolve_from_evidence
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, builder: &ConstraintSetBuilder<'db>,
crates/ty_python_semantic/src/types/constraints.rs:4340
Methodsolve_path_with
Solves one complete path, retaining whether any of its bindings used a fallback. A later unsatisfiable bound rejects the path even if an earlier bound
crates/ty_python_semantic/src/types/constraints.rs:4160
Functionsome_async_func
( unformatted, args)
crates/ruff_python_formatter/resources/test/fixtures/black/cases/fmtskip8.py:9
Methodsome_async_method
( self, unformatted, args )
crates/ruff_python_formatter/resources/test/fixtures/black/cases/fmtskip8.py:20
Methodsome_cached_property
(self)
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B019.py:70
Functionsome_func
()
crates/ruff_linter/resources/test/fixtures/flake8_bandit/S308.py:17
Functionsome_func
()
crates/ruff_linter/resources/test/fixtures/pylint/len_as_condition.py:81
Functionsome_function_with_a_really_long_name
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/function_trailing_comma.py:28
Methodsome_method
( self, unformatted, args )
crates/ruff_python_formatter/resources/test/fixtures/black/cases/fmtskip8.py:16
Functionsome_method_with_a_really_long_name
(very_long_parameter_so_yeah: str, another_long_parameter: int)
crates/ruff_python_formatter/resources/test/fixtures/black/cases/function_trailing_comma.py:34
Functionsome_other_cache
()
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B019.py:9
Methodsome_other_cached_property
(self)
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B019.py:74
Functionsome_very_long_name_function
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/pep_604.py:1
Functionsomething
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/conditional_expression.py:60
Methodsomething
(self)
crates/ruff_python_formatter/resources/test/fixtures/black/cases/form_feeds.py:96
Functionsomething_else
(lorem)
crates/ruff_linter/resources/test/fixtures/fastapi/FAST003.py:151
Functionsomething_else
()
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B017_1.py:9
Functionsomething_something_function
(param: list[int], other_param: type[T], *, some_other_param: bool = True)
crates/ruff_python_formatter/resources/test/fixtures/black/cases/generics_wrapping.py:99
Functionsort_alphabetically
( value: &T, serializer: S, )
crates/ruff_notebook/src/schema.rs:26
Functionsort_and_group
()
crates/mdtest/src/diagnostic.rs:153
Functionsort_quoted_items
(match)
scripts/ty_benchmark/src/benchmark/snapshot.py:34
Methodsort_services
(self)
crates/ruff_linter/resources/test/fixtures/pydocstyle/D.py:650
Methodsort_services
(self)
crates/ruff_linter/resources/test/fixtures/pydocstyle/D.py:659
Methodsorted_submodule_names
(&self, parent_module_name: &str)
crates/ty/tests/file_watching.rs:307
Methodsource
The source code to be rendered <div class="warning"> Text passed to this function is considered "untrusted input", as such all text is passed throug
crates/ruff_annotate_snippets/src/snippet.rs:268
Methodsource
(&self)
crates/ty_module_resolver/src/typeshed.rs:46
Methodsource
(&self)
crates/ruff_diagnostics/src/source_map.rs:20
Methodsource
(&self)
crates/ruff_ranged_value/src/lib.rs:204
Methodsource
(&self)
crates/ty_python_core/src/builder.rs:5888
Methodsource
(&self)
crates/ruff_python_parser/tests/fixtures.rs:644
Methodsource
(&self)
crates/ty_site_packages/src/lib.rs:1305
Functionsource_and_interning_order_do_not_change_correlated_projection
()
crates/ty_python_semantic/src/types/constraints/projection/tests.rs:658
Methodsource_code_and_cell_offsets
Build the concatenated source code and cell offsets from the raw notebook.
crates/ruff_notebook/src/notebook.rs:218
Functionsource_code_style
(path: &Path)
crates/ruff_linter/src/rules/isort/mod.rs:509
Functionsource_map_reports_invalid_relative_line
()
crates/mdtest/src/parser.rs:1189
Functionsource_map_to_absolute_line_number
()
crates/mdtest/src/parser.rs:1177
Methodsource_text
(&self, file_id: &FileHandle)
crates/ty_wasm/src/lib.rs:314
Methodsource_type
(&self, path: &SystemPath)
crates/ty_server/src/system.rs:198
Methodsource_type
Returns the source type for `path` if known or `None`. The default is to always return `None`, assuming the system has no additional information and
crates/ruff_db/src/system.rs:89
Methodsource_type_from_document
( document: &Document, extension: Option<&str>, )
crates/ty_server/src/system.rs:128
Methodsourcemap
Returns a list of [`SourceMarker`] mapping byte positions in the output string to the input source code. It's not guaranteed that the markers are sort
crates/ruff_formatter/src/lib.rs:397
Functionspace_argument
Arguments: arg1: super duper arg with a tab and a space in front
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_tab_indentation.py:14
Functionspace_indented_docstring_containing_tabs
Arguments: arg1: super duper arg
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_tab_indentation.py:42
Functionspaces
(a=1, b=(), c=[], d={}, e=True, f=-1, g=1 if False else 2, h="", i=r'')
crates/ruff_python_formatter/resources/test/fixtures/black/cases/fmtonoff.py:41
Functionspaces
(a=1, b=(), c=[], d={}, e=True, f=-1, g=1 if False else 2, h="", i=r'')
crates/ruff_python_formatter/resources/test/fixtures/black/cases/function.py:31
Functionspaces2
(result= _core.Value(None))
crates/ruff_python_formatter/resources/test/fixtures/black/cases/fmtonoff.py:45
Functionspaces2
(result= _core.Value(None))
crates/ruff_python_formatter/resources/test/fixtures/black/cases/function.py:35
Functionspaces_tabs_over_indent
Arguments: arg1: super duper arg with a tab and a space in front
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_tab_indentation.py:34
Functionspaces_types
(a: int = 1, b: tuple = (), c: list = [], d: dict = {}, e: bool = True, f: int = -1, g: int = 1 if False else
crates/ruff_python_formatter/resources/test/fixtures/black/cases/fmtonoff.py:44
Functionspaces_types
(a: int = 1, b: tuple = (), c: list = [], d: dict = {}, e: bool = True, f: int = -1, g: int = 1 if False else
crates/ruff_python_formatter/resources/test/fixtures/black/cases/function.py:34
Functionspam
()
crates/ruff_python_parser/resources/inline/ok/decorator_expression_identity_hack_py38.py:4
Functionspam
()
crates/ruff_python_parser/resources/inline/ok/decorator_expression_dotted_ident_py38.py:3
Functionspam
()
crates/ruff_python_parser/resources/inline/ok/decorator_expression_eval_hack_py38.py:3
Functionspam
()
crates/ruff_python_parser/resources/inline/err/decorator_expression_py38.py:3
Functionspan_eol
()
crates/ruff_annotate_snippets/tests/formatter.rs:3741
Functionsparse_and_shadowed_inherited_names_skip_base_pair_queries
()
crates/ty_python_semantic/src/types/tests.rs:29
← previousnext →28,501–28,600 of 31,562, ranked by callers