Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/astral-sh/ruff
/ functions
Functions
31,766 in github.com/astral-sh/ruff
⨍
Functions
31,766
◇
Types & classes
7,128
↳
Endpoints
82
Function
function_with_one_argument_and_a_positional_separator
( argument: str, / )
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/function.py:421
Function
function_with_single_docstring
Single line docstring
crates/ruff_linter/resources/test/fixtures/flake8_quotes/docstring_singles_function.py:26
Function
function_with_single_docstring
Single line docstring
crates/ruff_linter/resources/test/fixtures/flake8_quotes/docstring_doubles_function.py:26
Function
function_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
Function
function_with_unpack_args_should_not_fail
Function with Unpack kwargs. Args: query: some arg
crates/ruff_linter/resources/test/fixtures/pydocstyle/D417.py:231
Function
function_with_variadic_generics
(*args: *tuple[int])
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/function.py:434
Function
functions_need_global_scope
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:1132
Function
functions_run_later
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:3139
Function
functools_file_contents
()
crates/ruff_db/src/vendored.rs:722
Function
functools_file_other_path
()
crates/ruff_db/src/vendored.rs:734
Method
functools_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
Function
future_annotations
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:677
Function
future_annotations_keep_runtime_typing_p310
()
crates/ruff_linter/src/rules/pyupgrade/mod.rs:343
Function
future_annotations_keep_runtime_typing_p37
()
crates/ruff_linter/src/rules/pyupgrade/mod.rs:327
Method
future_annotations_or_stub
Return `true` if `__future__`-style type annotations are enabled.
crates/ruff_python_semantic/src/model.rs:2330
Method
future_annotations_or_stub
(&self)
crates/ty_python_core/src/builder.rs:5859
Function
future_annotations_pep_585_p37
()
crates/ruff_linter/src/rules/pyupgrade/mod.rs:359
Function
future_annotations_pep_585_py310
()
crates/ruff_linter/src/rules/pyupgrade/mod.rs:370
Function
future_annotations_pep_604_p37
()
crates/ruff_linter/src/rules/pyupgrade/mod.rs:381
Function
future_annotations_pep_604_py310
()
crates/ruff_linter/src/rules/pyupgrade/mod.rs:397
Function
future_annotations_respects_non_strict_mode
()
crates/ruff_linter/src/rules/flake8_type_checking/mod.rs:125
Function
future_definitions_can_opt_out_of_shadowing
()
crates/ty_python_core/src/use_def/place_state.rs:856
Function
future_import
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:3198
Function
future_import_first
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:3211
Function
future_import_star
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:3256
Function
future_import_undefined
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:3245
Function
future_import_used
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:3231
Function
fuzz_bug
()
crates/ruff_linter/resources/test/fixtures/ruff/RUF027_0.py:85
Method
fuzzy
Create a new query pattern from a literal search string given.
crates/ty_ide/src/symbols.rs:35
Method
fuzzy
(typed: Option<&str>)
crates/ty_ide/src/completion.rs:1610
Function
fx
()
crates/ruff_linter/resources/test/fixtures/refurb/FURB154.py:65
Function
fy
()
crates/ruff_linter/resources/test/fixtures/refurb/FURB154.py:78
Function
fz
()
crates/ruff_linter/resources/test/fixtures/refurb/FURB154.py:84
Function
g
(a,)
crates/ruff_python_formatter/resources/test/fixtures/ruff/skip_magic_trailing_comma.py:26
Function
g
Statements that are only allowed in function bodies
crates/ruff_python_formatter/resources/test/fixtures/ruff/parentheses/opening_parentheses_comment_value.py:26
Function
g
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/empty_lines.py:56
Function
g
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/comments5.py:66
Function
g
Docstring.
crates/ruff_python_formatter/resources/test/fixtures/black/cases/function2.py:16
Function
g
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/python37.py:5
Function
g
()
crates/ruff_python_parser/resources/inline/ok/nested_async_comprehension_py310.py:6
Function
g
()
crates/ruff_python_parser/resources/inline/ok/iter_unpack_yield_py38.py:3
Function
g
()
crates/ruff_python_parser/resources/inline/ok/iter_unpack_yield_py37.py:3
Function
g
()
crates/ruff_python_parser/resources/inline/ok/nested_async_comprehension_py311.py:3
Function
g
(arg: (x := 1))
crates/ruff_python_parser/resources/inline/ok/valid_annotation_function_py313.py:3
Function
g
()
crates/ruff_python_parser/resources/inline/err/nested_async_comprehension_py310.py:3
Function
g
(arg: (x := 1))
crates/ruff_python_parser/resources/inline/err/invalid_annotation_function_py314.py:3
Function
g
(arg: (x := 1))
crates/ruff_python_parser/resources/inline/err/invalid_annotation_function.py:4
Function
g
()
crates/ruff_python_parser/resources/inline/err/iter_unpack_yield_py37.py:3
Function
g
()
crates/ty_python_semantic/resources/corpus/60_try_finally_codeobj.py:4
Function
g
()
crates/ty_python_semantic/resources/corpus/77_class__class__no_class.py:2
Function
g
()
crates/ruff_linter/resources/test/fixtures/refurb/FURB142.py:74
Function
g
()
crates/ruff_linter/resources/test/fixtures/refurb/FURB187.py:53
Function
g
(x: third_party.bar)
crates/ruff_linter/resources/test/fixtures/flake8_type_checking/TC001-3_future.py:9
Function
g
()
crates/ruff_linter/resources/test/fixtures/flake8_type_checking/TC001_future.py:8
Function
g
(a)
crates/ruff_linter/resources/test/fixtures/semantic_errors/global_parameter.py:4
Function
g
()
crates/ruff_linter/resources/test/fixtures/semantic_errors/async_comprehension_outside_async_function.py:8
Function
g
(a)
crates/ruff_linter/resources/test/fixtures/semantic_errors/nonlocal_parameter.py:4
Function
g
()
crates/ruff_linter/resources/test/fixtures/perflint/PERF401.py:243
Function
g
()
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT016.py:28
Function
g
Do nothing. Raises: OSError: If the OS errors.
crates/ruff_linter/resources/test/fixtures/pydoclint/DOC502_google.py:131
Function
g
(x)
crates/ruff_linter/resources/test/fixtures/pylint/too_many_statements_params.py:7
Function
g
()
crates/ruff_linter/resources/test/fixtures/pylint/misplaced_bare_raise.py:40
Function
g
(cond:bool)
crates/ruff_linter/resources/test/fixtures/pylint/len_as_condition.py:196
Function
g
(x)
crates/ruff_linter/resources/test/fixtures/pylint/too_many_branches_params.py:6
Function
g
()
crates/ruff_linter/resources/test/fixtures/pylint/nonlocal_without_binding.py:25
Function
g
()
crates/ruff_linter/resources/test/fixtures/pylint/stop_iteration_return.py:135
Function
g
()
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B012.py:50
Function
g
()
crates/ruff_linter/resources/test/fixtures/pyflakes/F901.py:5
Function
g
()
crates/ruff_linter/resources/test/fixtures/pyflakes/F722.py:9
Function
g
()
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP028_0.py:6
Function
g
(x: "Literal['abc']#")
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP037_0.py:115
Function
g
(ts: tuple[*Ts])
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP047_0.py:16
Function
g
(x: List[str])
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP006_4.py:9
Function
g
(x: __)
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP049_1.py:54
Method
g
()
crates/ruff_linter/resources/test/fixtures/pycodestyle/E30.py:1002
Method
g
()
crates/ruff_linter/resources/test/fixtures/pycodestyle/E30.py:1009
Method
g
(self, other: Self)
crates/ruff_linter/resources/test/fixtures/flake8_self/SLF001_1.py:60
Method
g
()
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP036_0.py:83
Function
g1
(a,)
crates/ruff_python_formatter/resources/test/fixtures/black/cases/type_expansion.py:5
Function
g2
(a,)
crates/ruff_python_formatter/resources/test/fixtures/black/cases/type_expansion.py:7
Function
g3
(a,)
crates/ruff_python_formatter/resources/test/fixtures/black/cases/type_expansion.py:9
Function
g4
(a,)
crates/ruff_python_formatter/resources/test/fixtures/black/cases/type_expansion.py:11
Function
g5
(a: int, b,)
crates/ruff_python_formatter/resources/test/fixtures/black/cases/type_expansion.py:13
Method
garply
Fetches the garply.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D421.py:40
Method
gen
(self)
crates/ruff_linter/resources/test/fixtures/pylint/return_in_init.py:16
Function
generate
()
crates/ruff_dev/src/generate_rules_table.rs:207
Function
generate
()
crates/ruff_dev/src/generate_default_rules.rs:11
Function
generate
()
crates/ruff_dev/src/generate_options.rs:11
Function
generate_corpus
Write the Python source for each requested seed to a directory.
python/py-fuzzer/fuzz.py:816
Function
generate_inline_tests
()
crates/ruff_python_parser/tests/generate_inline_tests.rs:24
Method
generator_expr
(self)
crates/ruff_python_ast/src/generated.rs:2027
Function
generator_expression_member
()
crates/ty_ide/src/completion.rs:4295
Function
generator_fields
(node: &ast::ExprGenerator)
crates/ruff_python_ast/src/comparable.rs:1204
Function
generator_function
Generate some strings
crates/ruff_linter/resources/test/fixtures/pydoclint/DOC201_numpy.py:203
Function
generator_function_2
Generate some strings
crates/ruff_linter/resources/test/fixtures/pydoclint/DOC201_numpy.py:211
Function
generator_function_3
Generate some strings
crates/ruff_linter/resources/test/fixtures/pydoclint/DOC201_numpy.py:219
Function
generator_function_4
Generate some strings
crates/ruff_linter/resources/test/fixtures/pydoclint/DOC201_numpy.py:227
Function
generator_in_class
()
crates/ruff_linter/resources/test/fixtures/pylint/stop_iteration_return.py:67
Method
generator_method
(self)
crates/ruff_linter/resources/test/fixtures/pylint/stop_iteration_return.py:69
Function
generator_with_bare_stop_iteration
()
crates/ruff_linter/resources/test/fixtures/pylint/stop_iteration_return.py:96
← previous
next →
21,701–21,800 of 31,766, ranked by callers