MCPcopy Create free account

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

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

↓ 3 callersMethodreport_undeclared_protocol_attribute
Report an undeclared protocol attribute written through a method receiver. The instance or class receiver may be referenced directly, from an eager n
crates/ty_python_semantic/src/types/infer/builder.rs:2165
↓ 3 callersMethodrequest_queue_mut
(&mut self)
crates/ty_server/src/session.rs:215
↓ 3 callersMethodrequire_concrete
Ignore members that are only available through a dynamic type.
crates/ty_python_semantic/src/types.rs:1432
↓ 3 callersFunctionrequires_overload_evaluation
Returns whether overload evaluation is required for the given set of overload candidates.
crates/ty_python_semantic/src/types/call/bind.rs:655
↓ 3 callersMethodrequires_read
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, receiver: Type<'db>,
crates/ty_python_semantic/src/types/protocol_class.rs:1502
↓ 3 callersMethodresolve
Return the appropriate [`Settings`] for a given [`Path`].
crates/ruff_workspace/src/resolver.rs:131
↓ 3 callersMethodresolve
Build a `CoveringNode` whose leaf is the callee identifier and run `GotoTarget::from_covering_node`. Returns the resolved goto target and the callee's
crates/ty_ide/src/call_hierarchy.rs:161
↓ 3 callersMethodresolve
(&self, db: &'db dyn Db, index: usize)
crates/ty_python_semantic/src/types/constraints/resolution.rs:74
↓ 3 callersMethodresolve
Given a list of [`PerFile`] patterns, create a compiled set of globs. Returns an error if either of the glob patterns cannot be parsed.
crates/ruff_linter/src/settings/types.rs:787
↓ 3 callersMethodresolve_child
Resolves the given terminal component of a module name. For instance, when resolving the module `acme.tools.power`, this method should be called with
crates/ty_module_resolver/src/resolve/search.rs:286
↓ 3 callersFunctionresolve_component
Resolves one component relative to the candidate's current package.
crates/ty_module_resolver/src/resolve.rs:1539
↓ 3 callersFunctionresolve_default_files
Returns the default set of files if none are provided, otherwise returns provided files.
crates/ruff/src/lib.rs:116
↓ 3 callersMethodresolve_dunder_new_callable
Resolves a `__new__` descriptor before the constructor supplies its implicit `cls`.
crates/ty_python_semantic/src/types.rs:8081
↓ 3 callersFunctionresolve_edit_for_fix_all
( query: &DocumentQuery, client_capabilities: &ResolvedClientCapabilities, encoding: PositionEncod
crates/ruff_server/src/server/api/requests/code_action_resolve.rs:116
↓ 3 callersFunctionresolve_edit_for_organize_imports
( query: &DocumentQuery, client_capabilities: &ResolvedClientCapabilities, encoding: PositionEncod
crates/ruff_server/src/server/api/requests/code_action_resolve.rs:133
↓ 3 callersMethodresolve_file
Resolves one exact filename in this directory, validating file status, symlink targets, and typeshed availability for the configured Python version.
crates/ty_module_resolver/src/path.rs:408
↓ 3 callersFunctionresolve_file_uri_range
Attempts to resolve the location for a file and range. This includes mapping system paths back into their proper vendored path types (if applicable).
crates/ty_server/src/document/range.rs:372
↓ 3 callersFunctionresolve_module_for_rename
Locates a renamed module, preferring its runtime implementation over its typing definition.
crates/ty_ide/src/will_rename.rs:1341
↓ 3 callersFunctionresolve_real_shadowable_module
Resolves a module name to a module (stubs not allowed, some shadowing is allowed). In particular, this allows `typing_extensions` to be shadowed by a
crates/ty_module_resolver/src/resolve.rs:206
↓ 3 callersFunctionresolve_slice_value
Returns an iterator over the expressions in a slice. If the slice is not a tuple, the iterator will only yield the slice.
crates/ruff_linter/src/rules/ruff/typing.rs:23
↓ 3 callersMethodresolve_target_version
Resolve the [`PythonVersion`] to use for formatting. This method respects the per-file version overrides in [`FormatterSettings::per_file_target_vers
crates/ruff_workspace/src/settings.rs:264
↓ 3 callersFunctionresolved_call_signature
Resolve a call expression to its matching overload's signature details, using full type checking (not just arity matching) for overload resolution. F
crates/ty_python_semantic/src/types/ide_support.rs:1581
↓ 3 callersFunctionresolved_condition_definition_info
( db: &'db dyn Db, definition: Definition<'db>, )
crates/ty_python_semantic/src/types/infer/builder/suspicious_conditions/exemptions.rs:567
↓ 3 callersMethodrespond_err
Sends an error response to the client for a given request ID. The response isn't sent immediately. Instead, it's queued up in the main loop.
crates/ty_server/src/session/client.rs:175
↓ 3 callersFunctionrespond_silent_error
Sends back an error response to the server using a [`Client`] without showing a warning to the user.
crates/ty_server/src/server/api.rs:548
↓ 3 callersFunctionrestore
()
playground/ty/src/Editor/persist.ts:52
↓ 3 callersMethodrestriction_type
Reconstruct a constraint containing only this enum value restriction.
crates/ty_python_semantic/src/types/equality/enums.rs:633
↓ 3 callersMethodresult_type
(&self)
crates/ty_python_semantic/src/types/subscript.rs:252
↓ 3 callersMethodretained_node_index
(&self, id: NodeId)
crates/ty_python_semantic/src/types/constraints.rs:356
↓ 3 callersFunctionreturn_type_hint_test
(source: &str)
crates/ty_ide/src/inlay_hints.rs:960
↓ 3 callersMethodrevision
(&self)
crates/ty_server/src/session.rs:1720
↓ 3 callersMethodright_operand
(self)
crates/ruff_python_formatter/src/expression/binary_like.rs:1085
↓ 3 callersMethodroot
(context: &ResolverContext<'db>, search_path: &SearchPath)
crates/ty_module_resolver/src/resolve.rs:1337
↓ 3 callersMethodroot
(&self)
crates/ruff_server/tests/e2e/main.rs:1212
↓ 3 callersMethodrule
Property violations have a dedicated rule, including incompatible writes.
crates/ty_python_semantic/src/types/overrides/attributes.rs:440
↓ 3 callersMethodrule_is_ignored
Return `true` if a [`Rule`] is disabled by a `noqa` directive.
crates/ruff_linter/src/checkers/ast/mod.rs:321
↓ 3 callersMethodrules
Returns rules matching the selector, taking into account rule statuses like preview and deprecated.
crates/ruff_linter/src/rule_selector.rs:270
↓ 3 callersFunctionrun
Run `path` as a markdown test suite with given `title`. Panic on test failure, and print failure details.
crates/ty_test/src/lib.rs:44
↓ 3 callersFunctionrun
(args: Args)
crates/ruff/src/lib.rs:128
↓ 3 callersMethodrun
(self)
scripts/ty_benchmark/src/benchmark/test_lsp_diagnostics.py:258
↓ 3 callersFunctionsame_module_uncached_raw_signature
## Warning This uses the semantic index to find the definition of the function. This means that if the calling query is not in the same file as this
crates/ty_python_semantic/src/types/function.rs:1136
↓ 3 callersMethodsatisfied_path
(&mut self)
crates/ty_python_semantic/src/types/constraints.rs:3793
↓ 3 callersMethodsave
(&mut self)
crates/ruff/src/cache.rs:202
↓ 3 callersMethodschedule_one
Submits one background synchronization. Submission does not wait for queue space. Cancellation skips a job that has not started, but still produces a
crates/ty_project/src/uv/service.rs:62
↓ 3 callersFunctionscope
()
crates/ruff_linter/resources/test/fixtures/pycodestyle/E731.py:1
↓ 3 callersMethodscript_uses_uv
(&self)
crates/ty_project/src/metadata/options.rs:157
↓ 3 callersFunctionsearch
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, ty: Type<'db>, query: &impl
crates/ty_python_semantic/src/types/visitor.rs:1113
↓ 3 callersMethodsearch_path
The search path from which the module was resolved. It is guaranteed that if `None` is returned, then this is a namespace package. Otherwise, this is
crates/ty_module_resolver/src/module.rs:105
↓ 3 callersMethodsecondary_file_start
(&self)
crates/ruff_annotate_snippets/src/renderer/mod.rs:329
↓ 3 callersFunctionsecret_display
(secret_field: SecretField[Any])
crates/ruff_benchmark/resources/pydantic/types.py:500
↓ 3 callersFunctionsections
Returns recognized NumPy-style sections in source order. `source` must have already undergone PEP-257 trimming and universal newline normalization (t
crates/ty_ide/src/docstring/document/numpy.rs:113
↓ 3 callersMethodselect_return_type
Chooses the return type of a call, potentially correlating multiple compatible specializations. This method also returns a flag indicating whether th
crates/ty_python_semantic/src/types/call/bind.rs:6582
↓ 3 callersFunctionsemantic_tokens_full_for_cell
( server: &mut TestServer, cell_uri: &lsp_types::Uri, )
crates/ty_server/tests/e2e/notebook.rs:777
↓ 3 callersMethodsend_request_raw
(&self, session: &Session, request: SendRequest)
crates/ty_server/src/session/client.rs:77
↓ 3 callersMethodset_edits_for_document
Sets the edits made to a specific document. This should only be called once for each document `uri`, and will fail if this is called for the same `uri
crates/ruff_server/src/edit.rs:134
↓ 3 callersMethodset_env_vars
Sets multiple environment variable overrides.
crates/ruff_db/src/system/test.rs:59
↓ 3 callersMethodset_fallback_options
Sets the lowest-precedence options for this project, replacing any previous fallbacks.
crates/ty_project/src/metadata.rs:471
↓ 3 callersMethodset_fixes_for_document
Sets a series of [`Fixes`] for a text or notebook document.
crates/ruff_server/src/edit.rs:116
↓ 3 callersMethodset_indent_level
(&mut self, level: IndentLevel)
crates/ruff_python_formatter/src/context.rs:69
↓ 3 callersMethodset_override_options
(&mut self, options: Options)
crates/ty/tests/file_watching.rs:428
↓ 3 callersFunctionset_program_version
Sets the version of the executing program. ## Errors If the version has already been initialized (can only be set once).
crates/ruff_db/src/lib.rs:63
↓ 3 callersMethodset_python_version
(&mut self, python_version: PythonVersion)
crates/ty_project/src/db.rs:824
↓ 3 callersMethodset_watch
Controls whether setup starts watching. Defaults to true. When false, call [`TestCase::start_watching`] after preparing the filesystem.
crates/ty/tests/file_watching.rs:442
↓ 3 callersMethodsettings
Return an iterator over the resolved [`Settings`] in this [`Resolver`].
crates/ruff_workspace/src/resolver.rs:217
↓ 3 callersFunctionsetup
()
crates/ruff_benchmark/benches/ty.rs:131
↓ 3 callersMethodsetup_dataclass_field_specifiers
If the current scope is a class body scope of a dataclass-like class, populate `self.dataclass_field_specifiers` with the field specifiers from the cl
crates/ty_python_semantic/src/types/infer/builder.rs:993
↓ 3 callersMethodsetup_iteration
(&self)
crates/ruff_benchmark/benches/ty_walltime.rs:39
↓ 3 callersFunctionsetup_uv_with_system
Creates a project with the selected uv mode and test command environment. Lets the test control Python environment creation and synchronization. Insta
crates/ty/tests/file_watching.rs:4465
↓ 3 callersFunctionsetup_with_system
(setup_files: F, configure_system: C)
crates/ty/tests/file_watching.rs:476
↓ 3 callersMethodseverity
Returns the configured severity for the lint with the given id or `None` if the lint is disabled.
crates/ty_python_semantic/src/lint.rs:654
↓ 3 callersMethodshadowed_binding
Return the [`BindingId`] that the given [`BindingId`] shadows, if any. Note that this will only return bindings that are shadowed by a binding in a p
crates/ruff_python_semantic/src/model.rs:372
↓ 3 callersFunctionshareUrl
* Persist the workspace and generate a shareable URL.
playground/ty/src/Editor/persist.ts:17
↓ 3 callersFunctionshareUrl
* Save the configuration and return a shareable URL.
playground/ruff/src/Editor/settings.ts:26
↓ 3 callersMethodshould_annotation_be_displayed
Whether or not the type of this parameter should be displayed.
crates/ty_python_semantic/src/types/signatures.rs:6353
↓ 3 callersMethodshould_check_redundant_conditions
Whether we should check for redundant conditions in the current inference context. We skip the checks if: - It's a third-party file - It's a stub fi
crates/ty_python_semantic/src/types/infer/builder/suspicious_conditions/mod.rs:396
↓ 3 callersMethodshould_expect_panic
(&self)
crates/mdtest/src/parser.rs:162
↓ 3 callersMethodshould_prefer_expected_type
(self)
crates/ty_python_semantic/src/types/infer/type_context.rs:103
↓ 3 callersMethodshould_show_diagnostic
Whether a diagnostic should be included in result IDs and LSP output.
crates/ty_server/src/session/settings.rs:22
↓ 3 callersMethodshould_visit_lazy_type_attributes
(&self)
crates/ty_python_semantic/src/types/cyclic.rs:672
↓ 3 callersMethodshow_message
Shows a message to the user. This opens a pop up in VS Code showing `message`.
crates/ty_server/src/session/client.rs:189
↓ 3 callersMethodshow_message
Shows a message to the user. This opens a pop up in VS Code showing `message`.
crates/ruff_server/src/session/client.rs:171
↓ 3 callersFunctionsimplify_intersection_pair
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, first: Type<'db>, second: Type<'db>, pol
crates/ty_python_semantic/src/types/set_theoretic/builder.rs:1935
↓ 3 callersMethodsimulate_runtime_load_at_location_in_scope
Simulates a runtime load of the given symbol. This should not be run until after all the bindings have been visited. The main purpose of this method
crates/ruff_python_semantic/src/model.rs:975
↓ 3 callersMethodsite_packages_directories
Return a list of `site-packages` directories that are available from this virtual environment See the documentation for [`site_packages_directories_f
crates/ty_site_packages/src/lib.rs:881
↓ 3 callersFunctionskip_script_comments
Parses the rest of a [PEP 723](https://peps.python.org/pep-0723/) script comment and moves `comments` past the script comment's end unless the script
crates/ruff_linter/src/rules/eradicate/rules/commented_out_code.rs:87
↓ 3 callersFunctionskip_until
( src: str, pos: Pos, expect: str, *, error_on: frozenset[str], error_on_eof: bool, )
crates/ruff_benchmark/resources/tomllib/_parser.py:241
↓ 3 callersFunctionslice_shift_byte
(a: &[u8])
crates/ruff_unicode_names2/src/jamo.rs:35
↓ 3 callersFunctionslot
Uses the high six bits of the product to select one of 64 slots.
crates/ruff_python_parser/src/lexer/keywords.rs:75
↓ 3 callersMethodsnapshot
(&self)
crates/ty_python_core/src/use_def/exception_checkpoint.rs:53
↓ 3 callersFunctionsnapshot_item_label
(item: &CallHierarchyItem)
crates/ty_ide/src/call_hierarchy.rs:126
↓ 3 callersFunctionsoft_line_break
()
crates/ruff_formatter/src/builders.rs:69
↓ 3 callersFunctionsolution
(solved_typevars: impl IntoIterator<Item = TypeVarSolution<'db>>)
crates/ty_python_semantic/src/types/constraints/projection/tests.rs:86
↓ 3 callersMethodsolve_typevar
( &self, constraints: &ConstraintSetBuilder<'db>, bounds: &CandidateTypeVarSolution<'d
crates/ty_python_semantic/src/types/call/bind.rs:7243
↓ 3 callersFunctionsome_function
()
crates/ruff_linter/resources/test/fixtures/flake8_tidy_imports/TID/my_package/sublib/protocol/UpperCaseModule.py:1
↓ 3 callersFunctionsort_workspace_diagnostic_response
(response: &mut WorkspaceDiagnosticReport)
crates/ty_server/tests/e2e/pull_diagnostics.rs:1197
↓ 3 callersMethodsource
(&self)
crates/ruff_server/src/lint.rs:329
↓ 3 callersMethodsource
Creates a source narrowed by the constraints accumulated before it. `exit_constraint`, when present, is activated only after the source is requested
crates/ty_python_semantic/src/place_load.rs:1394
↓ 3 callersMethodsource
(&self)
crates/ruff_linter/src/checkers/ast/mod.rs:527
↓ 3 callersFunctionsource_location_to_position
(location: &SourceLocation)
crates/ty_server/src/document/range.rs:349
↓ 3 callersMethodsource_map_generation
(&self)
crates/ruff_python_formatter/src/options.rs:135
← previousnext →4,601–4,700 of 31,766, ranked by callers