MCPcopy Create free account

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

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

Functionf1
Here's a docstring that's also over the limit.
crates/ruff_linter/resources/test/fixtures/pycodestyle/W505.py:5
Functionf1
()
crates/ruff_linter/resources/test/fixtures/pycodestyle/E741.py:24
Functionf1
Here's a ß9💣2ℝing that's also over theß9💣2ℝ.
crates/ruff_linter/resources/test/fixtures/pycodestyle/W505_utf_8.py:5
Functionf1
(x=([],))
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B006_9.py:1
Methodf1
(self, arg: None | int | None | float = None)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI041_2.py:7
Methodf1
(self, arg: None | int | None | float = None)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI041_1.py:99
Methodf1
(self, arg: "None | int | None | float" = None)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI041_3.py:99
Functionf10
( arg: ( int | # comment float | # another complex ) )
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI041_1.py:66
Functionf10
( arg: """ int | # comment float | # another complex """ )
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI041_3.py:66
Functionf11
( a, # positional only comment, leading /, # positional only comment, trailing b, )
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/function.py:149
Functionf11
(*, x: str = "x")
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI011.py:12
Functionf11
(*, x="x")
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI014.py:8
Functionf12
( a=1, # positional only comment, leading /, # positional only comment, trailing b=2, )
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/function.py:157
Functionf12
( x, y: str = os.pathsep, # OK )
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI011.py:8
Functionf12
( x, y=os.pathsep, # OK )
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI014.py:1
Functionf13
( a, # positional only comment, leading /, # positional only comment, trailing )
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/function.py:165
Functionf13
( x: list[str] = [ # OK "foo", "bar", "baz", ] )
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI011.py:13
Functionf13
( x=[ # OK "foo", "bar", "baz", ] )
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI014.py:12
Functionf14
( x: tuple[str, ...] = ( # OK "foo", "bar", "baz", ) )
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI011.py:20
Functionf14
( x=( # OK "foo", "bar", "baz", ) )
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI014.py:22
Functionf141
( x: list[ int ] = [ # OK *range(10) ], )
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI011.py:68
Functionf141
( x=[*range(10)], # OK )
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI014.py:82
Functionf142
( x: list[ int ] = list( # OK range(10) ), )
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI011.py:75
Functionf142
( x=list(range(10)), # OK )
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI014.py:88
Functionf15
( x: set[str] = { # OK "foo", "bar", "baz", } )
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI011.py:27
Functionf15
( x={ # OK "foo", "bar", "baz", } )
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI014.py:32
Functionf151
(x: dict[int, int] = {1: 2})
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI011.py:34
Functionf151
(x={1: 2})
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI014.py:42
Functionf152
( x: dict[ int, int ] = { # OK 1: 2, **{3: 4}, } )
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI011.py:35
Functionf152
( x={ # OK 1: 2, **{3: 4}, } )
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI014.py:46
Functionf153
( x: list[ int ] = [ # OK 1, 2, 3, 4, 5, 6,
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI011.py:43
Functionf153
( x=[ # OK 1, 2, 3, 4, 5, 6, 7, 8,
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI014.py:55
Functionf154
( x: tuple[ str, tuple[str, ...] ] = ( # OK "foo", ("bar", "baz"), ) )
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI011.py:60
Functionf154
( x=( # OK "foo", ("bar", "baz"), ) )
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI014.py:73
Functionf16
( x: frozenset[ bytes ] = frozenset( # OK {b"foo", b"bar", b"baz"} ) )
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI011.py:82
Functionf16
(x=frozenset({b"foo", b"bar", b"baz"}))
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI014.py:94
Functionf17
( x: str = "foo" # OK + "bar", )
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI011.py:89
Functionf17
( x="foo" + "bar", # OK )
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI014.py:98
Functionf18
( x: str = b"foo" # OK + b"bar", )
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI011.py:93
Functionf18
( x=b"foo" + b"bar", # OK )
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI014.py:104
Functionf19
( x: object = "foo" # OK + 4, )
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI011.py:97
Functionf19
( x="foo" + 4, # OK )
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI014.py:110
Functionf2
()
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/function.py:129
Functionf2
(a,b,)
crates/ruff_python_formatter/resources/test/fixtures/black/cases/function_trailing_comma.py:5
Functionf2
(a: int, b,)
crates/ruff_python_formatter/resources/test/fixtures/black/cases/type_expansion.py:3
Functionf2
(*args: *b, arg1)
crates/ruff_python_formatter/resources/test/fixtures/black/cases/pep_646.py:176
Functionf2
()
crates/ruff_python_parser/resources/inline/err/import_from_star.py:5
Functionf2
()
crates/ruff_linter/resources/test/fixtures/refurb/FURB154.py:22
Functionf2
()
crates/ruff_linter/resources/test/fixtures/semantic_errors/annotated_global.py:13
Functionf2
(arg1: int, /, arg2: int | int | float)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI041_1.py:31
Functionf2
(a: "Uno[int, float, Foo]")
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI041_4.py:5
Functionf2
(arg1: "int", /, arg2: "int | int | float")
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI041_3.py:31
Functionf2
(x: str = "51 character stringgggggggggggggggggggggggggggggggg")
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI053.py:11
Functionf2
()
crates/ruff_linter/resources/test/fixtures/fastapi/FAST003.py:242
Functionf2
Here's a multi-line docstring. It's over the limit on this line, which isn't the first line in the docstring.
crates/ruff_linter/resources/test/fixtures/pycodestyle/W505.py:21
Functionf2
()
crates/ruff_linter/resources/test/fixtures/pycodestyle/E741.py:29
Functionf2
Here's a multi-line ß9💣2ℝing. It's over theß9💣2ℝ on this line, which isn't the first line in the ß9💣2ℝing.
crates/ruff_linter/resources/test/fixtures/pycodestyle/W505_utf_8.py:21
Functionf2
(x=(x for x in "x"))
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B006_9.py:5
Methodf2
(self)
crates/ruff_python_formatter/resources/test/fixtures/black/cases/dummy_implementations.py:109
Methodf2
(self, arg: None | int | None | float = None)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI041_1.py:104
Methodf2
(self, arg: "None | int | None | float" = None)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI041_3.py:104
Functionf20
( x: int = 5 + 5, # OK )
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI011.py:101
Functionf20
( x=5 + 5, # OK )
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI014.py:116
Functionf21
( a=1, # keyword only comment, leading *, # keyword only comment, trailing b=2, )
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/function.py:172
Functionf21
( x: complex = 3j - 3j, # OK )
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI011.py:105
Functionf21
( x=3j - 3j, # OK )
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI014.py:122
Functionf22
( a, # keyword only comment, leading *, # keyword only comment, trailing b, )
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/function.py:180
Functionf22
( x: complex = -42.5j # OK + 4.3j, )
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI011.py:109
Functionf22
( x=-42.5j + 4.3j, # OK )
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI014.py:128
Functionf23
( a, # keyword only comment, leading *args, # keyword only comment, trailing b, )
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/function.py:188
Functionf23
( x: bool = True, # OK )
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI011.py:113
Functionf24
( # keyword only comment, leading *, # keyword only comment, trailing a )
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/function.py:196
Functionf24
( x: float = 3.14, # OK )
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI011.py:116
Functionf25
( x: float = -3.14, # OK )
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI011.py:119
Functionf26
( x: complex = -3.14j, # OK )
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI011.py:122
Functionf27
( x: complex = -3 - 3.14j, # OK )
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI011.py:125
Functionf28
( x: float = math.tau, # OK )
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI011.py:128
Functionf29
( x: float = math.inf, # OK )
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI011.py:131
Functionf3
(*args: *b, arg1: int)
crates/ruff_python_formatter/resources/test/fixtures/black/cases/pep_646.py:183
Functionf3
()
crates/ruff_python_parser/resources/inline/err/import_from_star.py:7
Functionf3
()
crates/ruff_linter/resources/test/fixtures/refurb/FURB154.py:8
Functionf3
()
crates/ruff_linter/resources/test/fixtures/semantic_errors/annotated_global.py:18
Functionf3
(arg1: int, *args: Union[int | int | float])
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI041_1.py:35
Functionf3
(a: """Uno[int, float, Foo]""")
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI041_4.py:6
Functionf3
(arg1: "int", *args: "Union[int | int | float]")
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI041_3.py:35
Functionf3
(x: str = "50 character stringggggggggggggggggggggggggggggg\U0001f600")
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI053.py:15
Functionf3
()
crates/ruff_linter/resources/test/fixtures/fastapi/FAST003.py:247
Functionf3
Here's a multi-line docstring. It's over the limit on this line, which isn't the first line in the docstring.
crates/ruff_linter/resources/test/fixtures/pycodestyle/W505.py:28
Functionf3
Here's a multi-line ß9💣2ℝing. It's over theß9💣2ℝ on this line, which isn't the first line in the ß9💣2ℝing.
crates/ruff_linter/resources/test/fixtures/pycodestyle/W505_utf_8.py:28
Functionf3
(x=((x for x in "x"),))
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B006_9.py:9
Methodf3
(self, arg: None | float | None | int | None = None)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI041_1.py:111
Methodf3
(self, arg: "None | float | None | int | None" = None)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI041_3.py:111
Functionf30
( x: float = -math.inf, # OK )
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI011.py:134
Functionf31
( a=1, # positional only comment, leading /, # positional only comment, trailing b=2, # ke
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/function.py:204
Functionf31
( x: float = inf, # OK )
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI011.py:137
Functionf32
( a, # positional only comment, leading /, # positional only comment, trailing b, # keywor
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/function.py:215
Functionf32
( x: float = np.inf, # OK )
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI011.py:140
Functionf33
( a, # positional only comment, leading /, # positional only comment, trailing # keyword only
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/function.py:226
Functionf33
( x: float = math.nan, # OK )
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI011.py:143
Functionf34
( a, # positional only comment, leading /, # positional only comment, trailing # keyword only
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/function.py:237
← previousnext →19,001–19,100 of 31,562, ranked by callers