MCPcopy Create free account

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

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

↓ 11 callersMethodwith_quote_style
(mut self, quote_style: Quote)
crates/ruff_python_ast/src/nodes.rs:1127
↓ 11 callersMethodwith_real_uv
(mut self, use_uv: UseUv)
crates/ty_server/tests/e2e/main.rs:1361
↓ 11 callersMethodwith_watched_file_support
Enable dynamic file watching, optionally with relative patterns.
crates/ty_server/tests/e2e/main.rs:1508
↓ 11 callersMethodwrite_file
( &self, relative_path: impl AsRef<SystemPath>, content: &str, )
crates/ty/tests/file_watching.rs:397
↓ 10 callersMethodabsolute
Resolves the absolute path for `self` based on its origin.
crates/ty_project/src/metadata/value.rs:65
↓ 10 callersMethodadd
(&mut self, line_range: TextRange)
crates/ruff_linter/src/rules/pycodestyle/rules/blank_lines.rs:564
↓ 10 callersMethodadd_declaration_with_binding
( &mut self, node: AnyNodeRef, definition: Definition<'db>, declared_and_infer
crates/ty_python_semantic/src/types/infer/builder.rs:1906
↓ 10 callersMethodadd_substitution
( &mut self, substituted: AtomicConstraint<'db>, ante: AtomicConstraint<'db>,
crates/ty_python_semantic/src/types/constraints/sequents.rs:351
↓ 10 callersMethodalias
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/recursive.rs:505
↓ 10 callersMethodas_notebook
(&self)
crates/ty_server/src/session/index.rs:268
↓ 10 callersMethodas_str
Returns the string representation of the quote style.
crates/ruff_python_formatter/src/options.rs:278
↓ 10 callersMethodas_union_like
Returns `Some(UnionType)` if this type behaves like a union. Apart from explicit unions, this returns `Some` for `TypeAlias`es of unions and `NewType`
crates/ty_python_semantic/src/types.rs:3146
↓ 10 callersFunctionassert_function_query_was_not_run_by_name
( db: &Db, query_name: &str, input: Option<salsa::Id>, events: &[salsa::Event], )
crates/ruff_db/src/testing.rs:53
↓ 10 callersFunctionassert_notebook_path
( path: impl AsRef<Path>, expected: impl AsRef<Path>, settings: &LinterSettings, )
crates/ruff_linter/src/test.rs:186
↓ 10 callersMethodassignability_error_context
Re-run the assignability check with error context collection enabled. This should normally be called when `is_assignable_to` has returned `false` and
crates/ty_python_semantic/src/types/relation.rs:505
↓ 10 callersFunctionbefore_main
()
crates/ruff_wasm/src/lib.rs:206
↓ 10 callersMethodbind_self_typevars
Bind `Self` type variables in this type to a concrete self type. Uses MRO-based matching: a `Self` typevar is only bound if its owner class is in the
crates/ty_python_semantic/src/types.rs:2613
↓ 10 callersMethodcache_key
(&self, state: &mut CacheKeyHasher)
crates/ruff_cache/src/globset.rs:6
↓ 10 callersMethodcalculate_source_orders
( &self, source_order: Option<SourceOrderId>, )
crates/ty_python_semantic/src/types/constraints.rs:1576
↓ 10 callersMethodcell_index
Attach a Jupyter notebook cell index.
crates/ruff_annotate_snippets/src/snippet.rs:301
↓ 10 callersMethodchars
(&self)
crates/ruff_python_trivia/src/cursor.rs:33
↓ 10 callersMethodcheck
Checks all open files
crates/ty_wasm/src/lib.rs:281
↓ 10 callersMethodclass_member_with_policy
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, name: &str, po
crates/ty_python_semantic/src/types.rs:4487
↓ 10 callersMethodcloser_len
The total length of the string's closer. This is always equal to `self.quote_len()`, except when the string is unclosed, in which case the length is z
crates/ruff_python_ast/src/nodes.rs:1021
↓ 10 callersMethodcommand
(&self)
crates/ty/tests/common/mod.rs:149
↓ 10 callersMethodcompletions
Returns the underlying completions if the convenience assertions aren't sufficiently expressive.
crates/ty_ide/src/completion.rs:11794
↓ 10 callersFunctioncompute
()
crates/ty_python_semantic/resources/corpus/match_guard_type_alias_cycle_seed_77.py:16
↓ 10 callersFunctioncreate_typevars
( db: &'db TestDb, names: [&'static str; N], )
crates/ty_python_semantic/src/types/generics.rs:5113
↓ 10 callersMethodcurrent_statement_parent_id
Return the [`NodeId`] of the current [`Stmt`] parent, if any.
crates/ruff_python_semantic/src/model.rs:1525
↓ 10 callersMethoddebug
Parse all suppressions and errors in a module for testing
crates/ruff_linter/src/suppression.rs:2974
↓ 10 callersMethoddefining_class
( db: &'db dyn Db, callable_type: Type<'db>, )
crates/ty_python_semantic/src/types/call/bind.rs:9887
↓ 10 callersMethoddefinitions
Returns the definitions found for the name.
crates/ty_python_semantic/src/place/definitions.rs:161
↓ 10 callersMethoddomain
(self)
crates/ty_python_semantic/src/types/equality/enums.rs:974
↓ 10 callersMethodend
(&self)
crates/ruff_source_file/src/newlines.rs:223
↓ 10 callersMethodentries
Iterates over entries in a system or vendored directory.
crates/ty_module_resolver/src/path.rs:326
↓ 10 callersFunctionexception
()
crates/ruff_linter/resources/test/fixtures/flake8_return/RET504.py:175
↓ 10 callersMethodexpression_value
Return the value expression after peeling off any nested named expressions. For example, this returns the `x` expression for both `x` and `(y := x)`.
crates/ruff_python_ast/src/nodes.rs:91
↓ 10 callersMethodfallback
Returns the descriptor's declared return type and kind despite the invalid call.
crates/ty_python_semantic/src/types.rs:875
↓ 10 callersMethodfile
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/function.rs:339
↓ 10 callersMethodfind_argument
Return the argument with the given name or at the given position, or `None` if no such argument exists. Used to retrieve arguments that can be provide
crates/ruff_python_ast/src/nodes.rs:3776
↓ 10 callersMethodfinite_alternative_union
Return the exact finite alternative union represented by this intersection, if available.
crates/ty_python_semantic/src/types/set_theoretic.rs:1066
↓ 10 callersMethodflags
(self)
crates/ty_python_semantic/src/types/literal.rs:107
↓ 10 callersFunctionfull_range
(input: &str)
crates/ty_server/tests/e2e/code_actions.rs:35
↓ 10 callersFunctionfun
(n)
crates/ty_python_semantic/resources/corpus/55_list_comp_nested.py:1
↓ 10 callersMethodget
Returns the value as a primitive type.
crates/ruff_source_file/src/line_index.rs:599
↓ 10 callersMethodget_message
Returns the message attached to this annotation, if one exists.
crates/ruff_db/src/diagnostic/mod.rs:877
↓ 10 callersFunctiongroup
(content: &impl Format<Context>)
crates/ruff_formatter/src/builders.rs:1407
↓ 10 callersMethodhas
(&self, node: T)
crates/ruff_python_formatter/src/comments/mod.rs:280
↓ 10 callersMethodhas_dataclass_param
Checks if the given dataclass parameter flag is set for this class. This checks both the `dataclass_params` and `transformer_params`.
crates/ty_python_semantic/src/types/class/static_literal.rs:1240
↓ 10 callersMethodhas_trailing_own_line
(&self, node: T)
crates/ruff_python_formatter/src/comments/mod.rs:345
↓ 10 callersFunctionhas_unknown_keywords_or_starred_expr
( arguments: &Arguments, allowed: &[&str], )
crates/ruff_linter/src/rules/flake8_use_pathlib/helpers.rs:199
↓ 10 callersFunctionimport_from
()
crates/ty_python_core/src/lib.rs:1371
↓ 10 callersMethodin_type_definition
Return `true` if the model is in a type definition.
crates/ruff_python_semantic/src/model.rs:2119
↓ 10 callersMethodinference_lower
Returns lower-bound inference evidence without supplying a default for a missing bound.
crates/ty_python_semantic/src/types/constraints.rs:3445
↓ 10 callersMethodinfo
Adds an "info" sub-diagnostic with the given message. If callers want to add an "info" sub-diagnostic with annotations, then create a [`SubDiagnostic
crates/ruff_db/src/diagnostic/mod.rs:174
↓ 10 callersMethodinto_callable_type
Converts the wrapped value into a single callable with its receiver bound and `typing.Self` substituted. Returns `None` if the wrapped value cannot b
crates/ty_python_semantic/src/types/method.rs:302
↓ 10 callersMethodinto_generic_alias
(self)
crates/ty_python_semantic/src/types/class.rs:1196
↓ 10 callersMethodinto_owned
Creates an [`OwnedConstraintSet`], consuming this builder in the process. You provide a callback that constructs a [`ConstraintSet`]. We then package
crates/ty_python_semantic/src/types/constraints.rs:1222
↓ 10 callersMethodinto_suite
Consumes the [`Parsed`] output and returns the module body as a [`Suite`].
crates/ruff_python_parser/src/lib.rs:541
↓ 10 callersFunctionis_abstract
Returns `true` if a function definition is an abstract method based on its decorators.
crates/ruff_python_semantic/src/analyze/visibility.rs:44
↓ 10 callersMethodis_assignability
(self)
crates/ty_python_semantic/src/types/relation.rs:175
↓ 10 callersMethodis_covariant
(self)
crates/ty_python_semantic/src/types/variance.rs:184
↓ 10 callersMethodis_empty
(&self)
crates/ty/src/args.rs:344
↓ 10 callersMethodis_empty
(&self)
crates/ruff_linter/src/settings/types.rs:822
↓ 10 callersFunctionis_human_readable_names_enabled
https://github.com/astral-sh/ruff/pull/25614 TODO(brent) Remove ecosystem selector normalization when stabilizing human-readable rule names: https://g
crates/ruff_linter/src/preview.rs:345
↓ 10 callersMethodis_in_type_checking_block
(&self, scope: ScopeId<'db>, node: impl Ranged)
crates/ty_python_semantic/src/types/infer/builder.rs:954
↓ 10 callersMethodis_local
Is the symbol defined in this scope, vs referring to some enclosing scope? There are three common cases where a name refers to an enclosing scope: 1
crates/ty_python_core/src/symbol.rs:123
↓ 10 callersMethodis_paramspec_value
(&self)
crates/ty_python_semantic/src/types/signatures.rs:992
↓ 10 callersMethodis_required
(&self)
crates/ty_python_semantic/src/types/typed_dict.rs:3257
↓ 10 callersMethodis_staticmethod
Returns true if this overload is decorated with `@staticmethod`, or if it is implicitly a staticmethod.
crates/ty_python_semantic/src/types/function.rs:363
↓ 10 callersMethodis_structural
(self)
crates/ty_python_semantic/src/types/match_pattern.rs:38
↓ 10 callersMethodis_subscript_expr
(&self)
crates/ruff_python_ast/src/generated.rs:2577
↓ 10 callersFunctionis_type_checking_block
Return `true` if [`ast::StmtIf`] is a guard for a type-checking block.
crates/ruff_python_semantic/src/analyze/typing.rs:438
↓ 10 callersMethoditer_keys
Returns an `Iterator` over the AST nodes representing the dictionary's keys.
crates/ruff_python_ast/src/nodes.rs:240
↓ 10 callersMethoditerate
Returns a tuple spec describing the elements that are produced when iterating over `self`. This method should only be used outside of type checking b
crates/ty_python_semantic/src/types/iteration.rs:214
↓ 10 callersMethodjoin_root_path
(&self, relative: impl AsRef<SystemPath>)
crates/ty/tests/file_watching.rs:383
↓ 10 callersMethodkind
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/typevar.rs:323
↓ 10 callersMethodkind
The `kind` of the section, e.g. [`SectionKind::Args`] or [`SectionKind::Returns`].
crates/ruff_linter/src/docstrings/sections.rs:330
↓ 10 callersMethodknown_class
Returns the [`KnownClass`] that this is a nominal instance of, or `None` if it is not an instance of a known class.
crates/ty_python_semantic/src/types/instance.rs:263
↓ 10 callersFunctionleading_indentation
Extract the leading indentation from a line.
crates/ruff_python_trivia/src/whitespace.rs:93
↓ 10 callersMethodlen
(&self)
crates/ruff_source_file/src/newlines.rs:326
↓ 10 callersMethodlen
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/generics.rs:920
↓ 10 callersMethodmake_key
Retrieve the original key that describes this document query.
crates/ruff_server/src/session/index.rs:546
↓ 10 callersMethodmaterialize
Applies both constraint kinds between the place's last materialized nodes and `target`. The place's node must be an ancestor of `target`. After mater
crates/ty_python_core/src/use_def.rs:1819
↓ 10 callersMethodmay_be_true
(self)
crates/ty_python_core/src/lib.rs:1005
↓ 10 callersMethodmember_lookup_with_policy_and_receiver
Perform member lookup while optionally binding descriptors and `Self` to a more precise receiver than the type whose members are being searched. Inte
crates/ty_python_semantic/src/types.rs:5997
↓ 10 callersMethodmetadata
(&self, path: impl AsRef<VendoredPath>)
crates/ruff_db/src/vendored.rs:74
↓ 10 callersMethodnext
(&mut self)
crates/ruff_python_trivia/src/tokenizer.rs:801
↓ 10 callersMethodnext_index
(&self)
crates/ruff_index/src/vec.rs:69
↓ 10 callersMethodno_name
Do not show the [`Level`]s name Useful for: - Another layer of the application will include the level (e.g. when rendering errors) - [`Message`]s tha
crates/ruff_annotate_snippets/src/level.rs:211
↓ 10 callersFunctionnormalized
(raw: &str)
crates/ty_ide/src/docstring/document/numpy.rs:1379
↓ 10 callersMethodopposite
(self)
crates/ruff_linter/src/rules/flake8_quotes/settings.rs:67
↓ 10 callersMethodparse_body
Parses the body of the given [`Clause`]. This could either be a single statement that's on the same line as the clause header or an indented block.
crates/ruff_python_parser/src/parser/statement.rs:3108
↓ 10 callersMethodparse_identifier
Parses an identifier. For an invalid identifier, the `id` field will be an empty string. See: <https://docs.python.org/3/reference/expressions.html#
crates/ruff_python_parser/src/parser/expression.rs:501
↓ 10 callersMethodparts
Returns an iterator over the [`StringLikePart`] contained in this string-like expression.
crates/ruff_python_ast/src/expression.rs:98
↓ 10 callersMethodpath
(&self, relative_path: &str)
crates/ruff_db/src/system/os/ignore.rs:58
↓ 10 callersFunctionpending_place_state_mut
( place: ScopedPlaceId, symbol_states: &'a mut IndexVec<ScopedSymbolId, PendingPlaceState>, member
crates/ty_python_core/src/use_def.rs:2018
↓ 10 callersMethodposition_encoding
(&self)
crates/ty_server/src/session.rs:1485
↓ 10 callersFunctionpublic_test
(code: &str)
crates/ty_ide/src/symbols.rs:3277
↓ 10 callersMethodpush_trailing
Pushes a *trailing* part for `key`.
crates/ruff_python_formatter/src/comments/map.rs:146
← previousnext →1,501–1,600 of 31,562, ranked by callers