MCPcopy Create free account

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

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

Functionfunction_with_one_argument_and_a_positional_separator
( argument: str, / )
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/function.py:421
Functionfunction_with_single_docstring
Single line docstring
crates/ruff_linter/resources/test/fixtures/flake8_quotes/docstring_singles_function.py:26
Functionfunction_with_single_docstring
Single line docstring
crates/ruff_linter/resources/test/fixtures/flake8_quotes/docstring_doubles_function.py:26
Functionfunction_with_unpack_and_missing_arg_doc_should_fail
Function with Unpack kwargs but missing query arg documentation. Args: **kwargs: keyword arguments
crates/ruff_linter/resources/test/fixtures/pydocstyle/D417.py:238
Functionfunction_with_unpack_args_should_not_fail
Function with Unpack kwargs. Args: query: some arg
crates/ruff_linter/resources/test/fixtures/pydocstyle/D417.py:231
Functionfunction_with_variadic_generics
(*args: *tuple[int])
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/function.py:434
Functionfunctions_need_global_scope
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:1132
Functionfunctions_run_later
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:3139
Functionfunctools_file_contents
()
crates/ruff_db/src/vendored.rs:722
Functionfunctools_file_other_path
()
crates/ruff_db/src/vendored.rs:734
Methodfunctools_partial_matched_bindings
Builds matched bindings for the callable wrapped by `functools.partial(...)`. This handles the shared partial-specific preprocessing (callable valida
crates/ty_python_semantic/src/types/call/bind.rs:1224
Functionfuture_annotations
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:677
Functionfuture_annotations_keep_runtime_typing_p310
()
crates/ruff_linter/src/rules/pyupgrade/mod.rs:343
Functionfuture_annotations_keep_runtime_typing_p37
()
crates/ruff_linter/src/rules/pyupgrade/mod.rs:327
Methodfuture_annotations_or_stub
Return `true` if `__future__`-style type annotations are enabled.
crates/ruff_python_semantic/src/model.rs:2330
Methodfuture_annotations_or_stub
(&self)
crates/ty_python_core/src/builder.rs:5859
Functionfuture_annotations_pep_585_p37
()
crates/ruff_linter/src/rules/pyupgrade/mod.rs:359
Functionfuture_annotations_pep_585_py310
()
crates/ruff_linter/src/rules/pyupgrade/mod.rs:370
Functionfuture_annotations_pep_604_p37
()
crates/ruff_linter/src/rules/pyupgrade/mod.rs:381
Functionfuture_annotations_pep_604_py310
()
crates/ruff_linter/src/rules/pyupgrade/mod.rs:397
Functionfuture_annotations_respects_non_strict_mode
()
crates/ruff_linter/src/rules/flake8_type_checking/mod.rs:125
Functionfuture_definitions_can_opt_out_of_shadowing
()
crates/ty_python_core/src/use_def/place_state.rs:856
Functionfuture_import
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:3198
Functionfuture_import_first
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:3211
Functionfuture_import_star
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:3256
Functionfuture_import_undefined
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:3245
Functionfuture_import_used
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:3231
Functionfuzz_bug
()
crates/ruff_linter/resources/test/fixtures/ruff/RUF027_0.py:85
Methodfuzzy
Create a new query pattern from a literal search string given.
crates/ty_ide/src/symbols.rs:35
Methodfuzzy
(typed: Option<&str>)
crates/ty_ide/src/completion.rs:1610
Functionfx
()
crates/ruff_linter/resources/test/fixtures/refurb/FURB154.py:65
Functionfy
()
crates/ruff_linter/resources/test/fixtures/refurb/FURB154.py:78
Functionfz
()
crates/ruff_linter/resources/test/fixtures/refurb/FURB154.py:84
Functiong
(a,)
crates/ruff_python_formatter/resources/test/fixtures/ruff/skip_magic_trailing_comma.py:26
Functiong
Statements that are only allowed in function bodies
crates/ruff_python_formatter/resources/test/fixtures/ruff/parentheses/opening_parentheses_comment_value.py:26
Functiong
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/empty_lines.py:56
Functiong
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/comments5.py:66
Functiong
Docstring.
crates/ruff_python_formatter/resources/test/fixtures/black/cases/function2.py:16
Functiong
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/python37.py:5
Functiong
()
crates/ruff_python_parser/resources/inline/ok/nested_async_comprehension_py310.py:6
Functiong
()
crates/ruff_python_parser/resources/inline/ok/iter_unpack_yield_py38.py:3
Functiong
()
crates/ruff_python_parser/resources/inline/ok/iter_unpack_yield_py37.py:3
Functiong
()
crates/ruff_python_parser/resources/inline/ok/nested_async_comprehension_py311.py:3
Functiong
(arg: (x := 1))
crates/ruff_python_parser/resources/inline/ok/valid_annotation_function_py313.py:3
Functiong
()
crates/ruff_python_parser/resources/inline/err/nested_async_comprehension_py310.py:3
Functiong
(arg: (x := 1))
crates/ruff_python_parser/resources/inline/err/invalid_annotation_function_py314.py:3
Functiong
(arg: (x := 1))
crates/ruff_python_parser/resources/inline/err/invalid_annotation_function.py:4
Functiong
()
crates/ruff_python_parser/resources/inline/err/iter_unpack_yield_py37.py:3
Functiong
()
crates/ty_python_semantic/resources/corpus/60_try_finally_codeobj.py:4
Functiong
()
crates/ty_python_semantic/resources/corpus/77_class__class__no_class.py:2
Functiong
()
crates/ruff_linter/resources/test/fixtures/refurb/FURB142.py:74
Functiong
()
crates/ruff_linter/resources/test/fixtures/refurb/FURB187.py:53
Functiong
(x: third_party.bar)
crates/ruff_linter/resources/test/fixtures/flake8_type_checking/TC001-3_future.py:9
Functiong
()
crates/ruff_linter/resources/test/fixtures/flake8_type_checking/TC001_future.py:8
Functiong
(a)
crates/ruff_linter/resources/test/fixtures/semantic_errors/global_parameter.py:4
Functiong
()
crates/ruff_linter/resources/test/fixtures/semantic_errors/async_comprehension_outside_async_function.py:8
Functiong
(a)
crates/ruff_linter/resources/test/fixtures/semantic_errors/nonlocal_parameter.py:4
Functiong
()
crates/ruff_linter/resources/test/fixtures/perflint/PERF401.py:243
Functiong
()
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT016.py:28
Functiong
Do nothing. Raises: OSError: If the OS errors.
crates/ruff_linter/resources/test/fixtures/pydoclint/DOC502_google.py:131
Functiong
(x)
crates/ruff_linter/resources/test/fixtures/pylint/too_many_statements_params.py:7
Functiong
()
crates/ruff_linter/resources/test/fixtures/pylint/misplaced_bare_raise.py:40
Functiong
(cond:bool)
crates/ruff_linter/resources/test/fixtures/pylint/len_as_condition.py:196
Functiong
(x)
crates/ruff_linter/resources/test/fixtures/pylint/too_many_branches_params.py:6
Functiong
()
crates/ruff_linter/resources/test/fixtures/pylint/nonlocal_without_binding.py:25
Functiong
()
crates/ruff_linter/resources/test/fixtures/pylint/stop_iteration_return.py:135
Functiong
()
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B012.py:50
Functiong
()
crates/ruff_linter/resources/test/fixtures/pyflakes/F901.py:5
Functiong
()
crates/ruff_linter/resources/test/fixtures/pyflakes/F722.py:9
Functiong
()
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP028_0.py:6
Functiong
(x: "Literal['abc']#")
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP037_0.py:115
Functiong
(ts: tuple[*Ts])
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP047_0.py:16
Functiong
(x: List[str])
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP006_4.py:9
Functiong
(x: __)
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP049_1.py:54
Methodg
()
crates/ruff_linter/resources/test/fixtures/pycodestyle/E30.py:1002
Methodg
()
crates/ruff_linter/resources/test/fixtures/pycodestyle/E30.py:1009
Methodg
(self, other: Self)
crates/ruff_linter/resources/test/fixtures/flake8_self/SLF001_1.py:60
Methodg
()
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP036_0.py:83
Functiong1
(a,)
crates/ruff_python_formatter/resources/test/fixtures/black/cases/type_expansion.py:5
Functiong2
(a,)
crates/ruff_python_formatter/resources/test/fixtures/black/cases/type_expansion.py:7
Functiong3
(a,)
crates/ruff_python_formatter/resources/test/fixtures/black/cases/type_expansion.py:9
Functiong4
(a,)
crates/ruff_python_formatter/resources/test/fixtures/black/cases/type_expansion.py:11
Functiong5
(a: int, b,)
crates/ruff_python_formatter/resources/test/fixtures/black/cases/type_expansion.py:13
Methodgarply
Fetches the garply.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D421.py:40
Methodgen
(self)
crates/ruff_linter/resources/test/fixtures/pylint/return_in_init.py:16
Functiongenerate
()
crates/ruff_dev/src/generate_rules_table.rs:207
Functiongenerate
()
crates/ruff_dev/src/generate_default_rules.rs:11
Functiongenerate
()
crates/ruff_dev/src/generate_options.rs:11
Functiongenerate_corpus
Write the Python source for each requested seed to a directory.
python/py-fuzzer/fuzz.py:816
Functiongenerate_inline_tests
()
crates/ruff_python_parser/tests/generate_inline_tests.rs:24
Methodgenerator_expr
(self)
crates/ruff_python_ast/src/generated.rs:2027
Functiongenerator_expression_member
()
crates/ty_ide/src/completion.rs:4295
Functiongenerator_fields
(node: &ast::ExprGenerator)
crates/ruff_python_ast/src/comparable.rs:1204
Functiongenerator_function
Generate some strings
crates/ruff_linter/resources/test/fixtures/pydoclint/DOC201_numpy.py:203
Functiongenerator_function_2
Generate some strings
crates/ruff_linter/resources/test/fixtures/pydoclint/DOC201_numpy.py:211
Functiongenerator_function_3
Generate some strings
crates/ruff_linter/resources/test/fixtures/pydoclint/DOC201_numpy.py:219
Functiongenerator_function_4
Generate some strings
crates/ruff_linter/resources/test/fixtures/pydoclint/DOC201_numpy.py:227
Functiongenerator_in_class
()
crates/ruff_linter/resources/test/fixtures/pylint/stop_iteration_return.py:67
Methodgenerator_method
(self)
crates/ruff_linter/resources/test/fixtures/pylint/stop_iteration_return.py:69
Functiongenerator_with_bare_stop_iteration
()
crates/ruff_linter/resources/test/fixtures/pylint/stop_iteration_return.py:96
← previousnext →21,701–21,800 of 31,766, ranked by callers