Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/astral-sh/ruff
/ functions
Functions
31,766 in github.com/astral-sh/ruff
⨍
Functions
31,766
◇
Types & classes
7,128
↳
Endpoints
82
↓ 1 callers
Function
definitions_to_implementation_targets
( db: &dyn Db, definitions: Vec<ResolvedDefinition>, )
crates/ty_ide/src/goto_implementation.rs:170
↓ 1 callers
Function
delattr_with_constant
B043
crates/ruff_linter/src/rules/flake8_bugbear/rules/delattr_with_constant.rs:65
↓ 1 callers
Method
delayed_annotations
Return the list of delayed annotations for the given [`BindingId`].
crates/ruff_python_semantic/src/model.rs:2049
↓ 1 callers
Method
delete_associated_bindings
(&mut self, place: ScopedPlaceId)
crates/ty_python_core/src/builder.rs:1545
↓ 1 callers
Function
delete_full_slice
FURB131
crates/ruff_linter/src/rules/refurb/rules/delete_full_slice.rs:60
↓ 1 callers
Method
delimited_range
Returns the range inside a delimiter pair that bounds the given range.
crates/ty_ide/src/folding_range.rs:540
↓ 1 callers
Function
demote_diagnostics
Demotes matched diagnostics to hints and adds a note identifying the baseline.
crates/ty_project/src/baseline.rs:95
↓ 1 callers
Method
demote_subject
Mark every contribution as referring to a value extracted from the current subject.
crates/ty_python_semantic/src/types/narrow.rs:359
↓ 1 callers
Method
denoted
( &self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, )
crates/ty_python_semantic/src/types/union_type_instance.rs:60
↓ 1 callers
Function
dependency_metadata
(root: &SystemPath, path: &SystemPath, dependencies: &[&str])
crates/ty_project/src/uv/environments.rs:1083
↓ 1 callers
Method
dependency_metadata
(&self, file: File)
crates/ty_test/src/db.rs:182
↓ 1 callers
Function
dependents
()
crates/ruff/tests/analyze_graph.rs:100
↓ 1 callers
Method
deprecated
(mut self, deprecated: bool)
crates/ty_ide/src/completion.rs:609
↓ 1 callers
Function
deprecated_abc_decorator
UP051
crates/ruff_linter/src/rules/pyupgrade/rules/deprecated_abc_decorator.rs:76
↓ 1 callers
Function
deprecated_c_element_tree
UP023
crates/ruff_linter/src/rules/pyupgrade/rules/deprecated_c_element_tree.rs:62
↓ 1 callers
Function
deprecated_function
NPY003
crates/ruff_linter/src/rules/numpy/rules/deprecated_function.rs:60
↓ 1 callers
Function
deprecated_import
UP035
crates/ruff_linter/src/rules/pyupgrade/rules/deprecated_import.rs:758
↓ 1 callers
Function
deprecated_mock_attribute
UP026
crates/ruff_linter/src/rules/pyupgrade/rules/deprecated_mock_import.rs:264
↓ 1 callers
Function
deprecated_mock_import
UP026
crates/ruff_linter/src/rules/pyupgrade/rules/deprecated_mock_import.rs:287
↓ 1 callers
Function
deprecated_type_alias
NPY001
crates/ruff_linter/src/rules/numpy/rules/deprecated_type_alias.rs:56
↓ 1 callers
Function
deprecated_unittest_alias
UP005
crates/ruff_linter/src/rules/pyupgrade/rules/deprecated_unittest_alias.rs:83
↓ 1 callers
Method
deref
(&self)
crates/ruff_formatter/src/format_element.rs:189
↓ 1 callers
Method
deref
(&self)
crates/ruff/src/commands/completions/config.rs:83
↓ 1 callers
Function
derive_cache_key
(item: &DeriveInput)
crates/ruff_macros/src/cache_key.rs:7
↓ 1 callers
Method
description
(&self)
crates/ruff/src/args.rs:946
↓ 1 callers
Method
description
Returns the wording used for this variable kind in diagnostics.
crates/ty_python_semantic/src/types/overrides.rs:1673
↓ 1 callers
Method
description
(self)
crates/ruff_linter/src/codes.rs:174
↓ 1 callers
Function
description_block_start
Returns the byte offset where `description` first needs block-style rendering.
crates/ty_ide/src/docstring/markdown/structured.rs:344
↓ 1 callers
Method
descriptor_binding
( &self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, )
crates/ty_python_semantic/src/types/bound_super.rs:300
↓ 1 callers
Function
descriptor_get_result
( return_type: Type<'db>, kind: AttributeKind, error: Option<DescriptorGetCallContext<'db>>, )
crates/ty_python_semantic/src/types.rs:881
↓ 1 callers
Function
descriptor_protocol_member
Derive the observable capabilities of a descriptor bound on a protocol class.
crates/ty_python_semantic/src/types/protocol_class.rs:2553
↓ 1 callers
Function
descriptor_setter_accepts_receiver
( db: &'db dyn Db, program: Program<'db>, descriptor_ty: Type<'db>, receiver_ty: Type<'db>, )
crates/ty_python_semantic/src/types/attribute_write.rs:1298
↓ 1 callers
Function
descriptor_setter_signature_domain
Derive the values accepted by one setter overload when they fit in [`Type`].
crates/ty_python_semantic/src/types/attribute_write.rs:1408
↓ 1 callers
Function
descriptor_write_domain
Return the input type accepted by every possible descriptor or instance-storage path. Union alternatives require the intersection of their accepted t
crates/ty_python_semantic/src/types/overrides/attributes.rs:385
↓ 1 callers
Function
desperately_resolve_name
Like `resolve_name` but for cases where it failed to resolve the module and we are now Getting Desperate and willing to try the ancestor directories o
crates/ty_module_resolver/src/resolve.rs:1267
↓ 1 callers
Method
dest
(&self)
crates/ruff_diagnostics/src/source_map.rs:24
↓ 1 callers
Function
detectInitialTheme
()
playground/shared/src/theme.ts:24
↓ 1 callers
Function
detect_indentation
(tokens: &[Token], source: &str)
crates/ruff_python_codegen/src/stylist.rs:88
↓ 1 callers
Function
detect_insecure_crypt_calls
(checker: &Checker, call: &ast::ExprCall)
crates/ruff_linter/src/rules/flake8_bandit/rules/hashlib_insecure_hash_functions.rs:178
↓ 1 callers
Function
detect_insecure_hashlib_calls
( checker: &Checker, call: &ast::ExprCall, hashlib_call: HashlibCall, )
crates/ruff_linter/src/rules/flake8_bandit/rules/hashlib_insecure_hash_functions.rs:133
↓ 1 callers
Function
detect_invalid_pre_py39_decorator_node
Helper for `parse_decorators` to determine if `expr` is a [`dotted_name`] from the decorator grammar before Python 3.9. Returns `Some((error, range))
crates/ruff_python_parser/src/parser/helpers.rs:61
↓ 1 callers
Function
detect_package_root_with_cache
A wrapper around `detect_package_root` to cache filesystem lookups.
crates/ruff_workspace/src/resolver.rs:256
↓ 1 callers
Function
detect_quote
(tokens: &[Token])
crates/ruff_python_codegen/src/stylist.rs:75
↓ 1 callers
Function
detect_set_function_args
Returns function arguments that have already been set. If `offset` is inside an arguments node, this returns the list of argument names that are alre
crates/ty_ide/src/completion.rs:2228
↓ 1 callers
Function
determine_applicability
(binding: &Binding, scope: &Scope, checker: &Checker)
crates/ruff_linter/src/rules/flake8_pyi/rules/unaliased_collections_abc_set_import.rs:93
↓ 1 callers
Function
determine_git_protocol
(argv: list[str] | None = None)
scripts/update_schemastore.py:152
↓ 1 callers
Method
diagnosticAnnotationRelatedInformation
( annotation: DiagnosticAnnotation, message: string, )
playground/ty/src/Editor/Editor.tsx:1029
↓ 1 callers
Function
diagnosticDisplayMessage
(diagnostic: Diagnostic)
playground/ty/src/Editor/Editor.tsx:1064
↓ 1 callers
Function
diagnosticLocationRelatedInformation
( message: string, location: DiagnosticLocation | null, resource: editor.ITextModel["uri"], )
playground/ruff/src/Editor/SourceEditor.tsx:250
↓ 1 callers
Function
diagnosticMarkerMessage
(diagnostic: Diagnostic)
playground/ruff/src/Editor/SourceEditor.tsx:211
↓ 1 callers
Function
diagnosticRelatedInformation
( diagnostic: Diagnostic, resource: editor.ITextModel["uri"], )
playground/ruff/src/Editor/SourceEditor.tsx:225
↓ 1 callers
Method
diagnosticRelatedInformation
( diagnostic: Diagnostic, )
playground/ty/src/Editor/Editor.tsx:1004
↓ 1 callers
Function
diagnostic_display_config
(tool_name: &'static str)
crates/mdtest/src/lib.rs:317
↓ 1 callers
Function
diagnostic_edit_range
(range: TextRange, context: &LspDiagnosticContext)
crates/ruff_server/src/lint.rs:577
↓ 1 callers
Function
diagnostic_for
Return the [`Diagnostic`] for the given import type.
crates/ruff_linter/src/rules/flake8_type_checking/rules/typing_only_runtime_import.rs:554
↓ 1 callers
Function
diagnostic_for_argument
Check if the `deprecated` keyword argument is being used and create a diagnostic if so along with a possible `replacement`.
crates/ruff_linter/src/rules/airflow/rules/removal_in_3.rs:1147
↓ 1 callers
Function
diagnostic_for_argument
Check if the `deprecated` keyword argument is being used and create a diagnostic if so along with a possible `replacement`.
crates/ruff_linter/src/rules/airflow/rules/suggested_to_update_3_0.rs:120
↓ 1 callers
Method
diagnostic_kind
( self, checker: &'a Checker<'b>, argument_name: String, range: TextRange,
crates/ruff_linter/src/rules/pep8_naming/rules/invalid_first_argument_name.rs:170
↓ 1 callers
Function
diagnostic_kind_for_operator
( operator: TokenKind, range: TextRange, context: &'a LintContext<'a>, )
crates/ruff_linter/src/rules/pycodestyle/rules/logical_lines/missing_whitespace_around_operator.rs:344
↓ 1 callers
Method
diagnostic_overload_indexes
Returns the distinct source overload indexes that should be shown in diagnostics. Bound method overloads preserve their source indexes after receiver
crates/ty_python_semantic/src/types/call/bind.rs:3877
↓ 1 callers
Function
diagnostic_to_json
( diagnostic: &'a Diagnostic, resolver: &'a dyn FileResolver, config: &'a DisplayDiagnosticConfig,
crates/ruff_db/src/diagnostic/render/json.rs:47
↓ 1 callers
Function
diagnostic_to_rdjson
( diagnostic: &'a Diagnostic, resolver: &'a dyn FileResolver, config: &'a DisplayDiagnosticConfig,
crates/ruff_db/src/diagnostic/render/rdjson.rs:62
↓ 1 callers
Method
diagnostic_type
(self)
crates/ty_python_semantic/src/types/typed_dict.rs:1597
↓ 1 callers
Method
diagnostics
(&self)
crates/ty_python_semantic/src/fixes.rs:720
↓ 1 callers
Method
diagnostics
(&self)
crates/ty_python_semantic/src/types/infer.rs:1124
↓ 1 callers
Function
diagnostics_are_equivalent
Compare two diagnostic lists for equality, ignoring the ``source`` field.
scripts/conformance.py:258
↓ 1 callers
Function
diagnostics_to_messages
Convert various error types into a single collection of diagnostics. Also use `directives` to attach noqa offsets to lint diagnostics.
crates/ruff_linter/src/linter.rs:487
↓ 1 callers
Function
dict_get_with_none_default
SIM910
crates/ruff_linter/src/rules/flake8_simplify/rules/ast_expr.rs:256
↓ 1 callers
Function
dict_index_missing_items
PLC0206
crates/ruff_linter/src/rules/pylint/rules/dict_index_missing_items.rs:70
↓ 1 callers
Function
dict_iter_missing_items
PLE1141
crates/ruff_linter/src/rules/pylint/rules/dict_iter_missing_items.rs:70
↓ 1 callers
Method
dictionary_initializer_keys
Appends literal string keys from dictionary initializers that can reach `receiver`. Follows reaching definitions, aliases, `from` imports, and nested
crates/ty_python_semantic/src/semantic_model.rs:784
↓ 1 callers
Method
diff
Get the current diff from git. Arguments are passed to `git diff ...`
python/ruff-ecosystem/ruff_ecosystem/projects.py:572
↓ 1 callers
Method
diff
(&self)
crates/mdtest/src/matcher.rs:77
↓ 1 callers
Function
diff_diagnostics
(before: &'a [Diagnostic], after: &'a [Diagnostic])
crates/ty_python_semantic/src/fixes.rs:2118
↓ 1 callers
Function
diff_diagnostics
( before: Vec<Diagnostic>, after: Vec<Diagnostic>, settings_before: &LinterSettings, settings_
crates/ruff_linter/src/test.rs:94
↓ 1 callers
Function
diff_format
( diff: float, *, greater_is_better: bool = True, neutral: bool = False, )
scripts/conformance.py:847
↓ 1 callers
Function
diff_items
Diff two lists of struct/query items by name. Returns a list of (name, old_bytes, new_bytes) sorted by absolute diff descending.
scripts/memory_report.py:142
↓ 1 callers
Function
diff_show_only_changes
A compact diff that only shows a header and changes, but nothing unchanged. This makes viewing multiple errors easier.
crates/ruff_dev/src/format_dev.rs:601
↓ 1 callers
Function
dir_name
(linter_name: str)
scripts/add_rule.py:36
↓ 1 callers
Function
dir_name
(linter_name: str)
scripts/add_plugin.py:33
↓ 1 callers
Function
direct_logger_instantiation
LOG001
crates/ruff_linter/src/rules/flake8_logging/rules/direct_logger_instantiation.rs:63
↓ 1 callers
Function
direct_subtypes
Finds classes that directly inherit from `target_class`. ```py class Animal: ... class Dog(Animal): ... class LoudDog(Dog): ... ``` For `Animal`, th
crates/ty_python_semantic/src/types/ide_support.rs:1942
↓ 1 callers
Function
directive_errors
Check that the directive itself is valid. This function modifies `diagnostics` in-place.
crates/ruff_linter/src/rules/flake8_todos/rules/todos.rs:325
↓ 1 callers
Method
directly_imported_submodule
Identifies an imported name that resolves to a direct submodule. For example, `old` in `from pkg import old` when it resolves to `pkg/old.py`.
crates/ty_ide/src/will_rename.rs:651
↓ 1 callers
Method
directly_parametrized
Returns whether static parametrization on the function or an enclosing class prevents this fixture request.
crates/ty_python_semantic/src/types/dedicated/pytest/fixtures.rs:831
↓ 1 callers
Method
directories_allowed_for_enumeration
Returns the directories to scan for child module names at the cursor's current position.
crates/ty_module_resolver/src/resolve/search.rs:321
↓ 1 callers
Function
directory_contains_file
(db: &dyn Db, directory: &SystemPath, names: &[&str])
crates/ty_module_resolver/src/path.rs:494
↓ 1 callers
Function
directory_listing_query
( db: &dyn Db, directory: File, )
crates/ruff_db/src/files/directory.rs:103
↓ 1 callers
Function
disable_lru
Disables LRU bookkeeping for all queries defined by this crate. This is useful for short-lived database users that don't need to evict query results
crates/ruff_db/src/lib.rs:71
↓ 1 callers
Method
disallow_name
(self)
crates/ty_python_semantic/src/types/display.rs:2659
↓ 1 callers
Method
disallow_starred_expressions
(self)
crates/ruff_python_parser/src/parser/expression.rs:3174
↓ 1 callers
Method
disallow_yield_expressions
(self)
crates/ruff_python_parser/src/parser/expression.rs:3179
↓ 1 callers
Method
disambiguate_overloads
Apply steps 4 and 5 of overload resolution when multiple overloads accept the arguments.
crates/ty_python_semantic/src/types/call/bind.rs:4295
↓ 1 callers
Method
discard_downstream_constructor
Discards an inactive downstream constructor.
crates/ty_python_semantic/src/types/call/bind/constructor.rs:292
↓ 1 callers
Method
discard_narrowing
Preserve definite truthiness while discarding a conditional narrowing result. This is necessary when a comparison is evaluated through a runtime-equi
crates/ty_python_semantic/src/types/equality.rs:122
↓ 1 callers
Function
discard_todo_metadata
Discard `@Todo`-type metadata from expected types, which is not available when running in release mode.
crates/mdtest/src/matcher.rs:279
↓ 1 callers
Method
discards_extra
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/dedicated/pydantic.rs:71
↓ 1 callers
Method
discover_constraint
Update our sequent map to ensure that it holds all of the sequents that involve the given constraint. We do not calculate the new sequents directly. I
crates/ty_python_semantic/src/types/constraints/paths.rs:766
↓ 1 callers
Function
discover_package_dirs
Discover package directories under `prefix_dir` when the Python version is unknown. Scans `prefix_dir` for subdirectories matching `{python,pypy}3.X`
crates/ty_site_packages/src/lib.rs:1615
↓ 1 callers
Function
discover_project_directory
(file: &SystemPath)
crates/ty_completion_bench/src/main.rs:150
← previous
next →
8,901–9,000 of 31,766, ranked by callers