MCPcopy Create free account

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

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

Functionincorrect_and_operator_issubclass
(arg1, arg2)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY004.py:205
Functionincorrect_basic
(some_arg)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY004.py:8
Functionincorrect_decorator_order_py312
()
crates/ruff_linter/src/rules/ruff/mod.rs:306
Functionincorrect_multi_conditional
(arg1, arg2)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY004.py:226
Functionincorrect_multiple
()
crates/ruff_linter/resources/test/fixtures/flake8_django/DJ013.py:36
Functionincorrect_multiple_operators_callable
(arg1, arg2, arg3)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY004.py:191
Functionincorrect_multiple_operators_isinstance
(arg1, arg2, arg3)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY004.py:163
Functionincorrect_multiple_operators_issubclass
(arg1, arg2, arg3)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY004.py:219
Functionincorrect_multiple_type_check
(some_arg)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY004.py:15
Functionincorrect_not_operator_callable
(some_arg)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY004.py:170
Functionincorrect_not_operator_isinstance
(some_arg)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY004.py:142
Functionincorrect_not_operator_issubclass
(some_arg)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY004.py:198
Functionincorrect_or_operator_callable
(arg1, arg2)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY004.py:184
Functionincorrect_or_operator_isinstance
(arg1, arg2)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY004.py:156
Functionincorrect_or_operator_issubclass
(arg1, arg2)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY004.py:212
Functionincorrect_pre_save_handler
()
crates/ruff_linter/resources/test/fixtures/flake8_django/DJ013.py:16
Functionincorrect_with_callable
(some_arg)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY004.py:33
Functionincorrect_with_issubclass
(some_arg)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY004.py:26
Methodincrement
Returns the next indent level.
crates/ruff_python_formatter/src/context.rs:337
Methodincremental
Creates a walker for indexing newly added project files incrementally.
crates/ty_project/src/walk.rs:139
Methodincremental_matcher
( &self, configuration: WalkDirectoryConfiguration, )
crates/ruff_db/src/system/memory_fs.rs:715
Methodincremental_matcher
( &self, configuration: WalkDirectoryConfiguration, )
crates/ruff_db/src/system/os.rs:378
Functionindent
()
crates/ruff_python_codegen/src/generator.rs:2031
Functionindent
(x, y, w, z)
crates/ruff_linter/resources/test/fixtures/flake8_return/RET505.py:203
Functionindent_description
(description: &str)
crates/ty_ide/src/docstring/markdown/structured.rs:1086
Functionindent_empty
()
crates/ruff_python_trivia/src/textwrap.rs:288
Functionindent_empty_line
()
crates/ruff_python_trivia/src/textwrap.rs:310
Functionindent_first_line_empty
()
crates/ruff_python_trivia/src/textwrap.rs:507
Functionindent_first_line_empty_line
()
crates/ruff_python_trivia/src/textwrap.rs:529
Functionindent_first_line_mixed_newlines
()
crates/ruff_python_trivia/src/textwrap.rs:547
Functionindent_first_line_nonempty
()
crates/ruff_python_trivia/src/textwrap.rs:513
Functionindent_if_group_breaks
( content: &Content, group_id: GroupId, )
crates/ruff_formatter/src/builders.rs:2138
Functionindent_mixed_newlines
()
crates/ruff_python_trivia/src/textwrap.rs:328
Functionindent_non_breaking_whitespace
()
crates/ruff_python_codegen/src/stylist.rs:252
Functionindent_nonempty
()
crates/ruff_python_trivia/src/textwrap.rs:294
Methodindent_style
(&self)
crates/ruff_formatter/src/lib.rs:260
Methodindent_style
(&self)
crates/ruff_formatter/src/format_element/document.rs:234
Methodindent_width
(&self)
crates/ruff_formatter/src/lib.rs:264
Methodindent_width
(&self)
crates/ruff_formatter/src/format_element/document.rs:238
Functionindentation
()
crates/ruff_python_codegen/src/stylist.rs:199
Methodindentation
Returns the leading indentation of the given source line.
crates/ty_ide/src/docstring/document/rst.rs:489
Methodindentation
The file's indentation unit, shared with inserted imports and diagnostic fixes.
crates/ty_python_semantic/src/importer.rs:75
Functionindentation_like_black
()
crates/ruff_python_formatter/src/string/docstring.rs:1895
Functionindentation_matching_for_loop_in_preview
()
crates/ruff_python_formatter/resources/test/fixtures/ruff/parentheses/call_chains.py:263
Functionindentation_matching_walrus_in_preview
()
crates/ruff_python_formatter/resources/test/fixtures/ruff/parentheses/call_chains.py:273
Functionindentation_try_compare
()
crates/ruff_python_parser/src/lexer/indentation.rs:150
Functionindentation_with_eol
(eol: &str)
crates/ruff_python_parser/src/lexer.rs:2051
Methodindented
Create an [`Insertion`] that starts on its own line, with the given indentation.
crates/ruff_python_importer/src/insertion.rs:344
Functionindented_comment
()
crates/ruff_linter/src/suppression.rs:2888
Methodindex
(&self, index: GlobalsId)
crates/ruff_python_semantic/src/globals.rs:32
Methodindex
(&self, index: BranchId)
crates/ruff_python_semantic/src/branches.rs:49
Methodindex
(&self, index: OperatorIndex)
crates/ruff_python_formatter/src/expression/binary_like.rs:1093
Methodindex
(&self, index: TextRange)
crates/ruff_text_size/src/range.rs:493
Methodindex
Returns the index of the parameter with the given name
crates/ruff_python_ast/src/nodes.rs:3341
Methodindex
(&self, id: I)
crates/ty_python_core/src/interned_nodes.rs:80
Methodindex
(&self, index: &K)
crates/ty_python_core/src/frozen.rs:112
Methodindex
(&self, index: ScopedPlaceId)
crates/ty_python_core/src/place.rs:502
Methodindex
(self)
crates/ty_python_core/src/predicate.rs:52
Methodindex
(&self)
crates/ty_python_core/src/ast_node_ref.rs:59
Functionindex_fragmented_source_array
()
crates/ruff_notebook/src/notebook.rs:710
Methodindex_mut
(&mut self, index: TextRange)
crates/ruff_text_size/src/range.rs:508
Methodindex_mut
(&mut self, index: I)
crates/ruff_index/src/slice.rs:162
Methodindexed
(inner: Arc<IndexedInner>)
crates/ty_project/src/files.rs:39
Methodindexed_mut
Returns a mutable view on the index that allows cheap in-place mutations. The changes are automatically written back to the database once the view is
crates/ty_project/src/files.rs:79
Functionindexed_nodes_chunk_boundary
()
crates/ruff_db/src/parsed.rs:911
Functionindexed_nodes_relative_tail_bounds
()
crates/ruff_db/src/parsed.rs:873
Functionindexed_nodes_round_trip
()
crates/ruff_db/src/parsed.rs:922
Functionindexed_nodes_wide_tail_bounds
()
crates/ruff_db/src/parsed.rs:892
Methodindicates_none_returned
(self)
crates/ruff_linter/src/rules/pydoclint/rules/check_docstring.rs:1144
Functionindirect_dependencies_use_script_declarations
()
crates/ty/tests/cli/scripts.rs:1772
Functionindirect_dependencies_use_updated_declarations
()
crates/ty/tests/cli/uv_workspace.rs:257
Functionindirect_dependencies_use_uv_module_ownership
()
crates/ty/tests/cli/uv_workspace.rs:197
Functioninequality
()
crates/ruff_python_formatter/src/comments/node_key.rs:84
Methodinfer
Infer type mappings for the specialization based on a given type and its declared type.
crates/ty_python_semantic/src/types/generics.rs:4006
Methodinfer_augmented_bindings
Infer augmented-assignment results after finding the existing attribute they read. ```python class Counter: def __init__(self): self.value = (1,) de
crates/ty_python_semantic/src/types/class.rs:2937
Methodinfer_name_or_attribute
( reference: (Type<'db>, Option<Definition<'db>>), annotation: &ast::Expr,
crates/ty_python_semantic/src/types/infer/builder/annotation_expression.rs:109
Functioninference_budget_exhaustion_discards_partial_mappings
()
crates/ty_python_semantic/src/types/generics.rs:5354
Methodinference_cache_key
Returns the key used to deduplicate speculative inference attempts. Standard parameters are cached by their raw parameter type, since later type chec
crates/ty_python_semantic/src/types/call/bind.rs:8398
Functioninference_cleans_merged_types_independently_of_alternatives
()
crates/ty_python_semantic/src/types/generics.rs:5484
Functioninference_preserves_correlated_alternatives
()
crates/ty_python_semantic/src/types/generics.rs:5153
Functioninference_preserves_expanding_cycles_hidden_by_merging
()
crates/ty_python_semantic/src/types/generics.rs:5543
Methodinferred_metaclass
Return this base's selected metaclass or inferred protocol fallback. `subclass` is the class whose declaration names this base. Only a direct `Protoc
crates/ty_python_semantic/src/types/class_base.rs:389
Methodinferred_parameter_context
( db: &'db dyn Db, key: ParameterContextKey<'db>, )
crates/ty_python_semantic/src/types/call/bind.rs:9169
Functioninferred_return_types
()
crates/ty_ide/src/inlay_hints.rs:974
Functioninferred_unknown_type
()
crates/ty_ide/src/inlay_hints.rs:7288
Functioninfers_python_version_from_uv_environment
()
crates/ty_project/src/metadata.rs:1624
Methodinfo
Override the output style for [info][crate::Level::INFO]
crates/ruff_annotate_snippets/src/renderer/mod.rs:222
Functioningle_label_with_message
()
crates/ruff_annotate_snippets/tests/rustc_tests.rs:891
Methodinheritance_cycle_inner
( db: &'db dyn Db, class: StaticClassLiteral<'db>, )
crates/ty_python_semantic/src/types/class/static_literal.rs:3377
Functioninherited_class_defaults_avoid_inferring_instance_assignments
()
crates/ty_python_semantic/src/types/infer/tests.rs:1840
Methodinherited_legacy_generic_context_inner
( db: &'db dyn Db, class: StaticClassLiteral<'db>, )
crates/ty_python_semantic/src/types/class/static_literal.rs:486
Functioninherited_property_setter
()
crates/ty_ide/src/call_hierarchy/outgoing_calls.rs:766
Methodinit_cache
(path: &Path)
crates/ruff/src/cache.rs:427
Functioninit_logging
(level: LogLevel)
crates/ruff_wasm/src/lib.rs:241
Functioninit_logging
(level: LogLevel)
crates/ty_wasm/src/lib.rs:82
Methodinitial
Seed a query cycle with a one-node graph representing `μa. a`.
crates/ty_python_semantic/src/types/recursive.rs:349
Functioninitial_background_synchronization_is_pending_until_completion
()
crates/ty_project/src/uv/environments.rs:1037
Functioninitialize_multiple_workspace_folders
()
crates/ty_server/tests/e2e/workspace_folders.rs:44
Functioninlay_hint_burst_does_not_block_responses
()
crates/ty_server/tests/e2e/inlay_hints.rs:364
Methodinlay_hints
(&self, file_id: &FileHandle, range: Range)
crates/ty_wasm/src/lib.rs:577
← previousnext →22,801–22,900 of 31,562, ranked by callers