MCPcopy Create free account

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

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

↓ 1 callersMethodvalidate_attribute_deletion
( &mut self, target: &ast::ExprAttribute, object_ty: Type<'db>, attribute: &st
crates/ty_python_semantic/src/types/infer/builder.rs:3140
↓ 1 callersMethodvalidate_brand
Validate length based on BIN for major brands: https://en.wikipedia.org/wiki/Payment_card_number#Issuer_identification_number_(IIN)
crates/ruff_benchmark/resources/pydantic/types.py:634
↓ 1 callersMethodvalidate_completions
Validates that completions for each symbol match the expectations of the fixture. For instance, a bug could cause us to consult a stale cache after m
crates/ruff_benchmark/benches/ty_ide.rs:429
↓ 1 callersMethodvalidate_composite_final_assignment
( &mut self, object_ty: Type<'db>, emit_diagnostics: bool, )
crates/ty_python_semantic/src/types/infer/builder/attribute_assignment.rs:529
↓ 1 callersMethodvalidate_constructor
(&self, db: &'db dyn Db, ty: Type<'db>)
crates/ty_python_semantic/src/types/call/bind.rs:11482
↓ 1 callersMethodvalidate_delete_target
Validate that the given expression is a valid delete target. If the expression is a list or tuple, then validate each element in the list. See: <htt
crates/ruff_python_parser/src/parser/statement.rs:3897
↓ 1 callersMethodvalidate_digits
(cls, card_number: str)
crates/ruff_benchmark/resources/pydantic/types.py:609
↓ 1 callersMethodvalidate_fields_arg
Infer all non-type expressions in the `fields` argument of a functional `TypedDict` definition, and emit diagnostics for invalid field keys. Type expr
crates/ty_python_semantic/src/types/infer/builder/typed_dict.rs:808
↓ 1 callersMethodvalidate_final_attribute_assignment
( &mut self, target: &ast::ExprAttribute, object_ty: Type<'db>, attribute: &st
crates/ty_python_semantic/src/types/infer/builder/final_attribute.rs:235
↓ 1 callersMethodvalidate_final_attribute_deletion
( &self, target: &ast::ExprAttribute, object_ty: Type<'db>, attribute: &str,
crates/ty_python_semantic/src/types/infer/builder/final_attribute.rs:280
↓ 1 callersFunctionvalidate_from_dict_literal
Validates a `TypedDict` constructor call with a single positional dictionary argument e.g. `Person({"name": "Alice", "age": 30})`
crates/ty_python_semantic/src/types/typed_dict.rs:2748
↓ 1 callersFunctionvalidate_from_keywords
Validates a `TypedDict` constructor call with keywords e.g. `Person(name="Alice", age=30)` or `Person(**other_typed_dict)`
crates/ty_python_semantic/src/types/typed_dict.rs:2779
↓ 1 callersFunctionvalidate_from_typed_dict_argument
Validates a mixed-constructor positional argument when its type can be viewed as a `TypedDict`. If `arg_ty` exposes concrete `TypedDict` keys, only k
crates/ty_python_semantic/src/types/typed_dict.rs:2500
↓ 1 callersMethodvalidate_luhn_check_digit
Based on: https://en.wikipedia.org/wiki/Luhn_algorithm
crates/ruff_benchmark/resources/pydantic/types.py:614
↓ 1 callersMethodvalidate_members
(self, context: &InferContext<'db, '_>)
crates/ty_python_semantic/src/types/class/static_literal.rs:2660
↓ 1 callersMethodvalidate_new_class_call_arguments
Preserve normal call-binding diagnostics for `types.new_class()` while still allowing special inference of the name and bases arguments.
crates/ty_python_semantic/src/types/infer/builder/new_class.rs:244
↓ 1 callersFunctionvalidate_paramspec_components
Validate the usage of `ParamSpec` components (`P.args` and `P.kwargs`) across all parameters of a function. This enforces several rules from the typi
crates/ty_python_semantic/src/types/infer/builder/paramspec_validation.rs:22
↓ 1 callersMethodvalidate_single_declared_constraint
( &mut self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, storage: &mut Con
crates/ty_python_semantic/src/types/constraints/solutions.rs:1464
↓ 1 callersMethodvalidate_solutions
( &mut self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, storage: &mut Con
crates/ty_python_semantic/src/types/constraints/solutions.rs:406
↓ 1 callersMethodvalidate_subscript_assignment_impl
( &mut self, target: &ast::ExprSubscript, full_object_ty: Option<Type<'db>>, o
crates/ty_python_semantic/src/types/infer/builder/subscript.rs:1839
↓ 1 callersMethodvalidate_subscript_deletion
Validate a subscript deletion of the form `del object[key]`.
crates/ty_python_semantic/src/types/infer/builder/subscript.rs:2281
↓ 1 callersMethodvalidate_subscript_deletion_impl
( &self, target: &'ast ast::ExprSubscript, full_object_ty: Option<Type<'db>>,
crates/ty_python_semantic/src/types/infer/builder/subscript.rs:2290
↓ 1 callersMethodvalidate_type_parameter_variance
Validate explicitly declared type-variable variance against this protocol's interface.
crates/ty_python_semantic/src/types/protocol_class.rs:327
↓ 1 callersFunctionvalidate_typed_dict_class
( context: &InferContext<'db, '_>, class: StaticClassLiteral<'db>, class_node: &ast::StmtClassDef,
crates/ty_python_semantic/src/types/infer/builder/post_inference/typed_dict.rs:24
↓ 1 callersFunctionvalidate_typed_dict_class_body
(context: &InferContext<'_, '_>, class_node: &ast::StmtClassDef)
crates/ty_python_semantic/src/types/infer/builder/post_inference/typed_dict.rs:35
↓ 1 callersFunctionvalidate_typed_dict_class_body_statements
( context: &InferContext<'_, '_>, statements: &[ast::Stmt], )
crates/ty_python_semantic/src/types/infer/builder/post_inference/typed_dict.rs:46
↓ 1 callersFunctionvalidate_typed_dict_dict_literal
Validates a `TypedDict` dictionary literal assignment, e.g. `person: Person = {"name": "Alice", "age": 30}`
crates/ty_python_semantic/src/types/typed_dict.rs:3090
↓ 1 callersFunctionvalidate_typed_dict_field_overrides
( context: &InferContext<'db, '_>, class: StaticClassLiteral<'db>, direct_bases: &[ClassType<'db>]
crates/ty_python_semantic/src/types/infer/builder/post_inference/typed_dict.rs:100
↓ 1 callersFunctionvalidate_typed_dict_openness
( context: &InferContext<'db, '_>, class: StaticClassLiteral<'db>, class_node: &ast::StmtClassDef,
crates/ty_python_semantic/src/types/infer/builder/post_inference/typed_dict.rs:149
↓ 1 callersMethodvalidate_unpacked_typed_dict_kwargs
(&mut self, parameters: &ast::Parameters)
crates/ty_python_semantic/src/types/infer/builder/function.rs:967
↓ 1 callersMethodvalidate_upper_bound
( &mut self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, storage: &mut Con
crates/ty_python_semantic/src/types/constraints/solutions.rs:1087
↓ 1 callersMethodvalidates_by_alias
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/dedicated/pydantic.rs:73
↓ 1 callersMethodvalidates_by_name
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/dedicated/pydantic.rs:78
↓ 1 callersMethodvalue
(&self)
crates/ruff_python_ast/src/nodes.rs:223
↓ 1 callersMethodvalue
(&self)
crates/ty_python_semantic/src/types/union_type_instance.rs:53
↓ 1 callersMethodvalue_annotation_type
Returns the effective `_value_` annotation type without its provenance.
crates/ty_python_semantic/src/types/enums.rs:639
↓ 1 callersFunctionvalue_has_exact_known_class
Return whether constructing `data_type` from `value` preserves the value's inferred runtime class. This deliberately requires an exact known class rat
crates/ty_python_semantic/src/types/enums.rs:499
↓ 1 callersMethodvalue_type
Returns a type that contains every value that may be stored in this `TypedDict`. An implicitly open `TypedDict` immediately returns `object` because
crates/ty_python_semantic/src/types/typed_dict.rs:362
↓ 1 callersMethodvariable_and_suffix_type
( &self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, suffix_stop: Option<u
crates/ty_python_semantic/src/types/tuple.rs:2092
↓ 1 callersFunctionvariable_get_outside_task
AIR003
crates/ruff_linter/src/rules/airflow/rules/variable_get_outside_task.rs:79
↓ 1 callersFunctionvariable_name_task_id
AIR001
crates/ruff_linter/src/rules/airflow/rules/task_variable_name.rs:50
↓ 1 callersFunctionvariance
Return the variance of the type parameter.
crates/ruff_linter/src/rules/pylint/rules/type_name_incorrect_variance.rs:156
↓ 1 callersMethodvariance
(&self)
crates/ty_python_semantic/src/types/constraints.rs:3548
↓ 1 callersMethodvariance_equation
( self, db: &'db dyn Db, typevar: BoundTypeVarIdentity<'db>, )
crates/ty_python_semantic/src/types/class/static_literal.rs:3593
↓ 1 callersMethodvariance_of
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, typevar: BoundTypeVarI
crates/ty_python_semantic/src/types.rs:11379
↓ 1 callersMethodvariance_of
TODO: possibly need to replace self
crates/ty_python_semantic/src/types/signatures.rs:671
↓ 1 callersMethodvariance_of
( self, db: &'db dyn Db, _env: &ProgramEnvironment<'db>, typevar: BoundTypeVar
crates/ty_python_semantic/src/types/recursive.rs:902
↓ 1 callersMethodvariance_of
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, typevar: BoundTypeVarI
crates/ty_python_semantic/src/types/typed_dict.rs:1431
↓ 1 callersMethodvariance_of
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, typevar: BoundTypeVarI
crates/ty_python_semantic/src/types/class.rs:500
↓ 1 callersMethodvariance_of
( self, db: &'db dyn Db, _: &ProgramEnvironment<'db>, typevar: BoundTypeVarIde
crates/ty_python_semantic/src/types/type_alias.rs:921
↓ 1 callersMethodvariances
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, )
crates/ty_python_semantic/src/types/protocol_class.rs:1525
↓ 1 callersMethodvendored
(&self)
crates/ty_test/src/db.rs:121
↓ 1 callersMethodvendored
(&self)
crates/ty_python_core/src/db.rs:99
↓ 1 callersMethodvendored
(&self)
crates/ty_python_semantic/src/db.rs:146
↓ 1 callersMethodvendored
(&self)
fuzz/fuzz_targets/ty_check_invalid_syntax.rs:79
↓ 1 callersMethodvenv_path
Get the virtual environment path
crates/ruff_benchmark/src/real_world_projects.rs:102
↓ 1 callersFunctionverbatim_text
(item: T)
crates/ruff_python_formatter/src/verbatim.rs:900
↓ 1 callersMethodverbose
(&self)
crates/ty_test/src/config.rs:85
↓ 1 callersFunctionverbose_decimal_constructor
FURB157
crates/ruff_linter/src/rules/refurb/rules/verbose_decimal_constructor.rs:76
↓ 1 callersFunctionverbose_log_message
TRY401
crates/ruff_linter/src/rules/tryceratops/rules/verbose_log_message.rs:53
↓ 1 callersFunctionverbose_raise
TRY201
crates/ruff_linter/src/rules/tryceratops/rules/verbose_raise.rs:55
↓ 1 callersFunctionversion
(output_format: HelpFormat)
crates/ty/src/lib.rs:80
↓ 1 callersFunctionversion
()
crates/ruff_server/src/lib.rs:46
↓ 1 callersFunctionversion
()
crates/ty_wasm/src/lib.rs:35
↓ 1 callersMethodversion
( &self, executor: &dyn CommandExecutor, directory: Option<&SystemPath>, )
crates/ty_project/src/uv/command.rs:104
↓ 1 callersMethodversion
Get the current version of the notebook document.
crates/ruff_server/src/edit/notebook.rs:211
↓ 1 callersFunctionversion_check
( checker: &Checker, expected: ExpectedComparator, test: &Expr, op: CmpOp, comparator: &Ex
crates/ruff_linter/src/rules/flake8_pyi/rules/unrecognized_version_info.rs:152
↓ 1 callersFunctionversion_info
Retrieve the version from the `dist-workspace.toml` file and set `TY_VERSION`.
crates/ty/build.rs:36
↓ 1 callersFunctionviolation_metadata
(input: DeriveInput)
crates/ruff_macros/src/violation_metadata.rs:8
↓ 1 callersMethodvirtual_env_implementation
(&self)
crates/ty_site_packages/src/lib.rs:2776
↓ 1 callersMethodvirtual_environment
The root of the resolved virtual environment, for watching `pyvenv.cfg` and directory changes. System installations are unlikely to be recreated, and
crates/ty_python_core/src/program.rs:91
↓ 1 callersMethodvirtual_path_source_type
Returns the source type for `path` if known or `None`. The default is to always return `None`, assuming the system has no additional information and
crates/ruff_db/src/system.rs:103
↓ 1 callersMethodvisit
(&mut self, result: std::result::Result<DirEntry, Error>)
crates/ruff_workspace/src/resolver.rs:650
↓ 1 callersMethodvisit
(mut self, suite: &'src Suite)
crates/ruff_linter/src/rules/ruff/rules/suppression_comment_visitor.rs:55
↓ 1 callersMethodvisit_alias
(&self, alias: &mut Alias)
crates/ruff_python_ast/src/visitor/transformer.rs:56
↓ 1 callersMethodvisit_alias
(&mut self, alias: &'db ast::Alias)
crates/ty_python_core/src/re_exports.rs:106
↓ 1 callersMethodvisit_annotated_arguments
(&mut self, slice: &Expr)
crates/ty_ide/src/semantic_tokens.rs:799
↓ 1 callersMethodvisit_annotated_slice
(&self, slice: &mut Expr)
crates/ruff_linter/src/rules/flake8_type_checking/helpers.rs:472
↓ 1 callersMethodvisit_annotated_type_alias_value
Visit an [`Expr`], and treat it as the value expression of a [PEP 613] type alias. For example: ```python from typing import TypeAlias OptStr: TypeA
crates/ruff_linter/src/checkers/ast/mod.rs:2741
↓ 1 callersMethodvisit_annotation
(&mut self, expression: &'ast ast::Expr)
crates/ty_python_core/src/builder.rs:5634
↓ 1 callersMethodvisit_atomic_constraint
( &mut self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, storage: &mut Con
crates/ty_python_semantic/src/types/constraints/solutions.rs:614
↓ 1 callersMethodvisit_atomic_edge
( &mut self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, storage: &mut Con
crates/ty_python_semantic/src/types/constraints/solutions.rs:678
↓ 1 callersMethodvisit_body
(&mut self, body: &'a [Stmt])
crates/ruff_linter/src/rules/ruff/rules/unnecessary_assign_before_yield.rs:232
↓ 1 callersMethodvisit_bool_expression
Keeps short-circuit flow snapshots out of the common recursive expression-visitor frame.
crates/ty_python_core/src/builder.rs:3779
↓ 1 callersMethodvisit_bool_op
(&self, bool_op: &mut BoolOp)
crates/ruff_python_ast/src/visitor/transformer.rs:26
↓ 1 callersMethodvisit_bound_method_type
(&self, db: &'db dyn Db, method: BoundMethodType<'db>)
crates/ty_python_semantic/src/types/visitor.rs:104
↓ 1 callersMethodvisit_bound_super_type
(&self, db: &'db dyn Db, bound_super: BoundSuperType<'db>)
crates/ty_python_semantic/src/types/visitor.rs:108
↓ 1 callersMethodvisit_bound_type_var_type
( &self, db: &'db dyn Db, bound_typevar: BoundTypeVarInstance<
crates/ty_python_semantic/src/types/generics.rs:813
↓ 1 callersMethodvisit_bound_type_var_type
(&self, db: &'db dyn Db, bound_typevar: BoundTypeVarInstance<'db>)
crates/ty_python_semantic/src/types/visitor.rs:116
↓ 1 callersMethodvisit_bytes_literal
(&self, bytes_literal: &mut BytesLiteral)
crates/ruff_python_ast/src/visitor/transformer.rs:101
↓ 1 callersMethodvisit_bytes_literal
(&mut self, bytes_literal: &ast::BytesLiteral)
crates/ruff_linter/src/rules/flake8_quotes/rules/avoidable_escaped_quote.rs:115
↓ 1 callersMethodvisit_callable_type
(&self, db: &'db dyn Db, callable: CallableType<'db>)
crates/ty_python_semantic/src/types/visitor.rs:68
↓ 1 callersMethodvisit_cast_type_argument
Visit an [`Expr`], and treat it as the `typ` argument to `typing.cast`.
crates/ruff_linter/src/checkers/ast/mod.rs:2786
↓ 1 callersMethodvisit_cmp_op
(&self, cmp_op: &mut CmpOp)
crates/ruff_python_ast/src/visitor/transformer.rs:35
↓ 1 callersMethodvisit_comma_token
(&mut self, token_range: TextRange)
crates/ruff_linter/src/rules/ruff/rules/sequence_sorting.rs:651
↓ 1 callersMethodvisit_comment_token
If this is a comment on its own line, record the range of that comment. If*, however, we've already seen a comma or a string in this line, that means
crates/ruff_linter/src/rules/ruff/rules/sequence_sorting.rs:665
↓ 1 callersMethodvisit_comprehension
(&mut self, comprehension: &'a Comprehension)
crates/ruff_python_ast/src/visitor.rs:51
↓ 1 callersMethodvisit_comprehension
(&self, comprehension: &mut Comprehension)
crates/ruff_python_ast/src/visitor/transformer.rs:38
↓ 1 callersMethodvisit_comprehension_filter
Visits a comprehension filter on its truthy path and returns the filtered-out path. A false filter skips the rest of the current iteration, but assig
crates/ty_python_core/src/builder.rs:3180
↓ 1 callersMethodvisit_decorator
(&self, decorator: &mut Decorator)
crates/ruff_python_ast/src/visitor/transformer.rs:17
← previousnext →14,001–14,100 of 31,562, ranked by callers