MCPcopy Create free account

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

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

Functionnot_deferred
()
crates/ty_python_semantic/src/types/signatures.rs:6936
Functionnot_found_self_type_differs_shadowing_trait_item
()
crates/ruff_annotate_snippets/tests/rustc_tests.rs:4185
Methodnot_good
(cls, __foo: int)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI063.py:30
Methodnot_in_formatting_range
( self)
crates/ruff_python_formatter/resources/test/fixtures/ruff/range_formatting/fmt_on_off.py:10
Methodnot_iter
(self)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI045.py:15
Methodnot_iter
(self)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI045.py:23
Methodnot_iter
(self)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI045.py:31
Methodnot_iter
(self)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI045.py:39
Functionnot_literal_string
()
crates/ty_python_semantic/src/types/infer/tests.rs:283
Functionnot_ok0
()
crates/ruff_linter/resources/test/fixtures/pylint/collapsible_else_if.py:34
Functionnot_ok1
()
crates/ruff_linter/resources/test/fixtures/pylint/collapsible_else_if.py:42
Functionnot_ok1_with_comments
()
crates/ruff_linter/resources/test/fixtures/pylint/collapsible_else_if.py:52
Functionnot_ok1_with_deep_indented_comments
()
crates/ruff_linter/resources/test/fixtures/pylint/collapsible_else_if.py:114
Functionnot_ok1_with_else_line_and_inner_comments
()
crates/ruff_linter/resources/test/fixtures/pylint/collapsible_else_if.py:159
Functionnot_ok1_with_else_line_comment
(a, b)
crates/ruff_linter/resources/test/fixtures/pylint/collapsible_else_if.py:149
Functionnot_ok1_with_mixed_indented_comments
()
crates/ruff_linter/resources/test/fixtures/pylint/collapsible_else_if.py:136
Functionnot_ok1_with_multiline_comments
()
crates/ruff_linter/resources/test/fixtures/pylint/collapsible_else_if.py:102
Functionnot_ok1_with_shallow_indented_comments
()
crates/ruff_linter/resources/test/fixtures/pylint/collapsible_else_if.py:125
Functionnot_ok2
()
crates/ruff_linter/resources/test/fixtures/pylint/collapsible_else_if.py:64
Functionnot_ok3
()
crates/ruff_linter/resources/test/fixtures/pylint/collapsible_else_if.py:76
Functionnot_ok4
()
crates/ruff_linter/resources/test/fixtures/pylint/collapsible_else_if.py:84
Functionnot_ok5
()
crates/ruff_linter/resources/test/fixtures/pylint/collapsible_else_if.py:93
Functionnot_one
(x)
crates/ruff_linter/resources/test/fixtures/refurb/FURB113.py:165
Functionnot_repeatable
()
crates/ruff_annotate_snippets/tests/rustc_tests.rs:4077
Functionnot_two
(x: C)
crates/ruff_linter/resources/test/fixtures/refurb/FURB113.py:170
Functionnot_used_in_nested_scope
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:2528
Functionnot_warnings_dot_deprecated
( msg: str )
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI053.py:68
Functionnotebook
()
crates/ty_server/tests/e2e/rename.rs:38
Functionnotebook
()
crates/ruff_db/src/source.rs:310
Functionnotebook_basic
()
crates/ruff/tests/analyze_graph.rs:963
Methodnotebook_document_keys
(&self)
crates/ty_server/src/session/index.rs:62
Methodnotebook_document_uris
Iterates over the LSP URIs for all open notebook documents. These URIs are valid file paths.
crates/ruff_server/src/session.rs:124
Methodnotebook_index
(&self, file: &UnifiedFile)
crates/ruff_linter/src/message/mod.rs:147
Functionnotebook_output
()
crates/ruff_db/src/diagnostic/render/concise.rs:201
Functionnotebook_output
()
crates/ruff_db/src/diagnostic/render/json_lines.rs:54
Functionnotebook_output
()
crates/ruff_db/src/diagnostic/render/full.rs:781
Functionnotebook_output
()
crates/ruff_db/src/diagnostic/render/json.rs:272
Functionnotebook_output_multiple_annotations
()
crates/ruff_db/src/diagnostic/render/full.rs:835
Functionnotebook_output_with_diff
()
crates/ruff_db/src/diagnostic/render/full.rs:908
Functionnotebook_output_with_diff_spanning_cells
()
crates/ruff_db/src/diagnostic/render/full.rs:917
Methodnotebook_path
(&self)
crates/ty_server/src/session.rs:1990
Functionnotebook_test
()
crates/mdtest/src/parser.rs:1259
Functionnotebook_with_magic
()
crates/ruff/tests/analyze_graph.rs:1138
Functionnotebook_without_ipynb_extension
()
crates/ruff_server/tests/e2e/notebook.rs:375
Functionnotes_before_raises_unordered
Summary. Notes: Some notes. Raises: ValueError
crates/ruff_linter/resources/test/fixtures/pydocstyle/D420_google.py:113
Functionnotes_before_warns
Summary. Notes ----- Some notes. Warns ----- UserWarning
crates/ruff_linter/resources/test/fixtures/pydocstyle/D420_numpy.py:110
Methodnothing
Creates a local task that does nothing.
crates/ty_server/src/server/schedule/task.rs:92
Methodnothing
Creates a local task that does nothing.
crates/ruff_server/src/server/schedule/task.rs:90
Functionnotice
()
crates/ruff_linter/src/rules/flake8_copyright/mod.rs:13
Functionnotice_with_c
()
crates/ruff_linter/src/rules/flake8_copyright/mod.rs:27
Functionnotice_with_caps
()
crates/ruff_linter/src/rules/flake8_copyright/mod.rs:55
Functionnotice_with_comma
()
crates/ruff_linter/src/rules/flake8_copyright/mod.rs:83
Functionnotice_with_range
()
crates/ruff_linter/src/rules/flake8_copyright/mod.rs:69
Functionnotice_with_unicode_c
()
crates/ruff_linter/src/rules/flake8_copyright/mod.rs:41
Methodnumber_literal_expr
(self)
crates/ruff_python_ast/src/generated.rs:2397
Functionnumber_literal_fields
(node: &ast::ExprNumberLiteral)
crates/ruff_python_ast/src/comparable.rs:1318
Functionnumber_values
()
crates/ruff_python_parser/src/parser/tests.rs:89
Functionnumeric_tower_display
()
crates/ty_python_semantic/src/types/display.rs:4136
Functionnumpy_section_order
(kind: SectionKind)
crates/ruff_linter/src/rules/pydocstyle/rules/sections.rs:2207
Functiono
()
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/return_type_parameters.py:157
Functiono
()
crates/ruff_python_parser/resources/inline/ok/valid_annotation_function_py313.py:8
Functiono
()
crates/ruff_python_parser/resources/inline/err/invalid_annotation_function_py314.py:8
Methodobject
()
crates/ty_python_semantic/src/types/instance.rs:49
Methodobject
Return a `ClassBase` representing the class `builtins.object`
crates/ty_python_semantic/src/types/class_base.rs:89
Functionobject_attr_ignores_all
()
crates/ty_ide/src/completion.rs:10489
Functionobject_fail
()
crates/ruff_annotate_snippets/tests/rustc_tests.rs:2191
Functionobvious_typos_in_directives_are_detected
()
crates/mdtest/src/parser.rs:2365
Methodof
(label: T)
crates/ruff_formatter/src/format_element/tag.rs:386
Methodof
(name: &'static str)
crates/ruff_db/src/diagnostic/mod.rs:939
Methodof
(text: T)
crates/ruff_text_size/src/size.rs:66
Methodof
()
crates/ruff_options_metadata/src/lib.rs:103
Methodof
(definition: &'static LintMetadata)
crates/ty_python_semantic/src/lint.rs:334
Methodof
Resolves the instance read and descriptor write types of a class member.
crates/ty_python_semantic/src/types/variance.rs:41
Methodof
(db: &'db dyn Db, env: &ProgramEnvironment<'db>, ty: Type<'db>)
crates/ty_python_semantic/src/types/list_members.rs:168
Methodof
(value: &str)
crates/ruff_linter/src/rules/ruff/rules/sequence_sorting.rs:111
Methodof_class
Find methods that remain abstract after applying overrides in MRO order.
crates/ty_python_semantic/src/types/abstract_methods.rs:34
Methodof_dynamic_class
Attempt to resolve the MRO of a dynamic class (created via `type(name, bases, dict)`). Uses C3 linearization when possible, returning an error if the
crates/ty_python_semantic/src/types/mro.rs:360
Methodof_dynamic_enum
Compute the MRO of a dynamic enum (created via the functional `Enum()`/`StrEnum()` API). Uses C3 linearization to correctly handle the optional `type
crates/ty_python_semantic/src/types/mro.rs:450
Methodof_elements
(elements: &'a [ast::Expr], sorting_style: SortingStyle)
crates/ruff_linter/src/rules/ruff/rules/sequence_sorting.rs:265
Methodof_instance
Return the builtin comparison implementation inherited by an instance. Returns `None` when lookup finds custom comparison behavior.
crates/ty_python_semantic/src/types/equality.rs:1973
Methodof_literal
Return the builtin comparison implementation used by a literal value.
crates/ty_python_semantic/src/types/equality.rs:1952
Methodof_node
( db: &'db dyn Db, node: &NodeWithScopeKind, index: &SemanticIndex<'db>, )
crates/ty_python_semantic/src/types/generics.rs:393
Methodof_type
Determine the builtin comparison implementation inherited by `ty`. Returns `None` when dunder lookup finds custom or conflicting comparison behavior.
crates/ty_python_semantic/src/types/equality.rs:1875
Methodof_type_with_policy
Determine comparison semantics, optionally assuming that subclasses do not override the inherited comparison method.
crates/ty_python_semantic/src/types/equality.rs:1892
Functionoff_and_on_without_data
Test that comment-only fmt:off/on blocks preserve formatting.
crates/ruff_python_formatter/resources/test/fixtures/black/cases/fmtonoff.py:93
Functionok
(first, default="default")
crates/ruff_linter/resources/test/fixtures/flake8_bandit/S107.py:1
Functionok
()
crates/ruff_linter/resources/test/fixtures/pylint/compare_to_empty_string.py:17
Functionok
()
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP033_0.py:22
Functionok
()
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP011.py:28
Functionok
()
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP033_1.py:22
Methodok
(this)
crates/ruff_linter/resources/test/fixtures/flake8_self/SLF001_custom_decorators.py:10
Functionok0
Should not trigger on elif
crates/ruff_linter/resources/test/fixtures/pylint/collapsible_else_if.py:6
Functionok1
If the orelse has more than 1 item in it, shouldn't trigger
crates/ruff_linter/resources/test/fixtures/pylint/collapsible_else_if.py:14
Functionok2
If the orelse has more than 1 item in it, shouldn't trigger
crates/ruff_linter/resources/test/fixtures/pylint/collapsible_else_if.py:24
Functionok_all
(first, /, pos, default="posonly", *, kwonly="kwonly")
crates/ruff_linter/resources/test/fixtures/flake8_bandit/S107.py:25
Methodok_classmethod
(this)
crates/ruff_linter/resources/test/fixtures/flake8_self/SLF001_custom_decorators.py:14
Functionok_complex_logic
()
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT022.py:5
Functionok_due_to_missing_import
()
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT023.py:2
Functionok_empty
(first, password="")
crates/ruff_linter/resources/test/fixtures/flake8_bandit/S107.py:33
Functionok_fully_typed_1
(a: int, b: int)
crates/ruff_linter/resources/test/fixtures/flake8_annotations/ignore_fully_untyped.py:12
← previousnext →26,001–26,100 of 31,562, ranked by callers