MCPcopy Create free account

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

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

↓ 1 callersFunctionflip_read_only_permission
(path: &Path)
crates/ruff/src/cache.rs:804
↓ 1 callersFunctionfloat_equality_comparison
RUF069
crates/ruff_linter/src/rules/ruff/rules/float_equality_comparison.rs:124
↓ 1 callersMethodflush
Flushes any pending events.
crates/ty_project/src/watch/watcher.rs:133
↓ 1 callersMethodflush_pending_link
Emits a buffered hyperlink candidate without converting it.
crates/ty_ide/src/docstring/markdown/general/inline.rs:89
↓ 1 callersMethodfmt
(&self, f: &mut Formatter<Context>)
crates/ruff_formatter/src/builders.rs:206
↓ 1 callersMethodfmt
(&self, formatter: &mut Formatter<Context>)
crates/ruff_formatter/src/arguments.rs:80
↓ 1 callersMethodfmt
(&self, f: &mut Formatter<SimpleFormatContext>)
crates/ruff_python_formatter/src/lib.rs:354
↓ 1 callersMethodfmt
(&self, f: &mut PyFormatter)
crates/ruff_python_formatter/src/pattern/pattern_match_mapping.rs:120
↓ 1 callersMethodfmt
(&self, f: &mut Formatter<PyFormatContext<'ast>>)
crates/ruff_python_formatter/src/statement/clause.rs:449
↓ 1 callersMethodfmt
(&self, f: &mut Formatter<PyFormatContext<'_>>)
crates/ruff_python_formatter/src/statement/stmt_assign.rs:113
↓ 1 callersMethodfmt
(&self, f: &mut Formatter<PyFormatContext<'_>>)
crates/ruff_python_formatter/src/statement/stmt_class_def.rs:170
↓ 1 callersMethodfmt
(&self, f: &mut PyFormatter)
crates/ruff_python_formatter/src/expression/expr_lambda.rs:261
↓ 1 callersMethodfmt
(&self, f: &mut PyFormatter)
crates/ruff_python_formatter/src/expression/expr_yield.rs:100
↓ 1 callersMethodfmt
(&self, item: &CmpOp, f: &mut PyFormatter)
crates/ruff_python_formatter/src/expression/expr_compare.rs:67
↓ 1 callersMethodfmt
(&self, f: &mut PyFormatter)
crates/ruff_python_formatter/src/expression/expr_dict.rs:108
↓ 1 callersMethodfmt
(&self, f: &mut PyFormatter)
crates/ruff_python_formatter/src/expression/expr_tuple.rs:218
↓ 1 callersMethodfmt
(&self, f: &mut Formatter<PyFormatContext<'ast>>)
crates/ruff_python_formatter/src/expression/parentheses.rs:158
↓ 1 callersMethodfmt
(&self, f: &mut Formatter<PyFormatContext<'_>>)
crates/ruff_python_formatter/src/expression/expr_if.rs:106
↓ 1 callersMethodfmt
(&self, item: &BoolOp, f: &mut PyFormatter)
crates/ruff_python_formatter/src/expression/expr_bool_op.rs:53
↓ 1 callersMethodfmt
(&self, f: &mut PyFormatter)
crates/ruff_python_formatter/src/other/comprehension.rs:21
↓ 1 callersMethodfmt
(&self, f: &mut PyFormatter)
crates/ruff_python_formatter/src/other/parameters.rs:288
↓ 1 callersMethodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
crates/ruff_db/src/files.rs:329
↓ 1 callersMethodfmt
(&self, f: &mut Formatter<'_>)
crates/ruff_db/src/diagnostic/stylesheet.rs:22
↓ 1 callersMethodfmt
(&self, f: &mut fmt::Formatter<'_>)
crates/ty_ide/src/hover.rs:455
↓ 1 callersMethodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
crates/ty_python_semantic/src/types/class.rs:3383
↓ 1 callersMethodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
crates/ty_python_semantic/src/types/call/bind.rs:10021
↓ 1 callersMethodfmt
(&self, fmt: &mut std::fmt::Formatter<'_>)
crates/ruff_linter/src/noqa.rs:109
↓ 1 callersMethodfmt_fields
(&self, item: &Alias, f: &mut PyFormatter)
crates/ruff_python_formatter/src/other/alias.rs:12
↓ 1 callersFunctionfmt_file_location
Format a file location suffix for disambiguation (e.g., " @ path:line:column")
crates/ty_python_semantic/src/types/display.rs:845
↓ 1 callersMethodfmt_full
(&self, f: &mut TypeWriter<'_, '_, 'db>)
crates/ty_python_semantic/src/types/display.rs:2303
↓ 1 callersFunctionfmt_imports
(f: &mut Formatter<'_>, imports: &[String], indent: &str)
crates/ruff_linter/src/rules/flake8_tidy_imports/settings.rs:72
↓ 1 callersMethodfmt_normal
(&self, f: &mut TypeWriter<'_, '_, 'db>)
crates/ty_python_semantic/src/types/display.rs:2266
↓ 1 callersMethodfmt_specialized
( &self, env: &ProgramEnvironment<'db>, specialization: Option<Specialization<'db>>,
crates/ty_python_semantic/src/types/display.rs:1033
↓ 1 callersFunctionfmt_type_guard_like
Helper for displaying `TypeGuardLike` types `TypeIs` and `TypeGuard`.
crates/ty_python_semantic/src/types/display.rs:1136
↓ 1 callersFunctionfn
()
crates/ruff_linter/resources/test/fixtures/pycodestyle/E30.py:154
↓ 1 callersFunctionfnv_hash
(x: I)
crates/ruff_unicode_names2/src/lib.rs:265
↓ 1 callersMethodfollows_def_with_dummy_body
Allow a function/method to follow a function/method with a dummy body.
crates/ruff_linter/src/rules/pycodestyle/rules/blank_lines.rs:641
↓ 1 callersFunctionfoo
()
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/if.py:321
↓ 1 callersFunctionfoo
()
crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/lambda.py:342
↓ 1 callersFunctionfoo
()
crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_skip/decorators.py:31
↓ 1 callersFunctionfoo
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/preview_long_strings.py:229
↓ 1 callersFunctionfoo
(answer=(p := 42))
crates/ruff_python_formatter/resources/test/fixtures/black/cases/pep_572_remove_parens.py:26
↓ 1 callersFunctionfoo
(i: (int))
crates/ruff_python_formatter/resources/test/fixtures/black/cases/pep604_union_types_line_breaks.py:50
↓ 1 callersFunctionfoo
(*args)
crates/ruff_python_parser/resources/valid/statement/function.py:125
↓ 1 callersFunctionfoo
()
crates/ruff_python_parser/resources/valid/other/decorator.py:41
↓ 1 callersFunctionfoo
(x)
crates/ruff_python_parser/resources/inline/ok/non_duplicate_keyword_args.py:1
↓ 1 callersFunctionfoo
(x)
crates/ruff_python_parser/resources/inline/err/duplicate_keyword_args.py:1
↓ 1 callersFunctionfoo
()
crates/ruff_python_parser/resources/invalid/expressions/if/missing_test_expr_0.py:4
↓ 1 callersFunctionfoo
()
crates/ruff_python_parser/resources/invalid/expressions/dict/missing_closing_brace_0.py:3
↓ 1 callersFunctionfoo
()
crates/ruff_linter/resources/test/fixtures/refurb/FURB103_0.py:1
↓ 1 callersFunctionfoo
()
crates/ruff_linter/resources/test/fixtures/flake8_commas/COM81.py:60
↓ 1 callersFunctionfoo
buzz
crates/ruff_linter/resources/test/fixtures/flake8_pie/PIE790.py:45
↓ 1 callersFunctionfoo
()
crates/ruff_linter/resources/test/fixtures/flake8_simplify/SIM105_2.py:5
↓ 1 callersFunctionfoo
()
crates/ruff_linter/resources/test/fixtures/flake8_simplify/SIM105_3.py:4
↓ 1 callersFunctionfoo
(y: int)
crates/ruff_linter/resources/test/fixtures/flake8_use_pathlib/full_name.py:56
↓ 1 callersFunctionfoo
(one_arg)
crates/ruff_linter/resources/test/fixtures/ruff/RUF010.py:5
↓ 1 callersFunctionfoo
function without params, single line docstring
crates/ruff_linter/resources/test/fixtures/flake8_quotes/docstring_doubles_function.py:1
↓ 1 callersFunctionfoo
()
crates/ruff_linter/resources/test/fixtures/pycodestyle/W391_0.py:2
↓ 1 callersFunctionfoo
()
crates/ruff_linter/resources/test/fixtures/pycodestyle/W391_3.py:2
↓ 1 callersFunctionfoo
()
crates/ruff_linter/resources/test/fixtures/pycodestyle/W391_1.py:2
↓ 1 callersFunctionfoo
Test function with an error in declaration
crates/ruff_linter/resources/test/fixtures/pycodestyle/E25.py:2
↓ 1 callersFunctionfoo
()
crates/ruff_linter/resources/test/fixtures/pycodestyle/W391_2.py:2
↓ 1 callersFunctionfoo
()
crates/ruff_linter/resources/test/fixtures/pycodestyle/E30.py:43
↓ 1 callersFunctionfoo
(shell)
crates/ruff_linter/resources/test/fixtures/flake8_bandit/S604.py:1
↓ 1 callersFunctionfoo
(f=lambda x: print(x))
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B006_B008.py:258
↓ 1 callersFunctionfoo
(bar, baz, bam)
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B026.py:7
↓ 1 callersFunctionfoo
()
crates/ruff_linter/resources/test/fixtures/pyflakes/F823.py:5
↓ 1 callersFunctionfoo
(obj)
crates/ruff_linter/resources/test/fixtures/flake8_self/SLF001_extended.py:1
↓ 1 callersMethodfoo
()
crates/ruff_linter/resources/test/fixtures/pyflakes/F841_0.py:178
↓ 1 callersMethodfoo
(self)
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP008.py:110
↓ 1 callersMethodfor_all
Universally abstracts constraints involving the given type variables from this TDD. This is the Boolean dual of [`Self::reduce_inferable`]. Declared
crates/ty_python_semantic/src/types/constraints.rs:983
↓ 1 callersMethodfor_each_with_project_db
Runs an operation in parallel with a cloned [`ProjectDatabase`] for each Rayon job. Rayon's standard scheduling adapters can be applied before this m
crates/ty_project/src/parallel.rs:56
↓ 1 callersMethodfor_file
(&self, db: &dyn Db, file: File)
crates/ty_project/src/baseline.rs:251
↓ 1 callersFunctionfor_loop_set_mutations
FURB142
crates/ruff_linter/src/rules/refurb/rules/for_loop_set_mutations.rs:66
↓ 1 callersFunctionfor_loop_writes_binding
FURB122
crates/ruff_linter/src/rules/refurb/rules/for_loop_writes.rs:68
↓ 1 callersFunctionfor_loop_writes_stmt
FURB122
crates/ruff_linter/src/rules/refurb/rules/for_loop_writes.rs:99
↓ 1 callersMethodfor_project
(&self, db: &dyn Db, project: Project)
crates/ty/src/lib.rs:849
↓ 1 callersMethodfor_script
(&self, db: &dyn Db, file: File)
crates/ty/src/lib.rs:853
↓ 1 callersMethodfor_script
( &self, client: &Client, capabilities: ResolvedClientCapabilities, display_pa
crates/ty_server/src/server/script_progress.rs:22
↓ 1 callersMethodfor_tuple_elements
Returns settings for displaying this tuple's elements if they fit in the remaining budget. Nested tuples share the budget because the same child can a
crates/ty_python_semantic/src/types/display.rs:184
↓ 1 callersFunctionforce_escape_quote
(body: &str, quote: Quote)
crates/ty_ide/src/completion.rs:2333
↓ 1 callersMethodforce_exclude
(&self)
crates/ty/src/args.rs:253
↓ 1 callersMethodforce_signature_name
(&self)
crates/ty_python_semantic/src/types/display.rs:223
↓ 1 callersFunctionforeign_key_id_member
Synthesize `<field>_id` attributes for foreign keys using the referenced field's type. For example, `Book().author_id` has type `int`, matching `Auth
crates/ty_python_semantic/src/types/dedicated/django.rs:329
↓ 1 callersMethodforget_storage_on_exit
Skips dropping cached Salsa data when the CLI is about to exit. The remaining fields drop normally so the uv worker pool receives its shutdown signal.
crates/ty_project/src/db.rs:156
↓ 1 callersFunctionformat
(args: FormatCommand, global_options: GlobalConfigArgs)
crates/ruff/src/lib.rs:214
↓ 1 callersMethodformat
(&self, f: &mut Formatter<Context>)
crates/ruff_formatter/src/arguments.rs:28
↓ 1 callersMethodformat
(&self)
crates/ruff_python_formatter/src/statement/stmt_try.rs:55
↓ 1 callersMethodformatSignatureHelp
( signatureHelp: any, )
playground/ty/src/Editor/Editor.tsx:552
↓ 1 callersFunctionformatSubDiagnostic
( subDiagnostic: Diagnostic["subDiagnostics"][number], )
playground/ruff/src/Editor/SourceEditor.tsx:271
↓ 1 callersFunctionformat_and_debug_print
(source: &str, cli: &Cli, source_path: &Path)
crates/ruff_python_formatter/src/cli.rs:49
↓ 1 callersFunctionformat_and_format
( baseline_formatter: Formatter, ruff_baseline_executable: Path, ruff_comparison_executable: Path,
python/ruff-ecosystem/ruff_ecosystem/format.py:203
↓ 1 callersFunctionformat_case
( try_statement: &'a StmtTry, kind: CaseKind, previous_node: Option<&'a Stmt>, dangling_commen
crates/ruff_python_formatter/src/statement/stmt_try.rs:125
↓ 1 callersFunctionformat_char
Format a Python integer as a Rust character literal.
scripts/update_ambiguous_characters.py:85
↓ 1 callersFunctionformat_comment
Formats the content of the passed comment. Adds a whitespace between `#` and the comment text except if the first character is a `#`, `:`, `'`, `!`,
crates/ruff_python_formatter/src/comments/format.rs:296
↓ 1 callersFunctionformat_confusables_rs
Format the downloaded data into a Rust source file.
scripts/update_ambiguous_characters.py:93
↓ 1 callersFunctionformat_contents
Format a single docs content.
scripts/check_docs_formatted.py:199
↓ 1 callersFunctionformat_dev_file
( input_path: &Path, stability_check: bool, write: bool, options: PyFormatOptions, )
crates/ruff_dev/src/format_dev.rs:813
↓ 1 callersFunctionformat_dev_multi_project
Checks a directory of projects
crates/ruff_dev/src/format_dev.rs:317
↓ 1 callersFunctionformat_diff
Format a difference with percentage and direction indicator.
scripts/memory_report.py:118
← previousnext →9,501–9,600 of 31,562, ranked by callers