MCPcopy Create free account

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

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

Functionnumpy
(bencher: Bencher)
crates/ruff_benchmark/benches/ty_walltime.rs:256
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:10567
Functionobject_fail
()
crates/ruff_annotate_snippets/tests/rustc_tests.rs:2191
Functionobvious_typos_in_directives_are_detected
()
crates/mdtest/src/parser.rs:2362
Methodof
(label: T)
crates/ruff_formatter/src/format_element/tag.rs:386
Methodof
(name: &'static str)
crates/ruff_db/src/diagnostic/mod.rs:910
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:2022
Methodof_literal
Return the builtin comparison implementation used by a literal value.
crates/ty_python_semantic/src/types/equality.rs:2001
Methodof_node
( db: &'db dyn Db, node: &NodeWithScopeKind, index: &SemanticIndex<'db>, )
crates/ty_python_semantic/src/types/generics.rs:391
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:1904
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:1921
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
Functionok_fully_typed_2
()
crates/ruff_linter/resources/test/fixtures/flake8_annotations/ignore_fully_untyped.py:16
Functionok_fully_typed_3
(a: int, *args: str, **kwargs: str)
crates/ruff_linter/resources/test/fixtures/flake8_annotations/ignore_fully_untyped.py:20
Functionok_fully_untyped_1
(a, b)
crates/ruff_linter/resources/test/fixtures/flake8_annotations/ignore_fully_untyped.py:4
Functionok_fully_untyped_2
()
crates/ruff_linter/resources/test/fixtures/flake8_annotations/ignore_fully_untyped.py:8
Functionok_kwonly
(first, *, default="kwonly")
crates/ruff_linter/resources/test/fixtures/flake8_bandit/S107.py:17
Functionok_no_parameters
()
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT020.py:5
Functionok_no_scope
()
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT003.py:5
Functionok_other_scope
()
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT003.py:10
Functionok_posonly
(first, /, pos, default="posonly")
crates/ruff_linter/resources/test/fixtures/flake8_bandit/S107.py:9
Functionok_since_nested
()
crates/ruff_linter/resources/test/fixtures/pydocstyle/D.py:75
Methodok_untyped_method
(self)
crates/ruff_linter/resources/test/fixtures/flake8_annotations/ignore_fully_untyped.py:40
Methodok_untyped_method_with_arg
(self, a)
crates/ruff_linter/resources/test/fixtures/flake8_annotations/ignore_fully_untyped.py:37
Functionok_with_parameters_regardless_of_config
()
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT023.py:10
Functionok_without_parens
()
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT020.py:10
Functionokay
(__x__: int)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI063.py:11
Functionokay
(foo: ImmutableTypeB = [])
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B006_extended.py:5
Functionokay
(db=fastapi.Depends(get_db))
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B008_extended.py:8
Methodokay1
(self, x: int, __y: int)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI063.py:33
Methodokay2
(x: int, __y_: int)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI063.py:36
Methodokay3
(__self__, __x__: int, __y: str)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI063.py:39
Methodokay4
(self, /)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI063.py:40
Methodokay5
(self, x: int, /)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI063.py:41
Methodokay6
(__self, /)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI063.py:42
Functionokay_function
()
crates/ruff_linter/resources/test/fixtures/pylint/await_outside_async.py:22
Functionokay_steps
()
crates/ruff_linter/resources/test/fixtures/refurb/FURB188.py:156
Functionold_209
One liner. Multi-line comments. OK to have extra blank line
crates/ruff_linter/resources/test/fixtures/pydocstyle/D.py:391
Methodold_passes
(self)
scripts/conformance.py:440
Functionomits_classes_without_collected_tests
()
crates/ty_ide/src/pytest_test_discovery.rs:265
Functionomits_package_and_file_renames_with_the_same_import_name
()
crates/ty_ide/src/will_rename.rs:2303
Functionomits_package_renames_with_a_shadowed_destination
()
crates/ty_ide/src/will_rename.rs:2291
Functionomits_renames_of_one_portion_of_a_namespace_package
()
crates/ty_ide/src/will_rename.rs:2325
Functionomits_renames_of_package_initializers
()
crates/ty_ide/src/will_rename.rs:2351
Functionomits_renames_that_change_the_module_parent
()
crates/ty_ide/src/will_rename.rs:2340
Functionomits_renames_whose_destination_is_shadowed_by_a_sibling_package
()
crates/ty_ide/src/will_rename.rs:2358
Methodomitting_trailers
(self)
crates/ruff_python_formatter/resources/test/fixtures/black/cases/composition.py:47
Methodomitting_trailers
(self)
crates/ruff_python_formatter/resources/test/fixtures/black/cases/composition_no_trailing_comma.py:47
MethodonAdd
(name: string)
playground/ty/src/Editor/Files.tsx:13
MethodonAddFile
(session: PlaygroundSession, name: string)
playground/ty/src/Editor/Chrome.tsx:50
MethodonClearVendoredFile
()
playground/ty/src/Editor/Chrome.tsx:60
MethodonClick
()
playground/shared/src/SideBar.tsx:28
MethodonClicked
()
playground/ty/src/Editor/Files.tsx:133
MethodonGoTo
(location: DiagnosticDetailLocation)
playground/ty/src/Editor/Diagnostics.tsx:26
MethodonGoTo
(line: number, column: number)
playground/ruff/src/Editor/Diagnostics.tsx:17
MethodonRemove
(id: FileId)
playground/ty/src/Editor/Files.tsx:15
MethodonRemoveFile
(session: PlaygroundSession, file: FileId)
playground/ty/src/Editor/Chrome.tsx:54
MethodonRename
(id: FileId, newName: string)
playground/ty/src/Editor/Files.tsx:19
MethodonRenameFile
(session: PlaygroundSession, file: FileId, newName: string)
playground/ty/src/Editor/Chrome.tsx:52
MethodonRenamed
(name: string)
playground/ty/src/Editor/Files.tsx:135
MethodonRun
()
playground/ty/src/Editor/Chrome.tsx:48
MethodonRun
()
playground/ty/src/Editor/SecondaryPanel.tsx:18
MethodonSelect
(id: FileId)
playground/ty/src/Editor/Files.tsx:17
MethodonSelectFile
(id: FileId)
playground/ty/src/Editor/Chrome.tsx:56
MethodonSelectVendoredFile
(handle: FileHandle)
playground/ty/src/Editor/Chrome.tsx:58
MethodonSelected
(tool: SecondaryTool)
playground/ty/src/Editor/SecondarySideBar.tsx:7
MethodonSelected
(tool: SecondaryTool)
playground/ruff/src/Editor/SecondarySideBar.tsx:6
Functionon_and_off_with_comment_only_blocks
Test that fmt:off/on works with multiple directives and comment-only blocks.
crates/ruff_python_formatter/resources/test/fixtures/black/cases/fmtonoff.py:108
Functionon_did_change
()
crates/ty_server/tests/e2e/publish_diagnostics.rs:201
← previousnext →26,201–26,300 of 31,766, ranked by callers