MCPcopy Create free account

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

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

↓ 1 callersMethodcurrent_section_has_merged_snippets
(&self)
crates/mdtest/src/parser.rs:950
↓ 1 callersMethodcurrent_statement_mut
(&mut self)
crates/ty_python_core/src/builder.rs:2658
↓ 1 callersMethodcustom_getattribute_may_affect_lookup
Return whether a custom `__getattribute__` could affect this lookup. Reusing the receiver class's existing MRO classification avoids interning a memb
crates/ty_python_semantic/src/types.rs:8631
↓ 1 callersMethodcustom_stdlib
Create a new standard-library search path pointing to a custom directory on disk
crates/ty_module_resolver/src/path.rs:632
↓ 1 callersMethodcustom_stdlib_search_path
(self, db: &'db dyn Db)
crates/ty_python_core/src/program.rs:55
↓ 1 callersFunctioncustom_type_var_instead_of_self
PYI019
crates/ruff_linter/src/rules/flake8_pyi/rules/custom_type_var_for_self.rs:118
↓ 1 callersFunctioncustom_typevar
Returns `Some(TypeVar)` if `typevar_expr` refers to a `TypeVar` binding
crates/ruff_linter/src/rules/flake8_pyi/rules/custom_type_var_for_self.rs:294
↓ 1 callersMethodcustom_typevar
( &'a self, semantic: &'a SemanticModel<'a>, scope: ScopeId, )
crates/ruff_linter/src/rules/flake8_pyi/rules/custom_type_var_for_self.rs:229
↓ 1 callersMethodcycle
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/recursive.rs:311
↓ 1 callersMethodcycle_normalized
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, previous: Self,
crates/ty_python_semantic/src/types.rs:2640
↓ 1 callersMethodcycle_normalized
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, previous_place: Self,
crates/ty_python_semantic/src/place.rs:1211
↓ 1 callersMethodcycle_normalized
( &self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, previous: &Self,
crates/ty_python_semantic/src/types/signatures.rs:253
↓ 1 callersMethodcycle_normalized_impl
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, previous: Self,
crates/ty_python_semantic/src/types.rs:2650
↓ 1 callersFunctioncycle_normalized_optional_type
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, current: Option<ProtocolPropertyType<'db>>,
crates/ty_python_semantic/src/types/protocol_class.rs:1769
↓ 1 callersMethodcycle_normalized_without_previous
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, cycle: &salsa::Cycle,
crates/ty_python_semantic/src/types/protocol_class.rs:1154
↓ 1 callersMethodcycle_summary
Summarize an alias's raw definition once, sharing the result across references. Specializations reuse this summary and check their exposed arguments s
crates/ty_python_semantic/src/types/type_alias.rs:544
↓ 1 callersFunctiond
()
crates/ruff_python_parser/resources/inline/err/invalid_annotation_function.py:1
↓ 1 callersFunctiondag_no_schedule_argument
AIR002
crates/ruff_linter/src/rules/airflow/rules/dag_schedule_argument.rs:56
↓ 1 callersFunctiondangling_open_parenthesis_comments
Formats the dangling comments within a parenthesized expression, for example: ```python [ # comment 1, 2, 3, ] ```
crates/ruff_python_formatter/src/comments/format.rs:262
↓ 1 callersFunctiondataclass_enum
RUF049
crates/ruff_linter/src/rules/ruff/rules/dataclass_enum.rs:64
↓ 1 callersMethoddataclass_transformer_from_bases
Return the dataclass transform an ordinary class inherits from its bases.
crates/ty_python_semantic/src/types/class/static_literal.rs:942
↓ 1 callersFunctiondate_navigation_method
Synthesize `get_next_by_<field>()` and `get_previous_by_<field>()` for non-nullable date fields.
crates/ty_python_semantic/src/types/dedicated/django.rs:414
↓ 1 callersFunctiondatetime_min_max
DTZ901
crates/ruff_linter/src/rules/flake8_datetimez/rules/datetime_min_max.rs:67
↓ 1 callersFunctiondatetime_utc_alias
UP017
crates/ruff_linter/src/rules/pyupgrade/rules/datetime_utc_alias.rs:59
↓ 1 callersMethoddebug
(&'a self, source: &'a str)
crates/ty_python_semantic/src/suppression/parser.rs:485
↓ 1 callersFunctiondebug_information
Returns a string with detailed memory usage.
crates/ty_server/src/server/api/requests/execute_command.rs:40
↓ 1 callersFunctiondebug_information
Returns a string with debug information about the session and the document at the given URI.
crates/ruff_server/src/server/api/requests/execute_command.rs:168
↓ 1 callersFunctiondebug_module
(source: &str)
crates/ruff_python_ast_integration_tests/tests/comparable.rs:86
↓ 1 callersFunctiondebugger_call
T100 Checks for the presence of a debugger call.
crates/ruff_linter/src/rules/flake8_debugger/rules/debugger.rs:53
↓ 1 callersFunctiondebugger_import
T100 Checks for the presence of a debugger import.
crates/ruff_linter/src/rules/flake8_debugger/rules/debugger.rs:66
↓ 1 callersMethoddecide_resolution_path
(&mut self)
crates/ty_python_semantic/src/place_load.rs:594
↓ 1 callersFunctiondecimal_from_float_literal_syntax
RUF032: `Decimal()` called with float literal argument
crates/ruff_linter/src/rules/ruff/rules/decimal_from_float_literal.rs:53
↓ 1 callersMethoddeclaration_type
( &self, owner: Definition<'db>, definition: Definition<'db>, )
crates/ty_python_semantic/src/types/infer.rs:1290
↓ 1 callersMethoddeclare_lambda_parameter
( &mut self, index: usize, parameter: &'ast ast::ParameterWithDefault, lambda:
crates/ty_python_core/src/builder.rs:3308
↓ 1 callersMethoddeclare_lambda_parameters
( &mut self, parameters: &'ast ast::Parameters, lambda: &'ast ast::ExprLambda, )
crates/ty_python_core/src/builder.rs:3259
↓ 1 callersMethoddeclare_parameters
(&mut self, parameters: &'ast ast::Parameters, is_stub_body: bool)
crates/ty_python_core/src/builder.rs:3203
↓ 1 callersMethoddeclare_stub_parameter
Creates the definition now so the semantic index can resolve the parameter's AST node. Its binding and optional declaration are recorded when the scop
crates/ty_python_core/src/builder.rs:3237
↓ 1 callersMethoddeclared_candidate
( &self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, )
crates/ty_python_semantic/src/types/constraints.rs:3418
↓ 1 callersFunctiondeclared_encoding
Extract the encoding name from a physical line using the PEP 263 grammar.
crates/ruff_linter/src/rules/pyupgrade/rules/unnecessary_coding_comment.rs:48
↓ 1 callersMethoddeclared_instance_attributes
Receiver attributes declared in this scope, such as `self.value: int`.
crates/ty_python_core/src/place.rs:249
↓ 1 callersFunctiondecorator_has_multiple_outputs
Returns `true` if the decorator already specifies `multiple_outputs=...`.
crates/ruff_linter/src/rules/airflow/rules/task_implicit_multiple_outputs.rs:163
↓ 1 callersMethoddecorators_inner
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/class/static_literal.rs:823
↓ 1 callersMethoddecrement
Decrements the indent by one by: - Reducing the level by one if this is [`Indent::Level`] - Removing the `align` if this is [`Indent::Align`] No-op i
crates/ruff_formatter/src/printer/mod.rs:1011
↓ 1 callersFunctiondeduplicate_files
Deduplicate files by path, prioritizing `Root` files over `Nested` files. When the same path appears both as a directly specified input (`Root`) and
crates/ruff_workspace/src/resolver.rs:581
↓ 1 callersMethoddefault
(self, o: object)
python/ruff-ecosystem/ruff_ecosystem/main.py:157
↓ 1 callersMethoddefault
()
crates/ruff_python_formatter/src/context.rs:229
↓ 1 callersMethoddefault
(&self)
crates/ruff_python_ast/src/nodes.rs:3238
↓ 1 callersMethoddefault
()
crates/ty_ide/src/completion.rs:730
↓ 1 callersMethoddefault
Returns the default docstring state which is to expect a module-level docstring.
crates/ruff_linter/src/checkers/ast/mod.rs:121
↓ 1 callersMethoddefault
()
crates/ruff_linter/src/rules/pylint/settings.rs:153
↓ 1 callersFunctiondefault_broad_exceptions
()
crates/ruff_linter/src/rules/flake8_pytest_style/settings.rs:13
↓ 1 callersFunctiondefault_broad_warnings
()
crates/ruff_linter/src/rules/flake8_pytest_style/settings.rs:27
↓ 1 callersMethoddefault_bytes_flags
Return the default bytestring flags a generated `ByteStringLiteral` node should use, given where we are in the AST.
crates/ruff_linter/src/checkers/ast/mod.rs:403
↓ 1 callersFunctiondefault_except_not_last
F707
crates/ruff_linter/src/rules/pyflakes/rules/default_except_not_last.rs:60
↓ 1 callersFunctiondefault_factory_kwarg
RUF026
crates/ruff_linter/src/rules/ruff/rules/default_factory_kwarg.rs:80
↓ 1 callersFunctiondefault_func_names
()
crates/ruff_linter/src/rules/flake8_gettext/settings.rs:11
↓ 1 callersFunctiondefault_function
()
crates/ruff_linter/resources/test/fixtures/ruff/RUF009_deferred.py:5
↓ 1 callersFunctiondefault_indent_style
()
crates/ruff_python_formatter/src/options.rs:78
↓ 1 callersFunctiondefault_indent_width
()
crates/ruff_python_formatter/src/options.rs:82
↓ 1 callersFunctiondefault_line_width
()
crates/ruff_python_formatter/src/options.rs:74
↓ 1 callersMethoddefault_specialization
( self, db: &'db dyn Db, generic_context: GenericContext<'db>, )
crates/ty_python_semantic/src/types/cyclic.rs:315
↓ 1 callersMethoddefault_specialize
Apply defaults to free legacy type variables before converting a referenced value to a type.
crates/ty_python_semantic/src/types.rs:11134
↓ 1 callersFunctiondefault_tmp_dirs
()
crates/ruff_linter/src/rules/flake8_bandit/settings.rs:7
↓ 1 callersFunctiondeferred_comprehensions
Run lint rules over all deferred comprehensions in the [`SemanticModel`].
crates/ruff_linter/src/checkers/ast/analyze/deferred_comprehensions.rs:8
↓ 1 callersFunctiondeferred_for_loops
Run lint rules over all deferred for-loops in the [`SemanticModel`].
crates/ruff_linter/src/checkers/ast/analyze/deferred_for_loops.rs:8
↓ 1 callersFunctiondeferred_functional_typed_dict_openness
( db: &'db dyn Db, definition: Definition<'db>, )
crates/ty_python_semantic/src/types/typed_dict.rs:1523
↓ 1 callersFunctiondeferred_functional_typed_dict_schema
( db: &'db dyn Db, definition: Definition<'db>, )
crates/ty_python_semantic/src/types/typed_dict.rs:1458
↓ 1 callersFunctiondeferred_lambdas
Run lint rules over all deferred lambdas in the [`SemanticModel`].
crates/ruff_linter/src/checkers/ast/analyze/deferred_lambdas.rs:8
↓ 1 callersFunctiondeferred_scopes
Run lint rules over all deferred scopes in the [`SemanticModel`].
crates/ruff_linter/src/checkers/ast/analyze/deferred_scopes.rs:12
↓ 1 callersFunctiondeferred_with_statements
Run lint rules over all deferred with-statements in the [`SemanticModel`].
crates/ruff_linter/src/checkers/ast/analyze/deferred_with_statements.rs:6
↓ 1 callersFunctiondefineAyuThemes
(monaco: Monaco)
playground/shared/src/setupMonaco.tsx:59
↓ 1 callersFunctiondefineCommentsLanguage
(monaco: Monaco)
playground/shared/src/setupMonaco.tsx:692
↓ 1 callersFunctiondefineFirLanguage
(monaco: Monaco)
playground/shared/src/setupMonaco.tsx:802
↓ 1 callersFunctiondefineRustPythonAstLanguage
(monaco: Monaco)
playground/shared/src/setupMonaco.tsx:636
↓ 1 callersFunctiondefineRustPythonTokensLanguage
(monaco: Monaco)
playground/shared/src/setupMonaco.tsx:747
↓ 1 callersFunctiondefineTomlLanguage
(monaco: Monaco)
playground/shared/src/setupMonaco.tsx:848
↓ 1 callersMethoddefined_instance_attribute_names
Receiver attributes that this scope can define. A read of `self.value` alone does not establish `value` as an implicit attribute.
crates/ty_python_core/src/place.rs:241
↓ 1 callersMethoddefining_class
(self)
crates/ty_python_semantic/src/types/typed_dict.rs:261
↓ 1 callersFunctiondefinite_match_pattern_type_for_subject_impl
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, kind: &'pattern PatternPredicateKind<'db>, s
crates/ty_python_semantic/src/types/match_pattern.rs:770
↓ 1 callersFunctiondefinite_sequence_pattern_type
Return the values that are guaranteed to match a sequence pattern.
crates/ty_python_semantic/src/types/match_pattern.rs:1407
↓ 1 callersFunctiondefinition
Generate flake8-annotation checks for a given `Definition`. ANN001, ANN401
crates/ruff_linter/src/rules/flake8_annotations/rules/definition.rs:633
↓ 1 callersMethoddefinition
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/typed_dict.rs:700
↓ 1 callersMethoddefinition
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, )
crates/ty_python_semantic/src/types/special_form.rs:786
↓ 1 callersFunctiondefinition_contains_special_cased_condition
( db: &'db dyn Db, definition: Definition<'db>, )
crates/ty_python_semantic/src/types/infer/builder/suspicious_conditions/exemptions.rs:689
↓ 1 callersFunctiondefinition_expression_annotation
Infer the type and qualifiers of a deferred annotation expression that is a sub-expression of a [`Definition`]. Supports expressions that are evaluat
crates/ty_python_semantic/src/types.rs:455
↓ 1 callersMethoddefinition_header_start
Finds where a class or function definition actually starts once we skip over decorators.
crates/ty_ide/src/folding_range.rs:432
↓ 1 callersMethoddefinition_matches_fixture_target
( &mut self, definition: Definition<'a>, fixture_resolution: &FixtureReferenceResoluti
crates/ty_ide/src/references.rs:845
↓ 1 callersMethoddefinition_modules
Return the module(s) in which this special form could be defined
crates/ty_python_semantic/src/types/special_form.rs:734
↓ 1 callersFunctiondefinition_reachability
( db: &'db dyn Db, scope: ScopeId<'db>, place: ScopedPlaceId, )
crates/ty_python_semantic/src/types/infer/builder/suspicious_conditions/exemptions.rs:531
↓ 1 callersMethoddefinition_reaches
(&self, from: Definition<'db>, to: Definition<'db>)
crates/ty_python_semantic/src/types/cyclic.rs:547
↓ 1 callersFunctiondefinitions
Run lint rules over all [`Definition`] nodes in the [`SemanticModel`]. This phase is expected to run after the AST has been traversed in its entirety
crates/ruff_linter/src/checkers/ast/analyze/definitions.rs:19
↓ 1 callersMethoddefinitions
(&self, definition_key: impl Into<DefinitionNodeKey>)
crates/ty_python_core/src/lib.rs:690
↓ 1 callersFunctiondefinitions_and_overloads_for_function
Returns the definition and overload co-definitions for a function declaration. For overloaded functions this includes sibling overload declarations a
crates/ty_python_semantic/src/types/ide_support.rs:933
↓ 1 callersFunctiondefinitions_for_attribute
Returns source definitions for a member of an already-inferred receiver type. During type inference, a caller may already know the type of `obj` in `
crates/ty_python_semantic/src/types/definition_resolution.rs:332
↓ 1 callersFunctiondefinitions_for_attribute_in_class_hierarchy
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, class_literal: &ClassLiteral<'db>, attribute
crates/ty_python_semantic/src/types/definition_resolution.rs:448
↓ 1 callersFunctiondefinitions_for_callable
( model: &SemanticModel<'db>, call: &ast::ExprCall, )
crates/ty_ide/src/goto.rs:1421
↓ 1 callersMethoddefinitions_for_dictionary_key_completion
Returns definitions that may supply `receiver`'s value for dictionary key completion. Names use [`Self::reaching_definitions()`], including any defin
crates/ty_python_semantic/src/semantic_model.rs:839
↓ 1 callersFunctiondefinitions_for_keyword_argument
Returns definitions for a keyword argument in a call expression. This resolves the keyword argument to the corresponding parameter(s) in the callable'
crates/ty_python_semantic/src/types/ide_support.rs:871
↓ 1 callersFunctiondefinitions_for_module
Helper function to resolve a module name and create a navigation target.
crates/ty_ide/src/goto.rs:1484
↓ 1 callersFunctiondefinitions_for_name
Resolves a name's source definitions in `scope` and its visible ancestors, falling back to implicit builtins if none are found. This function reads b
crates/ty_python_semantic/src/types/definition_resolution.rs:166
← previousnext →8,801–8,900 of 31,766, ranked by callers