MCPcopy Create free account

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

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

Methodallows_quoted_literal_block
Whether or not a particular literal block can contain an unindented quoted literal block.
crates/ty_ide/src/docstring/document/preformatted.rs:261
Functionalready_correct
()
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP052.py:119
Functionalready_short_circuit
()
crates/ruff_linter/resources/test/fixtures/airflow/AIR004.py:92
Functionalso_bad
(__x: int, __y: str)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI063.py:7
Functionalso_cool
(x__: int)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI063.py:17
Methodalso_cool
(self__: int)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI063.py:44
Methodalso_evil_raises
(self)
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B017_0.py:26
Functionalso_okay
(x: int, __y: str)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI063.py:13
Functionaltair
(bencher: Bencher)
crates/ruff_benchmark/benches/ty_walltime.rs:201
Functionalternative_constraint_failures_keep_upper_bounds_on_separate_paths
()
crates/ty_python_semantic/src/types/constraints/projection/tests.rs:252
Functionalternative_storage_budget_preserves_merged_inference
()
crates/ty_python_semantic/src/types/generics.rs:5418
Methodalways
Creates an unconditional edge to the target block
crates/ruff_python_semantic/src/cfg/graph.rs:121
Methodalways
()
crates/ty_python_semantic/src/types/constraints.rs:297
Functionalways_satisfied_receiver_constraints_are_discarded
()
crates/ty_python_semantic/src/types/signatures.rs:6833
Functionambiguous_imported_names_do_not_suppress_independent_edits
()
crates/ty_ide/src/will_rename.rs:1532
Methodanalysis_settings
(&self, file: File)
crates/ty_project/src/db.rs:631
Methodanalysis_settings
(&self, file: File)
crates/ty_test/src/db.rs:178
Methodanalysis_settings
(&self, _file: File)
crates/ty_python_semantic/tests/corpus.rs:246
Methodanalysis_settings
(&self, _file: File)
fuzz/fuzz_targets/ty_check_invalid_syntax.rs:134
Functionanalyze_graph
Generate an import map.
crates/ruff/src/commands/analyze_graph.rs:23
Methodancestor_ids
Returns an iterator over all [`ScopeId`] ancestors, starting from the given [`ScopeId`].
crates/ruff_python_semantic/src/scope.rs:280
Methodancestor_ids
Returns an iterator over all [`BranchId`] ancestors, starting from the given [`BranchId`].
crates/ruff_python_semantic/src/branches.rs:40
Methodancestors
Returns an iterator over the ancestor nodes, starting with the node itself and walking towards the root.
crates/ruff_python_ast/src/find_node.rs:118
Methodancestors_of_static_class
Resolve a static class's ancestors in MRO order from the supplied base types. The iterator supplies the class itself before requesting these entries.
crates/ty_python_semantic/src/types/mro.rs:55
Functionand_another_bad
(a)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY003.py:42
Functionand_that
"hey yah"
crates/ruff_python_formatter/resources/test/fixtures/black/cases/docstring.py:95
Functionand_that
"hey yah"
crates/ruff_python_formatter/resources/test/fixtures/black/cases/docstring_no_string_normalization.py:85
Functionand_this
"hey yah
crates/ruff_python_formatter/resources/test/fixtures/black/cases/docstring.py:100
Functionand_this
"hey yah
crates/ruff_python_formatter/resources/test/fixtures/black/cases/docstring_no_string_normalization.py:90
Functionand_this
(value=set())
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B006_B008.py:85
Functionand_this_also
(value=tuple())
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B006_B008.py:22
Methodann_assign_stmt
(self)
crates/ruff_python_ast/src/generated.rs:634
Functionannotate_eol
()
crates/ruff_annotate_snippets/tests/formatter.rs:818
Functionannotate_eol2
()
crates/ruff_annotate_snippets/tests/formatter.rs:854
Functionannotate_eol3
()
crates/ruff_annotate_snippets/tests/formatter.rs:885
Functionannotate_eol4
()
crates/ruff_annotate_snippets/tests/formatter.rs:916
Functionannotate_eol_double_width
()
crates/ruff_annotate_snippets/tests/formatter.rs:952
Functionannotate_newline_empty_span
()
crates/ruff_annotate_snippets/tests/formatter.rs:787
Functionannotated_assign
()
crates/ruff_linter/resources/test/fixtures/mccabe/C901.py:107
Functionannotated_assign
()
crates/ruff_linter/src/rules/mccabe/rules/function_is_too_complex.rs:379
Functionannotated_async_def
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:4110
Functionannotated_collections_abc_mapping
()
crates/ruff_linter/resources/test/fixtures/airflow/AIR202.py:36
Functionannotated_dict
()
crates/ruff_linter/resources/test/fixtures/airflow/AIR202.py:16
Functionannotated_dict_subscript
()
crates/ruff_linter/resources/test/fixtures/airflow/AIR202.py:21
Functionannotated_dict_via_sdk
()
crates/ruff_linter/resources/test/fixtures/airflow/AIR202.py:55
Functionannotated_mutable_mapping
()
crates/ruff_linter/resources/test/fixtures/airflow/AIR202.py:41
Functionannotated_sub_diagnostics_include_all_annotations
()
crates/ty_wasm/tests/api.rs:239
Functionannotated_type_typing_missing_forward_type_multiple_args
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:4360
Functionannotated_type_typing_with_string_args
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:4373
Functionannotated_type_typing_with_string_args_in_union
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:4386
Functionannotated_typed_dict
()
crates/ruff_linter/resources/test/fixtures/airflow/AIR202.py:50
Functionannotated_typing_dict
()
crates/ruff_linter/resources/test/fixtures/airflow/AIR202.py:26
Functionannotated_typing_mapping
()
crates/ruff_linter/resources/test/fixtures/airflow/AIR202.py:31
Functionannotating_an_import
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:4058
Functionannotation_many_files_primary_always_comes_first
()
crates/ruff_db/src/diagnostic/render.rs:2356
Functionannotation_message
()
crates/ruff_db/src/diagnostic/render.rs:2220
Functionannotation_multi_line
()
crates/ruff_db/src/diagnostic/render.rs:1957
Functionannotation_one_file_primary_always_comes_first
()
crates/ruff_db/src/diagnostic/render.rs:2271
Functionannotation_only
()
crates/ty_python_core/src/lib.rs:1323
Functionannotation_only_values_prevent_identifying_all_bindings
()
crates/ty_python_semantic/src/semantic_model.rs:1530
Functionannotation_overlapping_multi_line
()
crates/ruff_db/src/diagnostic/render.rs:2072
Functionannotation_undefined
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:1756
Methodannotations
Highlight and describe spans of text within the [`source`][Self::source]
crates/ruff_annotate_snippets/src/snippet.rs:325
Functionannotations_preserve_order
()
crates/ruff_wasm/tests/api.rs:206
Methodanonymized_line_numbers
Anonymize line numbers When enabled, line numbers are replaced with `LL` which is useful for tests. # Example ```text --> $DIR/whitespace-trimming.
crates/ruff_annotate_snippets/src/renderer/mod.rs:194
Functionanother_bad
(a)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY003.py:37
Methodanother_cached_instance_method
(self, y)
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B019.py:83
Methodanother_called_cached_instance_method
(self, y)
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B019.py:91
Methodanother_called_lru_cached_instance_method
(self, y)
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B019.py:107
Functionanother_cool_function
()
crates/ruff_linter/resources/test/fixtures/flake8_tidy_imports/TID253.py:24
Functionanother_deprecated_function
()
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI053.py:61
Functionanother_function
This docstring is capitalized.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D403.py:11
Functionanother_good
(a)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY003.py:52
Functionanother_inline
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/comments9.py:89
Methodanother_lru_cached_instance_method
(self, y)
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B019.py:99
Functionanother_top_level_quote_inline_inline
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/comments9.py:102
Functionanother_valid_google_style_docstring
Foo bar. Examples: Some explanation here. >>> bla bla bla
crates/ruff_linter/resources/test/fixtures/pydocstyle/sections.py:624
Functionanotherfunc
()
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY002.py:28
Functionany
(exp)
crates/ruff_linter/resources/test/fixtures/flake8_simplify/SIM110.py:121
Methodany_applicable_fixes
(&self)
crates/ruff/src/printer.rs:556
Methodany_fixable
(&self)
crates/ruff/src/printer.rs:50
Functionany_over_stmt_type_alias
()
crates/ruff_python_ast/src/helpers.rs:1898
Functionany_over_type_param_param_spec
()
crates/ruff_python_ast/src/helpers.rs:2048
Functionany_over_type_param_type_var
()
crates/ruff_python_ast/src/helpers.rs:1957
Functionany_over_type_param_type_var_tuple
()
crates/ruff_python_ast/src/helpers.rs:2011
Functionany_str_param
(s: AnyStr)
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP047_0.py:43
Functionanyio
(criterion: &mut Criterion)
crates/ruff_benchmark/benches/ty.rs:2864
Functionanyio_path_in_foo
()
crates/ruff_linter/resources/test/fixtures/flake8_async/ASYNC240.py:49
Methodapplicable_edit
Create a new [`Fix`] with the specified [`Applicability`] to apply an [`Edit`] element.
crates/ruff_diagnostics/src/fix.rs:120
Methodapplicable_edits
Create a new [`Fix`] with the specified [`Applicability`] to apply multiple [`Edit`] elements.
crates/ruff_diagnostics/src/fix.rs:129
Functionapply_keyword_hint
(call: &str)
crates/ty_ide/src/inlay_hints.rs:3995
Functionapply_one_insertion
()
crates/ruff_linter/src/fix/mod.rs:217
Functionapply_one_removal
()
crates/ruff_linter/src/fix/mod.rs:301
Functionapply_one_replacement
()
crates/ruff_linter/src/fix/mod.rs:260
Methodapply_optional_specialization
( self, db: &'db dyn Db, specialization: Option<Specialization<'db>>, )
crates/ty_python_semantic/src/types.rs:9633
Methodapply_optional_specialization
( self, db: &'db dyn Db, specialization: Option<Specialization<'db>>, )
crates/ty_python_semantic/src/types/class_base.rs:435
Methodapply_self_with_receiver
Replaces `typing.Self` while supplying the runtime receiver for a previously bound explicit receiver annotation. This does not bind a visible receiver
crates/ty_python_semantic/src/types/signatures.rs:578
Functionapply_two_removals
()
crates/ruff_linter/src/fix/mod.rs:338
Methodapply_type_mapping_impl
( self, db: &'db dyn Db, type_mapping: &TypeMapping<'a, 'db>, tcx: TypeContext
crates/ty_python_semantic/src/types/protocol_class.rs:391
Methodapply_type_mapping_impl
( self, db: &'db dyn Db, type_mapping: &TypeMapping<'a, 'db>, tcx: TypeContext
crates/ty_python_semantic/src/types/instance.rs:436
← previousnext →15,601–15,700 of 31,562, ranked by callers