MCPcopy Create free account

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

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

Methodbar
Do something Args: num (int): A number
crates/ruff_linter/resources/test/fixtures/pydoclint/DOC403_google.py:43
Methodbar
Do something Parameters ---------- num : int A number
crates/ruff_linter/resources/test/fixtures/pydoclint/DOC201_numpy.py:53
Methodbar
(self)
crates/ruff_linter/resources/test/fixtures/pyflakes/F401_13.py:11
Methodbar
(self)
crates/ruff_linter/resources/test/fixtures/pyflakes/F811_35.py:7
Methodbar
Bar.
crates/ruff_linter/resources/test/fixtures/pyflakes/F811_30.py:12
Methodbar
(self)
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP008.py:115
Functionbar1
(x, y, z)
crates/ruff_linter/resources/test/fixtures/flake8_return/RET506.py:90
Functionbar1
(x, y, z)
crates/ruff_linter/resources/test/fixtures/flake8_return/RET508.py:92
Functionbar1
(x, y, z)
crates/ruff_linter/resources/test/fixtures/flake8_return/RET507.py:92
Functionbar1
(x, y, z)
crates/ruff_linter/resources/test/fixtures/flake8_return/RET503.py:113
Functionbar1
(x, y, z)
crates/ruff_linter/resources/test/fixtures/flake8_return/RET505.py:117
Functionbar2
(w, x, y, z)
crates/ruff_linter/resources/test/fixtures/flake8_return/RET506.py:96
Functionbar2
(w, x, y, z)
crates/ruff_linter/resources/test/fixtures/flake8_return/RET508.py:99
Functionbar2
(w, x, y, z)
crates/ruff_linter/resources/test/fixtures/flake8_return/RET505.py:123
Functionbar3
(x, y, z)
crates/ruff_linter/resources/test/fixtures/flake8_return/RET506.py:106
Functionbar3
(x, y, z)
crates/ruff_linter/resources/test/fixtures/flake8_return/RET508.py:110
Functionbar3
(x, y, z)
crates/ruff_linter/resources/test/fixtures/flake8_return/RET507.py:99
Functionbar3
(x, y, z)
crates/ruff_linter/resources/test/fixtures/flake8_return/RET503.py:120
Functionbar3
(x, y, z)
crates/ruff_linter/resources/test/fixtures/flake8_return/RET505.py:133
Functionbar4
(x)
crates/ruff_linter/resources/test/fixtures/flake8_return/RET506.py:77
Functionbar4
(x)
crates/ruff_linter/resources/test/fixtures/flake8_return/RET508.py:78
Functionbar4
(x)
crates/ruff_linter/resources/test/fixtures/flake8_return/RET507.py:81
Functionbar4
(x)
crates/ruff_linter/resources/test/fixtures/flake8_return/RET505.py:96
Functionbar5
()
crates/ruff_linter/resources/test/fixtures/flake8_return/RET505.py:150
Functionbar6
()
crates/ruff_linter/resources/test/fixtures/flake8_return/RET505.py:157
Functionbar7
()
crates/ruff_linter/resources/test/fixtures/flake8_return/RET505.py:166
Functionbar8
()
crates/ruff_linter/resources/test/fixtures/flake8_return/RET505.py:174
Functionbar9
()
crates/ruff_linter/resources/test/fixtures/flake8_return/RET505.py:180
Functionbare_error_assertion_not_allowed
()
crates/mdtest/src/matcher.rs:1251
Functionbare_iterator
()
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP052.py:134
Functionbare_return_and_list
()
crates/ruff_linter/resources/test/fixtures/airflow/AIR004.py:47
Functionbare_reveal_assertion_not_allowed
()
crates/mdtest/src/matcher.rs:1276
Functionbarely_exceeds_limit
First line. ```py class Abcdefghijklmopqrstuvwxyz(Abc, Def, Ghi, Jkl, Mno, Pqr, Stu, Vwx, Yz, A1, A2, A3, A4, A5): def abcdefghi
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples_dynamic_line_width.py:108
Methodbase
(self)
crates/ty_python_semantic/src/types/protocol_class.rs:465
Functionbase_class_same_file
(rule_code: Rule, path: &Path)
crates/ruff_linter/src/rules/flake8_type_checking/mod.rs:367
Functionbase_conda_without_python
()
crates/ty_site_packages/src/lib.rs:2434
Functionbase_test
()
crates/ruff_python_formatter/src/comments/mod.rs:610
Functionbaseline_accepts_previous_rule_name
()
crates/ty/tests/cli/baseline.rs:172
Functionbaseline_entries_are_sorted_and_matched_by_file_path
()
crates/ty/tests/cli/baseline.rs:545
Functionbaselined_diagnostic_is_a_hint_and_refreshes
()
crates/ty_server/tests/e2e/pull_diagnostics.rs:47
Functionbasic
()
crates/ruff_python_formatter/src/lib.rs:232
Functionbasic
()
crates/ruff_db/src/diagnostic/render.rs:1129
Functionbatch_updates_only_indexed_sources
()
crates/ty_server/tests/e2e/will_rename_files.rs:9
Functionbaz
(self)
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/stub_functions_trailing_comments.py:10
Functionbaz
This" is a string with some embedded "quotes
crates/ruff_python_formatter/resources/test/fixtures/black/cases/docstring.py:27
Functionbaz
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/allow_empty_first_line.py:47
Functionbaz
This" is a string with some embedded "quotes
crates/ruff_python_formatter/resources/test/fixtures/black/cases/docstring_no_string_normalization.py:31
Functionbaz
F""" {'.'.join(e)}
crates/ruff_python_formatter/resources/test/fixtures/black/cases/f_docstring.py:7
Functionbaz
()
crates/ruff_python_parser/resources/inline/ok/decorator_await_expression_py39.py:4
Functionbaz
()
crates/ruff_python_parser/resources/inline/err/decorator_await_expression_py38.py:4
Functionbaz
()
crates/ruff_python_parser/resources/inline/err/decorator_non_toplevel_call_expression_py38.py:3
Functionbaz
()
crates/ruff_linter/resources/test/fixtures/flake8_type_checking/quote.py:4
Functionbaz
()
crates/ruff_linter/resources/test/fixtures/flake8_type_checking/runtime_evaluated_decorators_5.py:9
Functionbaz
(i: int)
crates/ruff_linter/resources/test/fixtures/flake8_annotations/allow_overload.py:36
Functionbaz
()
crates/ruff_linter/resources/test/fixtures/pycodestyle/E204.py:15
Functionbaz
Show a `Warnings` DOC102 false positive. Parameters ---------- x : int Warnings -------- This function demonstrates a D
crates/ruff_linter/resources/test/fixtures/pydoclint/DOC102_numpy.py:430
Functionbaz
(x: int, y: int)
crates/ruff_linter/resources/test/fixtures/pylint/swap_with_temporary_variable.py:24
Functionbaz
This one raises a different exception
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B006_8.py:10
Functionbaz
()
crates/ruff_linter/resources/test/fixtures/pyflakes/F811_16.py:7
Functionbaz
()
crates/ruff_linter/resources/test/fixtures/pyflakes/F823.py:14
Functionbaz
()
crates/ruff_linter/resources/test/fixtures/pyflakes/F811_17.py:8
Methodbaz
Return the baz.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D421.py:15
Methodbaz
(self)
crates/ruff_linter/resources/test/fixtures/pycodestyle/E204.py:26
Methodbaz
Do something Args: num (int): A number
crates/ruff_linter/resources/test/fixtures/pydoclint/DOC201_google.py:55
Methodbaz
Do something Args: num (int): A number
crates/ruff_linter/resources/test/fixtures/pydoclint/DOC201_google.py:81
Methodbaz
Do something Parameters ---------- num : int A number
crates/ruff_linter/resources/test/fixtures/pydoclint/DOC201_numpy.py:67
Methodbaz
(self)
crates/ruff_linter/resources/test/fixtures/pylint/no_self_use.py:83
Functionbazel_symlinked_files
()
crates/ty/tests/cli/file_selection.rs:1282
Methodbear
(self)
crates/ty_completion_eval/truth/object-attr-instance-methods/main.py:5
Methodbefore_impl
(tokens: &[Token], offset: TextSize)
crates/ruff_python_ast/src/token/tokens.rs:148
Functionbelieve_it_or_not_this_is_in_the_py_stdlib
"hey yah
crates/ruff_python_formatter/resources/test/fixtures/black/cases/docstring.py:126
Functionbelieve_it_or_not_this_is_in_the_py_stdlib
"hey yah
crates/ruff_python_formatter/resources/test/fixtures/black/cases/docstring_no_string_normalization.py:95
Functionbenchmark_all_rules
(criterion: &mut Criterion)
crates/ruff_benchmark/benches/linter.rs:120
Functionbenchmark_async_context_manager_recursive_protocol
Regression benchmark for a recursively specialized context-manager yield type.
crates/ruff_benchmark/benches/ty.rs:1439
Functionbenchmark_bottom_and_top_signature_comparisons
Compare bottom sources and top targets against distinct signatures.
crates/ruff_benchmark/benches/ty_constraint_set.rs:144
Functionbenchmark_class_or_pattern_captures
Regression benchmark for <https://github.com/astral-sh/ty/issues/4815>. The three OR patterns stay fixed as the subject union grows. Using `typing.Un
crates/ruff_benchmark/benches/ty.rs:1731
Functionbenchmark_cold
(criterion: &mut Criterion)
crates/ruff_benchmark/benches/ty.rs:171
Functionbenchmark_complex_constrained_attributes_1
(criterion: &mut Criterion)
crates/ruff_benchmark/benches/ty.rs:386
Functionbenchmark_complex_constrained_attributes_2
(criterion: &mut Criterion)
crates/ruff_benchmark/benches/ty.rs:436
Functionbenchmark_complex_constrained_attributes_3
(criterion: &mut Criterion)
crates/ruff_benchmark/benches/ty.rs:471
Functionbenchmark_constraint_quantification
Quantify both satisfiable and contradictory bodies containing free variables. The satisfiable case measures the cost of checking for contradictions wh
crates/ruff_benchmark/benches/ty_constraint_set.rs:107
Functionbenchmark_cross_str_enum_comparison
Ensure comparison constraints between two large scalar enums do not compare every member pair.
crates/ruff_benchmark/benches/ty.rs:775
Functionbenchmark_default_rules
(criterion: &mut Criterion)
crates/ruff_benchmark/benches/linter.rs:109
Functionbenchmark_dense_recursive_alias_definitions
Dense recursive definitions should not accumulate obsolete cycle-recovery results.
crates/ruff_benchmark/benches/ty.rs:257
Functionbenchmark_disjoint_membership_exclusions
Each condition introduces alternatives with several disjoint exclusions, which must be simplified before the next condition to avoid multiplying the n
crates/ruff_benchmark/benches/ty.rs:2154
Functionbenchmark_enum_literal_union_comparison
Ensure explicit enum-literal unions are compared as value sets, not member pairs.
crates/ruff_benchmark/benches/ty.rs:669
Functionbenchmark_enum_or_pattern_exhaustiveness
Regression benchmark for <https://github.com/astral-sh/ty/issues/4893>. Checking for an implicit return requires proving that the two OR patterns cov
crates/ruff_benchmark/benches/ty.rs:2311
Functionbenchmark_enum_union_equality
Regression benchmark for <https://github.com/astral-sh/ty/issues/4514>. Each failed comparison against a union of enum members introduces two disjoin
crates/ruff_benchmark/benches/ty.rs:2093
Functionbenchmark_factored_upper_bounds
Benchmarks solving many union-bearing upper bounds while inferring a generic call. Each callable argument places a distinct union upper bound on `T`
crates/ruff_benchmark/benches/ty_constraint_set.rs:184
Functionbenchmark_formatter
(criterion: &mut Criterion)
crates/ruff_benchmark/benches/formatter.rs:41
Functionbenchmark_gradual_intersection_negation
Regression benchmark for <https://github.com/astral-sh/ty/issues/4541>. Negating a compound gradual intersection can repeatedly introduce equivalent
crates/ruff_benchmark/benches/ty.rs:2273
Functionbenchmark_gradual_intersection_union_equality
Regression benchmark for <https://github.com/astral-sh/ty/issues/4867>. Excluding a union of intersections during equality narrowing can expand expon
crates/ruff_benchmark/benches/ty.rs:2242
Functionbenchmark_gradual_literal_union_equality
Regression benchmark for <https://github.com/astral-sh/ty/issues/4256>. Excluding rejected gradual string literals must not expand the complement of
crates/ruff_benchmark/benches/ty.rs:2209
Functionbenchmark_gradual_vararg_call
Regression benchmark for large calls to a gradual variadic tail. Without the gradual-call shortcut, every positional argument type is folded into the
crates/ruff_benchmark/benches/ty.rs:1466
Functionbenchmark_incompatible_lower_bound_alternatives
Matching a tuple against `T | tuple[T]` makes either the tuple or its element a lower bound for `T`. Both violate the declared bound, and each union m
crates/ruff_benchmark/benches/ty_constraint_set.rs:270
Functionbenchmark_incremental
(criterion: &mut Criterion)
crates/ruff_benchmark/benches/ty.rs:130
Functionbenchmark_inherited_recursive_protocol
Regression benchmarks for ty#4269: recursive protocol inference and assignment diagnostics. Explicit receiver annotations can repeatedly expand inher
crates/ruff_benchmark/benches/ty.rs:1101
Functionbenchmark_invariant_generic_return_union
(criterion: &mut Criterion)
crates/ruff_benchmark/benches/ty_constraint_set.rs:542
Functionbenchmark_invariant_generic_union_bound
(criterion: &mut Criterion)
crates/ruff_benchmark/benches/ty_constraint_set.rs:628
Functionbenchmark_large_enum_membership
Regression benchmark for membership narrowing over a large enum. The right-hand-side union should be evaluated one listed member at a time. Evaluatin
crates/ruff_benchmark/benches/ty.rs:552
← previousnext →16,201–16,300 of 31,562, ranked by callers