MCPcopy Create free account

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

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

↓ 1 callersFunctionmain
Check code snippets in docs are formatted by Ruff.
scripts/check_docs_formatted.py:313
↓ 1 callersFunctionmain
()
scripts/conformance.py:1097
↓ 1 callersFunctionmain
Generate an MkDocs-compatible `docs` and `mkdocs.yml`.
scripts/generate_mkdocs.py:203
↓ 1 callersFunctionmain
()
scripts/build_ruff_pgo.py:152
↓ 1 callersFunctionmain
()
scripts/check-cargo-bans.py:125
↓ 1 callersFunctionmain
Generate boilerplate for a new rule.
scripts/add_rule.py:74
↓ 1 callersFunctionmain
()
scripts/pull_request_labels_and_title.py:54
↓ 1 callersFunctionmain
()
scripts/pull_request_reviewers.py:182
↓ 1 callersFunctionmain
()
scripts/ecosystem_all_check.py:56
↓ 1 callersFunctionmain
()
scripts/patch-dist-manifest-checksums.py:54
↓ 1 callersFunctionmain
()
scripts/update_schemastore.py:186
↓ 1 callersFunctionmain
()
scripts/collect_ty_ecosystem_run_metadata.py:422
↓ 1 callersFunctionmain
()
scripts/publish_pr_report.py:396
↓ 1 callersFunctionmain
Generate boilerplate for a new plugin.
scripts/add_plugin.py:64
↓ 1 callersFunctionmain
Modify the README.md to support the given target.
scripts/transform_readme.py:76
↓ 1 callersFunctionmain
()
scripts/run_ty_ecosystem_repro.py:41
↓ 1 callersFunctionmain
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/comments9.py:83
↓ 1 callersFunctionmain
()
crates/ruff_python_ast/generate.py:1213
↓ 1 callersFunctionmain
(args: &Args)
crates/ruff_dev/src/generate_ty_schema.rs:18
↓ 1 callersFunctionmain
(args: &Args)
crates/ruff_dev/src/generate_json_schema.rs:18
↓ 1 callersFunctionmain
(args: &Args)
crates/ruff_dev/src/generate_ty_options.rs:24
↓ 1 callersFunctionmain
(args: &Args)
crates/ruff_dev/src/generate_ty_cli_reference.rs:22
↓ 1 callersFunctionmain
(args: &Args)
crates/ruff_dev/src/generate_cli_help.rs:55
↓ 1 callersFunctionmain
(args: &Args)
crates/ruff_dev/src/generate_ty_rules.rs:28
↓ 1 callersFunctionmain
()
crates/ty_python_semantic/mdtest.py:343
↓ 1 callersFunctionmain
Primary function.
crates/ruff_linter/resources/test/fixtures/pycodestyle/E23.py:56
↓ 1 callersFunctionmain
()
crates/ruff_linter/resources/test/fixtures/pycodestyle/E30.py:843
↓ 1 callersFunctionmain
()
crates/ruff_linter/resources/test/fixtures/pyflakes/F823.py:47
↓ 1 callersMethodmain_loop
(mut self, db: &mut ProjectDatabase)
crates/ty/src/lib.rs:364
↓ 1 callersMethodmain_loop
(&mut self)
crates/ty_server/src/server/main_loop.rs:16
↓ 1 callersMethodmain_loop
(&mut self)
crates/ruff_server/src/server/main_loop.rs:19
↓ 1 callersFunctionmajor_minor
Truncate a version to its major and minor components.
crates/ruff_workspace/src/pyproject.rs:239
↓ 1 callersMethodmake
(self)
crates/ruff_linter/resources/test/fixtures/airflow/AIR202.py:191
↓ 1 callersMethodmake_document_ref
( &self, key: DocumentKey, global: &GlobalClientSettings, )
crates/ruff_server/src/session/index.rs:204
↓ 1 callersFunctionmake_func
(val=val)
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B023.py:178
↓ 1 callersFunctionmake_redundant_alias
Edits to make the specified imports explicit, e.g. change `import x` to `import x as x`.
crates/ruff_linter/src/fix/edits.rs:127
↓ 1 callersMethodmake_ref
( &self, cell_uri: Option<Uri>, file_uri: Uri, settings: Arc<RuffSettings>,
crates/ruff_server/src/session/index.rs:494
↓ 1 callersMethodmake_ruff_notebook
Generates a pseudo-representation of a notebook that lacks per-cell metadata and contextual information but should still work with Ruff's linter.
crates/ruff_server/src/edit/notebook.rs:62
↓ 1 callersFunctionmake_safe_parse_float
A decorator to make `parse_float` safe. `parse_float` must not return dicts or lists, because these types would be mixed with parsed TOML tab
crates/ruff_benchmark/resources/tomllib/_parser.py:673
↓ 1 callersFunctionmake_splat_elts
( splat_element: &Expr, other_elements: &[Expr], splat_at_left: bool, )
crates/ruff_linter/src/rules/ruff/rules/collection_literal_concatenation.rs:73
↓ 1 callersFunctionmake_suggestion
(open: &FileOpen<'_>, arg: &Expr, locator: &Locator)
crates/ruff_linter/src/rules/refurb/rules/write_whole_file.rs:187
↓ 1 callersFunctionmake_suggestion
(open: &FileOpen<'_>, generator: Generator)
crates/ruff_linter/src/rules/refurb/rules/read_whole_file.rs:172
↓ 1 callersFunctionmake_suggestion
Construct the fix suggestion, ie `set.discard(element)`.
crates/ruff_linter/src/rules/refurb/rules/check_and_remove_from_set.rs:176
↓ 1 callersFunctionmake_suggestion
Make fix suggestion for the given group of appends.
crates/ruff_linter/src/rules/refurb/rules/repeated_append.rs:323
↓ 1 callersFunctionmako_templates
S702
crates/ruff_linter/src/rules/flake8_bandit/rules/mako_templates.rs:51
↓ 1 callersFunctionmanaged_members_archive_handler
(filename)
crates/ruff_linter/resources/test/fixtures/flake8_bandit/S202.py:12
↓ 1 callersFunctionmanual_dict_comprehension
PERF403
crates/ruff_linter/src/rules/perflint/rules/manual_dict_comprehension.rs:87
↓ 1 callersFunctionmanual_from_import
PLR0402
crates/ruff_linter/src/rules/pylint/rules/manual_import_from.rs:59
↓ 1 callersFunctionmanual_list_comprehension
PERF401
crates/ruff_linter/src/rules/perflint/rules/manual_list_comprehension.rs:99
↓ 1 callersFunctionmanual_list_copy
PERF402
crates/ruff_linter/src/rules/perflint/rules/manual_list_copy.rs:52
↓ 1 callersFunctionmapCompletionKind
(kind: CompletionKind)
playground/ty/src/Editor/Editor.tsx:1119
↓ 1 callersFunctionmapDocumentHighlightKind
( kind: DocumentHighlightKind, )
playground/ty/src/Editor/Editor.tsx:1174
↓ 1 callersMethodmap_base_class_type
( self, db: &'db dyn Db, f: impl FnOnce(ClassType<'db>) -> ClassType<'db>, )
crates/ty_python_semantic/src/types/newtype.rs:183
↓ 1 callersFunctionmap_call_with_two_arguments
( semantic: &SemanticModel, call: &'a ast::ExprCall, )
crates/ruff_linter/src/rules/ruff/rules/map_int_version_parsing.rs:62
↓ 1 callersMethodmap_definition
Map a `ResolvedDefinition` from a stub file to corresponding definitions in source files. If the definition is in a stub file and a corresponding sou
crates/ty_ide/src/stub_mapping.rs:31
↓ 1 callersFunctionmap_int_version_parsing
RUF048
crates/ruff_linter/src/rules/ruff/rules/map_int_version_parsing.rs:50
↓ 1 callersFunctionmap_intersection_subscript
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, intersection: IntersectionType<'db>, mut map
crates/ty_python_semantic/src/types/subscript.rs:520
↓ 1 callersMethodmap_item_types
Maps each `CallableItem` to a type and combines results while preserving the union-of-intersections structure: - callable items inside an element are
crates/ty_python_semantic/src/types/call/bind.rs:1186
↓ 1 callersFunctionmap_lambda_and_iterables
( call: &'a ast::ExprCall, semantic: &'a SemanticModel, )
crates/ruff_linter/src/rules/flake8_comprehensions/rules/unnecessary_map.rs:200
↓ 1 callersFunctionmap_maybe_stringized_annotation
Given a type annotation [`Expr`], abstracting over the fact that the annotation expression might be "stringized". A stringized annotation is one encl
crates/ruff_linter/src/rules/flake8_pyi/rules/redundant_numeric_union.rs:218
↓ 1 callersMethodmap_offset
Maps a metadata offset to the corresponding offset in the Python source.
crates/ruff_python_ast/src/script.rs:166
↓ 1 callersMethodmap_self_type
( self, db: &'db dyn Db, f: impl FnMut(Type<'db>) -> Type<'db>, )
crates/ty_python_semantic/src/types/method.rs:233
↓ 1 callersMethodmap_stored_specialization
Rewrite stored arguments without evaluating the alias's definition or defaults.
crates/ty_python_semantic/src/types/type_alias.rs:867
↓ 1 callersFunctionmap_stub_definition
( db: &'db dyn Db, def: &ResolvedDefinition<'db>, cached_vendored_typeshed: Option<&Sy
crates/ty_python_semantic/src/types/ide_support.rs:1706
↓ 1 callersMethodmap_stubs
Map definitions from stub files to corresponding source implementations.
crates/ty_ide/src/goto.rs:372
↓ 1 callersMethodmap_stubs_for_implementation
Map stub definitions to corresponding source implementations for implementation lookup. Stub definitions without source mappings are discarded. Retur
crates/ty_ide/src/goto.rs:381
↓ 1 callersFunctionmap_subscript_alternatives
Preserve a constrained type variable when each alternative's result matches that constraint.
crates/ty_python_semantic/src/types/subscript.rs:475
↓ 1 callersMethodmap_types
Maps each `CallableBinding` to a type and combines results while preserving the union-of-intersections structure: - callable bindings inside an eleme
crates/ty_python_semantic/src/types/call/bind.rs:1158
↓ 1 callersMethodmap_value
(self, f: impl FnOnce(T) -> R)
crates/ruff_ranged_value/src/lib.rs:209
↓ 1 callersMethodmap_variable
Maps the variable segment without changing the fixed elements or their positions.
crates/ty_python_semantic/src/types/tuple.rs:2379
↓ 1 callersFunctionmap_without_explicit_strict
B912
crates/ruff_linter/src/rules/flake8_bugbear/rules/map_without_explicit_strict.rs:65
↓ 1 callersFunctionmapping_pattern_is_exhaustive
Return whether every value in `subject_ty` is guaranteed to match a mapping pattern. A nonempty mapping pattern is exhaustive for a `TypedDict` only
crates/ty_python_semantic/src/types/match_pattern.rs:607
↓ 1 callersMethodmapping_pattern_rest_type_for_arm
(&self, subject_ty: Type<'db>)
crates/ty_python_semantic/src/types/narrow.rs:3048
↓ 1 callersMethodmapping_pattern_value_type_for_arm
( &self, subject_ty: Type<'db>, key_ty: Type<'db>, )
crates/ty_python_semantic/src/types/narrow.rs:2878
↓ 1 callersMethodmark_binding_definitions_used
( &mut self, binding_definition_ids: impl IntoIterator<Item = ScopedDefinitionId>, )
crates/ty_python_core/src/use_def.rs:3029
↓ 1 callersMethodmark_comprehension_named_target
Marks a comprehension walrus target as a write to the containing Python scope. The iteration variable remains local to the comprehension, while the w
crates/ty_python_core/src/builder.rs:2125
↓ 1 callersMethodmark_current_comprehension_async
(&mut self)
crates/ty_python_core/src/builder.rs:402
↓ 1 callersMethodmark_definition_used
(&mut self, definition_id: ScopedDefinitionId)
crates/ty_python_core/src/use_def.rs:3154
↓ 1 callersFunctionmark_excludes_fixture
Returns whether a static mark supplies this parameter directly or cannot be interpreted.
crates/ty_python_semantic/src/types/dedicated/pytest/fixtures.rs:1379
↓ 1 callersMethodmark_incomplete
Records that lazy type attributes may contain additional type variables.
crates/ty_python_semantic/src/types/constraints/support.rs:116
↓ 1 callersMethodmark_instance_attribute
(&mut self)
crates/ty_python_core/src/member.rs:56
↓ 1 callersMethodmark_node_used
(&mut self, storage: &mut ConstraintSetStorage<'_>, node: NodeId)
crates/ty_python_semantic/src/types/constraints/owned.rs:42
↓ 1 callersMethodmark_scope_declaration
(&mut self)
crates/ty_python_core/src/symbol.rs:143
↓ 1 callersMethodmark_source_order_used
( &mut self, storage: &mut ConstraintSetStorage<'_>, source_order: SourceOrderId,
crates/ty_python_semantic/src/types/constraints/owned.rs:83
↓ 1 callersMethodmark_unformatted
(&self)
crates/ruff_python_formatter/src/statement/stmt_assign.rs:1205
↓ 1 callersMethodmark_unknown
(&mut self)
crates/ty_project/src/db/changes.rs:82
↓ 1 callersMethodmark_unreachable
Records that all remaining statements in the current block are unreachable.
crates/ty_python_core/src/builder.rs:2420
↓ 1 callersFunctionmark_uses_of_qualified_name
(marked: &mut MarkedBindings, prototype: &QualifiedName)
crates/ruff_linter/src/rules/pyflakes/rules/unused_import.rs:849
↓ 1 callersFunctionmarkdown_check_result
Render a `ruff check` ecosystem check result as markdown.
python/ruff-ecosystem/ruff_ecosystem/check.py:60
↓ 1 callersMethodmarkdown_fence_is_closed_by
(&self, line: &str)
crates/ty_ide/src/docstring/markdown/general.rs:513
↓ 1 callersFunctionmarkdown_format_result
Render a `ruff format` ecosystem check result as markdown.
python/ruff-ecosystem/ruff_ecosystem/format.py:26
↓ 1 callersFunctionmarkdown_plus_minus
(added: int, removed: int)
python/ruff-ecosystem/ruff_ecosystem/markdown.py:24
↓ 1 callersMethodmarker
(&self)
crates/ty_ide/src/docstring/document/preformatted.rs:14
↓ 1 callersMethodmarkers
Returns a slice of all the markers in the sourcemap in source order.
crates/ruff_diagnostics/src/source_map.rs:41
↓ 1 callersFunctionmarks
PT023, PT026
crates/ruff_linter/src/rules/flake8_pytest_style/rules/marks.rs:232
↓ 1 callersFunctionmatch_annotated_subscript
( expr: &Expr, semantic: &SemanticModel, typing_modules: impl Iterator<Item = &'a str>, extend
crates/ruff_python_semantic/src/analyze/typing.rs:58
↓ 1 callersFunctionmatch_annotation_to_complex_bool
Returns `true` if the annotation is a boolean type hint (e.g., `bool`), or a type hint that includes boolean as a variant (e.g., `bool | int`).
crates/ruff_linter/src/rules/flake8_boolean_trap/rules/boolean_type_hint_positional_argument.rs:164
↓ 1 callersFunctionmatch_any_exclusion
Return the [`ExclusionKind`] for a given [`Path`], if the path or any of its ancestors match any of the exclusion criteria.
crates/ruff_workspace/src/resolver.rs:924
↓ 1 callersFunctionmatch_any_inclusion
Return the [`InclusionKind`] for a given [`Path`], if the path match any of the inclusion criteria.
crates/ruff_workspace/src/resolver.rs:979
↓ 1 callersFunctionmatch_append
Matches that the given statement is a call to `append` on a list variable.
crates/ruff_linter/src/rules/refurb/rules/repeated_append.rs:265
← previousnext →11,401–11,500 of 31,562, ranked by callers