MCPcopy Create free account

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

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

↓ 1 callersFunctionsavePlayground
(playground: Playground)
playground/ty/src/Editor/api.ts:27
↓ 1 callersFunctionsavePlayground
(playground: Playground)
playground/ruff/src/Editor/api.ts:24
↓ 1 callersMethodschemastore_repos
(self)
scripts/update_schemastore.py:72
↓ 1 callersMethodscope
(self, db: &'db dyn Db)
crates/ty_python_core/src/definition.rs:80
↓ 1 callersMethodscope
(self, db: &'db dyn Db)
crates/ty_python_core/src/statement.rs:68
↓ 1 callersMethodscope
(self, db: &'db dyn Db)
crates/ty_python_core/src/scope.rs:58
↓ 1 callersMethodscope
(self, db: &'db dyn Db)
crates/ty_python_core/src/predicate.rs:337
↓ 1 callersMethodscoped_completions
Returns completions for symbols available in the scope containing the given expression. If a scope could not be determined, then completions for the
crates/ty_python_semantic/src/semantic_model.rs:322
↓ 1 callersMethodscript
(self, name: str)
scripts/ty_benchmark/src/benchmark/venv.py:50
↓ 1 callersFunctionscript_line_content
(line: &str)
crates/ruff_linter/src/rules/eradicate/rules/commented_out_code.rs:127
↓ 1 callersFunctionscript_metadata_tokens
Highlights embedded TOML without treating its Python comment prefixes as TOML content.
crates/ty_ide/src/semantic_tokens.rs:221
↓ 1 callersFunctionscript_python
(db: &dyn Db)
crates/ty_project/src/uv/environments.rs:786
↓ 1 callersFunctionscript_sync_task
(db: &dyn Db, file: File)
crates/ty_project/src/uv/environments.rs:767
↓ 1 callersFunctionscripts
Yield paths to Python scripts containing PEP 723 metadata. The paths are relative to the repository root. Files ignored by the root `.gitigno
scripts/check-scripts.py:54
↓ 1 callersFunctionsearch_path_may_contain_stub_package
(db: &dyn Db, search_path: &SearchPath)
crates/ty_module_resolver/src/resolve.rs:562
↓ 1 callersFunctionsecondary_annotations
Returns all annotations, skipping the first primary annotation.
crates/ruff_db/src/diagnostic/mod.rs:750
↓ 1 callersMethodsecondary_code
Set the secondary code on the diagnostic.
crates/ruff_db/src/diagnostic/render.rs:2819
↓ 1 callersFunctionsection_block_at
(range: TextRange, items: Vec<SectionItem>)
crates/ty_ide/src/docstring/markdown/structured.rs:1061
↓ 1 callersFunctionsection_item
(kind: SectionKind, fragment: numpy::BodyFragment)
crates/ty_ide/src/docstring/markdown/structured/numpy.rs:30
↓ 1 callersFunctionsection_item
(kind: SectionKind, fragment: google::BodyFragment)
crates/ty_ide/src/docstring/markdown/structured/google.rs:26
↓ 1 callersFunctionsection_kind
(line: &str)
crates/ty_ide/src/docstring/document/numpy.rs:396
↓ 1 callersFunctionsections
D212, D214, D215, D405, D406, D407, D408, D409, D410, D411, D412, D413, D414, D416, D417, D420
crates/ruff_linter/src/rules/pydocstyle/rules/sections.rs:1448
↓ 1 callersMethodsections
(&self)
crates/ruff_linter/src/docstrings/styles.rs:12
↓ 1 callersMethodseen
Returns `true` if the exception was re-raised.
crates/ruff_linter/src/rules/flake8_blind_except/rules/blind_except.rs:151
↓ 1 callersMethodseen_builtin_type
(&mut self, name: &str)
crates/ruff_linter/src/rules/flake8_pyi/rules/redundant_numeric_union.rs:313
↓ 1 callersMethodseen_module_docstring_boundary
Return `true` if the model has traversed past the module docstring boundary.
crates/ruff_python_semantic/src/model.rs:2295
↓ 1 callersMethodsegment_infos
(&self)
crates/ty_python_core/src/member.rs:182
↓ 1 callersFunctionsegments
Constructs a list of segments that represent the entire source docstring by interleaving raw segments with structured ones (the latter of which are co
crates/ty_ide/src/docstring/markdown/structured.rs:85
↓ 1 callersMethodselect_keywords
Selects the keywords valid at this position. `after` applies after the complete, possibly parenthesized range, while `inside_parentheses` applies bef
crates/ty_ide/src/completion.rs:925
↓ 1 callersFunctionselector_range
Return the source range of the selector inside its TOML quotes. Callers must first validate the decoded string as a rule code or redirect. This ensur
crates/ruff_linter/src/toml/rule_selectors.rs:135
↓ 1 callersMethodselectors_by_kind
(&self)
crates/ruff_workspace/src/configuration.rs:140
↓ 1 callersFunctionself_annotated_assignment
PLW0127
crates/ruff_linter/src/rules/pylint/rules/self_assigning_variable.rs:66
↓ 1 callersFunctionself_assignment
PLW0127
crates/ruff_linter/src/rules/pylint/rules/self_assigning_variable.rs:42
↓ 1 callersFunctionself_environment_search_paths
Return the site-packages from the environment ty is installed in, as derived from ty's executable. If there's an existing environment with an origin
crates/ty_project/src/metadata/options.rs:828
↓ 1 callersFunctionself_or_cls_assignment
PLW0642
crates/ruff_linter/src/rules/pylint/rules/self_or_cls_assignment.rs:77
↓ 1 callersFunctionsemantic_tokens
()
crates/ty_server/tests/e2e/notebook.rs:233
↓ 1 callersFunctionsemicolon_before_and_after
( checker: &Checker, statement: TextRange, )
crates/ruff_linter/src/rules/perflint/helpers.rs:28
↓ 1 callersMethodsentinel_definition_scope_is_supported
(&self)
crates/ty_python_semantic/src/types/infer/builder.rs:3949
↓ 1 callersMethodsentinel_name_matches_target
Sentinel names can be unqualified or include their exact enclosing class path.
crates/ty_python_semantic/src/types/infer/builder.rs:3920
↓ 1 callersFunctionsequence_from_type
( db: &'db dyn Db, tuple: &TupleSpec<'db>, )
crates/ty_python_semantic/src/types/unpacker.rs:574
↓ 1 callersFunctionsequence_pattern_is_exhaustive_for_subject
Return whether an exact tuple subject is fully consumed by a sequence pattern. Each aligned element is checked with the subject-aware matcher so nest
crates/ty_python_semantic/src/types/match_pattern.rs:638
↓ 1 callersMethodsequent_fuel_cost
Returns how much sequent fuel is needed to derive this constraint. This cost is driven by two factors. First, nested types containing typevars can p
crates/ty_python_semantic/src/types/constraints/sequents.rs:2205
↓ 1 callersMethodserialize
(&self, serializer: S)
crates/ruff_db/src/diagnostic/render/json.rs:131
↓ 1 callersFunctionserver
(args: ServerCommand)
crates/ruff/src/lib.rs:233
↓ 1 callersFunctionserver_rename_options
()
crates/ty_server/src/capabilities.rs:585
↓ 1 callersFunctionsetCopyText
()
docs/js/extra.js:20
↓ 1 callersFunctionsetValues
(selected = allValues)
docs/js/rule-filters.js:69
↓ 1 callersMethodset_align
Adds an `align` of `count` spaces to the current indentation. It increments the `level` value if the current value is [`Indent::IndentAlign`].
crates/ruff_formatter/src/printer/mod.rs:1021
↓ 1 callersMethodset_branch
Set the current [`BranchId`].
crates/ruff_python_semantic/src/model.rs:1461
↓ 1 callersMethodset_constructor_instance_type_in_place
( &mut self, db: &'db dyn Db, constructor_instance_type: Type<'db>, )
crates/ty_python_semantic/src/types/call/bind.rs:708
↓ 1 callersMethodset_current_block_edges
Draws provided edges out of the current basic block. This should only be called once on any given block.
crates/ruff_python_semantic/src/cfg/graph.rs:315
↓ 1 callersMethodset_current_block_stmts
Populates the current basic block with the given set of statements. This should only be called once on any given block.
crates/ruff_python_semantic/src/cfg/graph.rs:304
↓ 1 callersFunctionset_current_thread_qos_class
(class: QoSClass)
crates/ty_server/src/server/schedule/thread/priority.rs:42
↓ 1 callersFunctionset_current_thread_qos_class
(class: QoSClass)
crates/ruff_server/src/server/schedule/thread/priority.rs:42
↓ 1 callersMethodset_diagnostics
(&mut self, diagnostics: Vec<Diagnostic>)
crates/ty_project/src/files.rs:268
↓ 1 callersMethodset_docstring
(&mut self, is_docstring: bool)
crates/ruff_python_formatter/src/string/implicit.rs:279
↓ 1 callersMethodset_downstream_constructor
(&mut self, bindings: Bindings<'db>)
crates/ty_python_semantic/src/types/call/bind/constructor.rs:93
↓ 1 callersMethodset_dunder_call_is_possibly_unbound
(&mut self)
crates/ty_python_semantic/src/types/call/bind.rs:928
↓ 1 callersMethodset_files
(&mut self, _files: usize)
crates/ty_project/src/lib.rs:198
↓ 1 callersMethodset_force_exclude
(self, db: &mut dyn Db, force: bool)
crates/ty_project/src/lib.rs:628
↓ 1 callersMethodset_formatted
(&self, path: RelativePathBuf, key: &FileCacheKey)
crates/ruff/src/cache.rs:297
↓ 1 callersMethodset_globals_id
Set the globals pointer for this scope.
crates/ruff_python_semantic/src/scope.rs:145
↓ 1 callersMethodset_header_offset
Add an offset for aligning the header sigil with the line number separators in a diff.
crates/ruff_db/src/diagnostic/mod.rs:527
↓ 1 callersMethodset_headline_message
Sets the headline message for this diagnostic.
crates/ruff_db/src/diagnostic/mod.rs:235
↓ 1 callersMethodset_if_chain_start
(&mut self, snapshot: Option<FlowSnapshot>)
crates/ty_python_core/src/use_def.rs:2945
↓ 1 callersMethodset_impl
(&mut self)
crates/ty_project/src/files.rs:278
↓ 1 callersMethodset_implicit_dunder_init_is_possibly_unbound
(&mut self)
crates/ty_python_semantic/src/types/call/bind.rs:945
↓ 1 callersMethodset_implicit_dunder_new_is_possibly_unbound
(&mut self)
crates/ty_python_semantic/src/types/call/bind.rs:941
↓ 1 callersMethodset_index
Sets the index for the system.
crates/ty_server/src/system.rs:110
↓ 1 callersMethodset_lazy_modules
Extract literal module names, merging conditional assignments with the current state.
crates/ruff_python_semantic/src/model.rs:2441
↓ 1 callersMethodset_linted
(&self, path: RelativePathBuf, key: &FileCacheKey, yes: bool)
crates/ruff/src/cache.rs:293
↓ 1 callersMethodset_loop_header
(&mut self, id: LoopHeaderId, header: LoopHeader)
crates/ty_python_core/src/use_def.rs:2308
↓ 1 callersFunctionset_max_iterations
(max: usize)
crates/ruff_linter/src/test.rs:234
↓ 1 callersMethodset_narrowed_type
Installs inference's narrowing result, preserving boundness and qualifiers.
crates/ty_python_semantic/src/place_load.rs:249
↓ 1 callersMethodset_offset
(&mut self, mut it: I, offset: usize)
crates/ruff_unicode_names2_generator/src/trie.rs:25
↓ 1 callersMethodset_optional_fix
If `fix` is `Some`, set the fix for this diagnostic.
crates/ruff_db/src/diagnostic/mod.rs:396
↓ 1 callersFunctionset_property
(value: &JsValue, name: &str, property: &JsValue)
crates/ruff_wasm/tests/api.rs:50
↓ 1 callersMethodset_seen_non_trivia_token
(&mut self)
crates/ty_python_semantic/src/suppression.rs:652
↓ 1 callersMethodset_severity
Sets the severity of this diagnostic.
crates/ruff_db/src/diagnostic/mod.rs:290
↓ 1 callersMethodset_shutdown_requested
(&mut self, requested: bool)
crates/ty_server/src/session.rs:233
↓ 1 callersMethodset_shutdown_requested
(&mut self, requested: bool)
crates/ruff_server/src/session.rs:95
↓ 1 callersMethodset_source
Update the [`SourceValue`] of the cell.
crates/ruff_notebook/src/cell.rs:46
↓ 1 callersMethodset_suspended_workspace_diagnostics_request
( &mut self, request: SuspendedWorkspaceDiagnosticRequest, client: &Client, )
crates/ty_server/src/session.rs:237
↓ 1 callersMethodset_unstaged
Sets unstaged changes for `file`.
crates/ty_python_semantic/src/fixes.rs:619
↓ 1 callersMethodset_user_configuration_directory
(&self, directory: Option<SystemPathBuf>)
crates/ruff_db/src/system/test.rs:389
↓ 1 callersMethodset_uses_locals
Sets the [`ScopeFlags::USES_LOCALS`] flag.
crates/ruff_python_semantic/src/scope.rs:155
↓ 1 callersFunctionset_value
(new_value: int)
crates/ruff_linter/resources/test/fixtures/pyflakes/F821_34.py:29
↓ 1 callersMethodset_verbosity
(&mut self, verbose: bool)
crates/ty_test/src/db.rs:69
↓ 1 callersFunctionsetattr_with_constant
B010
crates/ruff_linter/src/rules/flake8_bugbear/rules/setattr_with_constant.rs:95
↓ 1 callersMethodsetting_source
( &self, options: &'a Options, )
crates/ty_project/src/metadata/options.rs:2351
↓ 1 callersFunctionsettings_diagnostic
Returns a diagnostic if the configured baseline cannot be loaded.
crates/ty_project/src/baseline.rs:89
↓ 1 callersFunctionsettings_diagnostic_path_from_sys_prefix
Return a [`SystemPathBuf`] to use for anchoring settings diagnostics surfaced while analyzing the interpreter at the given `sys.prefix`.
crates/ty_site_packages/src/lib.rs:188
↓ 1 callersMethodsettings_for_path
Returns the client settings for the workspace at the given path, [`None`] if there's no workspace registered for the path.
crates/ty_server/src/session.rs:1794
↓ 1 callersMethodsettings_for_path
(&self, path: &Path)
crates/ruff_server/src/session/index.rs:380
↓ 1 callersMethodsetup
(self)
scripts/ty_benchmark/src/benchmark/test_lsp_diagnostics.py:255
↓ 1 callersMethodsetup
(self, context: &mut SetupContext)
crates/ty/tests/file_watching.rs:450
↓ 1 callersMethodsetup
(self)
crates/ruff_linter/resources/test/fixtures/pylint/non_slot_assignment.py:9
↓ 1 callersMethodsetup
(self)
crates/ruff_linter/resources/test/fixtures/pylint/non_slot_assignment.py:21
↓ 1 callersMethodsetup
(self)
crates/ruff_linter/resources/test/fixtures/pylint/non_slot_assignment.py:33
↓ 1 callersMethodsetup
(self)
crates/ruff_linter/resources/test/fixtures/pylint/non_slot_assignment.py:45
← previousnext →13,001–13,100 of 31,562, ranked by callers