MCPcopy Create free account

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

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

Methodin_sync_comprehension
(&self)
crates/ty_python_core/src/builder.rs:5953
Methodin_sync_comprehension
(&self)
crates/ruff_linter/src/checkers/ast/mod.rs:962
Methodin_type_checking_block
Return `true` if the context is in a type-checking block.
crates/ruff_python_semantic/src/reference.rs:85
Functionin_type_def
()
crates/ruff_linter/resources/test/fixtures/ruff/RUF027_0.py:78
Methodin_type_definition
Return `true` if the context is in any kind of type definition.
crates/ruff_python_semantic/src/reference.rs:80
Methodin_typing_only_annotation
Return `true` if the context is in a typing-only type annotation.
crates/ruff_python_semantic/src/reference.rs:56
Methodin_yield_allowed_context
(&self)
crates/ty_python_core/src/builder.rs:5941
Methodin_yield_allowed_context
(&self)
crates/ruff_linter/src/checkers/ast/mod.rs:951
Functionincluded_documentation_preserves_indentation
()
crates/ty_python_semantic/src/lint.rs:317
Methodincludes
Returns `true` if a parameter with the given name is included in this [`Parameters`].
crates/ruff_python_ast/src/nodes.rs:3391
Functionincludes_matching_version_pypy_without_wrong_version_cpython_when_unknown
()
crates/ty_site_packages/src/lib.rs:3910
Methodincoming_calls
(&self)
crates/ty_ide/src/call_hierarchy/incoming_calls.rs:520
Functionincoming_calls_multi_file
()
crates/ty_server/tests/e2e/call_hierarchy.rs:173
Functionincomplete_except_handler_uses_enclosing_scope
()
crates/ty_ide/src/completion.rs:6493
Functionincomplete_inference_preserves_complete_siblings
()
crates/ty_python_semantic/src/types/generics.rs:5277
Functionincomplete_solution_discards_the_projection
()
crates/ty_python_semantic/src/types/constraints/projection/tests.rs:775
Functioninconsistent_indent_byte_size
There's a non-breaking space (2-bytes) after 3 spaces (https://github.com/astral-sh/ruff/issues/9080).     Returns:
crates/ruff_linter/resources/test/fixtures/pydocstyle/D.py:720
Functionincorrect_ArithmeticError
(some_arg)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY004.py:40
Functionincorrect_AssertionError
(some_arg)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY004.py:47
Functionincorrect_AttributeError
(some_arg)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY004.py:54
Functionincorrect_BufferError
(some_arg)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY004.py:61
Functionincorrect_EOFError
(some_arg)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY004.py:68
Functionincorrect_ImportError
(some_arg)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY004.py:75
Functionincorrect_LookupError
(some_arg)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY004.py:82
Functionincorrect_MemoryError
(some_arg)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY004.py:89
Functionincorrect_NameError
(some_arg)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY004.py:100
Functionincorrect_ReferenceError
(some_arg)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY004.py:107
Functionincorrect_RuntimeError
(some_arg)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY004.py:114
Functionincorrect_SyntaxError
(some_arg)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY004.py:121
Functionincorrect_SystemError
(some_arg)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY004.py:128
Functionincorrect_ValueError
(some_arg)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY004.py:135
Functionincorrect_and_operator_callable
(arg1, arg2)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY004.py:177
Functionincorrect_and_operator_isinstance
(arg1, arg2)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY004.py:149
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:143
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:250
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:197
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:1892
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:2887
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:3354
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:713
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
← previousnext →22,901–23,000 of 31,766, ranked by callers