MCPcopy Create free account

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

Functions27,349 in github.com/astral-sh/ruff

↓ 7 callersMethodconstraint_tables
(&self)
crates/ty_python_core/src/use_def.rs:841
↓ 7 callersMethodcontains_inclusive
(self, offset: TextSize)
crates/ruff_text_size/src/range.rs:184
↓ 7 callersFunctioncreate_file
Helper function to create a file with parent directories
crates/ruff_linter/src/rules/isort/categorize.rs:453
↓ 7 callersMethodcurrent_directory
(&self)
crates/ruff_db/src/system/memory_fs.rs:66
↓ 7 callersMethodcurrent_flags
Returns the flags for the current token.
crates/ruff_python_parser/src/lexer.rs:133
↓ 7 callersMethodcurrent_scope_info_mut
(&mut self)
crates/ty_python_core/src/builder.rs:363
↓ 7 callersFunctioncustom_enum_method
Returns the enum method defined in `scope`, including opaque bindings.
crates/ty_python_semantic/src/types/enums.rs:1396
↓ 7 callersFunctiondefault
()
crates/ruff_linter/src/message/grouped.rs:253
↓ 7 callersMethoddiagnostic_mode
(&self)
crates/ty_server/src/session/settings.rs:14
↓ 7 callersMethoddisplay
(self, db: &dyn Db)
crates/ty_python_semantic/src/types/class/known.rs:979
↓ 7 callersFunctiondivergent
(db: &TestDb, id_bits: u64, materialization: Option<MaterializationKind>)
crates/ty_python_semantic/src/types/property_tests/type_generation.rs:269
↓ 7 callersMethoddocumentation_url
(&self)
crates/ruff_db/src/diagnostic/mod.rs:382
↓ 7 callersMethodenable_diagnostic_dynamic_registration
Enable or disable dynamic registration of diagnostics capability
crates/ty_server/tests/e2e/main.rs:1285
↓ 7 callersMethodenter
Returns the type bound from a context manager with type `self`. This method should only be used outside of type checking because it omits any errors.
crates/ty_python_semantic/src/types/context_manager.rs:16
↓ 7 callersMethodentries
(&mut self, items: I)
crates/ty_python_semantic/src/types/display.rs:393
↓ 7 callersMethoderror
(self, message)
crates/ruff_linter/resources/test/fixtures/mccabe/C901.py:129
↓ 7 callersMethodexpect_function
(&self)
crates/ty_python_core/src/scope.rs:420
↓ 7 callersMethodextract
Extract the [`FileNoqaDirectives`] for a given Python source file, enumerating any rules that are globally ignored within the file.
crates/ruff_linter/src/noqa.rs:242
↓ 7 callersMethodfallback_truthiness
(&self)
crates/ty_python_semantic/src/types/bool.rs:376
↓ 7 callersMethodfields
Returns a list of all annotated attributes defined in this class, or any of its superclasses. See [`StaticClassLiteral::own_fields`] for more details
crates/ty_python_semantic/src/types/class/static_literal.rs:1914
↓ 7 callersMethodfile_range
(&self)
crates/ty_ide/src/lib.rs:85
↓ 7 callersMethodfile_stem
(&self)
crates/ruff_db/src/system/path.rs:290
↓ 7 callersMethodfind_first
Finds the first node that fully covers the range and fulfills the given predicate. The "first" here means that the node closest to a leaf is returned
crates/ruff_python_ast/src/find_node.rs:90
↓ 7 callersFunctionfind_newline
(text: &str)
crates/ruff_source_file/src/newlines.rs:58
↓ 7 callersFunctionfind_only_token_in_range
Returns the only non-trivia, non-closing parenthesis token in `range`. Includes debug assertions that the range only contains that single token.
crates/ruff_python_trivia/src/tokenizer.rs:22
↓ 7 callersMethodfinish
(mut self)
crates/ty_python_semantic/src/types/context.rs:232
↓ 7 callersMethodflags
(&self)
crates/ruff_python_formatter/src/string/normalize.rs:271
↓ 7 callersMethodflags
(&self)
crates/ruff_linter/src/docstrings/mod.rs:25
↓ 7 callersMethodfmt_detailed
(&self, f: &mut TypeWriter<'_, '_, 'db>)
crates/ty_python_semantic/src/types/display.rs:653
↓ 7 callersFunctionfoo
()
crates/ty_python_semantic/resources/corpus/57_await.py:1
↓ 7 callersFunctionfoo
function without params, single line docstring
crates/ruff_linter/resources/test/fixtures/flake8_quotes/docstring_singles_function.py:1
↓ 7 callersMethodfull_end
(&self)
crates/ruff_source_file/src/newlines.rs:217
↓ 7 callersMethodfull_line_range
Computes the range of this `offset`s line. The range starts at the beginning of the line and goes up to, and including, the new line character at the
crates/ruff_source_file/src/line_ranges.rs:98
↓ 7 callersMethodget
(&self, directive: MdtestDirective)
crates/mdtest/src/parser.rs:1065
↓ 7 callersFunctionget_function_f
(db: &'db TestDb, file: &'static str)
crates/ty_python_semantic/src/types/signatures.rs:4536
↓ 7 callersMethodget_positional
Return positional parameter at given index, or `None` if `index` is out of range. Does not return variadic parameter.
crates/ty_python_semantic/src/types/signatures.rs:3811
↓ 7 callersFunctionget_redirect_target
Returns the redirect target for the given code.
crates/ruff_linter/src/rule_redirects.rs:5
↓ 7 callersMethodget_source_type
Return a mapped [`SourceType`] for a given path.
crates/ruff_linter/src/settings/types.rs:509
↓ 7 callersMethodglobal_settings
(&self)
crates/ty_server/src/session.rs:1318
↓ 7 callersMethodgroup_id
Creates a new group id that is unique to this document. The passed debug name is used in the [`std::fmt::Debug`] of the document if this is a debug bu
crates/ruff_formatter/src/lib.rs:971
↓ 7 callersFunctionhash
(key: NodeRefEqualityKey)
crates/ruff_python_formatter/src/comments/node_key.rs:63
↓ 7 callersMethodhover_request
Send a `textDocument/hover` request for the document at the given path and position.
crates/ruff_server/tests/e2e/main.rs:819
↓ 7 callersFunctionid
(lint_name: &'static str)
crates/ruff_db/src/diagnostic/render.rs:2936
↓ 7 callersMethodignore_possibly_undefined
Returns the type of the place, ignoring possible undefinedness. If the place is *definitely* undefined, this function will return `None`. Otherwise,
crates/ty_python_semantic/src/place.rs:275
↓ 7 callersMethodin_exception_handler
Return `true` if the model is in an exception handler.
crates/ruff_python_semantic/src/model.rs:2208
↓ 7 callersFunctionin_parentheses_only_group
Makes `content` a group, but only if the outer expression is parenthesized (a list, parenthesized expression, dict, ...) or if the expression gets par
crates/ruff_python_formatter/src/expression/parentheses.rs:297
↓ 7 callersMethodin_string_annotation
(&self)
crates/ty_python_semantic/src/types/infer/builder.rs:747
↓ 7 callersMethodin_type_expression
Interpret this special form as an unparameterized type in a type-expression context. This is called for the "misc" special forms that are not aliases
crates/ty_python_semantic/src/types/special_form.rs:814
↓ 7 callersMethodindex
Returns a reference to the contained index. # Panics Panics if the index is `None`.
crates/ty_server/src/system.rs:113
↓ 7 callersMethodinfer_optional_expression
( &mut self, expression: Option<&ast::Expr>, tcx: TypeContext<'db>, )
crates/ty_python_semantic/src/types/infer/builder.rs:5247
↓ 7 callersFunctioninfer_scope_types
Infer all types for a [`ScopeId`], including all definitions and expressions in that scope. Use when checking a scope, or needing to provide a type fo
crates/ty_python_semantic/src/types/infer.rs:319
↓ 7 callersMethodinfer_value
(&mut self, tcx: TypeContext<'db>, emit_diagnostics: bool)
crates/ty_python_semantic/src/types/infer/builder/attribute_assignment.rs:82
↓ 7 callersMethodinstall
Installs the dependencies required to type check the project.
scripts/ty_benchmark/src/benchmark/venv.py:61
↓ 7 callersMethodinto_bool
(self)
crates/ruff_python_ast/src/helpers.rs:1550
↓ 7 callersMethodinto_iter
(self)
crates/mdtest/src/assertion.rs:138
↓ 7 callersMethodinto_owned
(self)
crates/ty_python_semantic/src/types/signatures.rs:3941
↓ 7 callersMethodinto_vec
(self)
crates/ty_python_semantic/src/types/infer/builder.rs:11023
↓ 7 callersFunctioninvalid_syntax
(path: &Utf8Path, content: String)
crates/ruff_python_parser/tests/fixtures.rs:26
↓ 7 callersFunctionis_airflow_builtin_or_provider
Check whether the segments corresponding to the fully qualified name points to a symbol that's either a builtin or coming from one of the providers in
crates/ruff_linter/src/rules/airflow/helpers.rs:176
↓ 7 callersMethodis_annotation
(self, db: &'db dyn Db)
crates/ty_python_core/src/scope.rs:24
↓ 7 callersMethodis_closed
Return whether this set excludes every value not named by its representation. A whole-domain or complement representation is not closed for an enum t
crates/ty_python_semantic/src/types/equality/enums.rs:325
↓ 7 callersMethodis_declared
(self)
crates/ty_python_semantic/src/place.rs:63
↓ 7 callersMethodis_divergent
(&self)
crates/ty_python_semantic/src/types.rs:1056
↓ 7 callersFunctionis_docstring_stmt
Return `true` if a `Stmt` is a docstring.
crates/ruff_python_ast/src/helpers.rs:1270
↓ 7 callersMethodis_empty
(&self)
crates/ruff_linter/src/suppression.rs:285
↓ 7 callersFunctionis_enum_class_by_inheritance
Checks if a class is an enum class by inheritance (either a subtype of `Enum` or has a metaclass that is a subtype of `EnumType`). This is a lighter-
crates/ty_python_semantic/src/types/enums.rs:1532
↓ 7 callersMethodis_eof
Returns `true` if the cursor is at the end of file.
crates/ruff_python_parser/src/lexer/cursor.rs:87
↓ 7 callersFunctionis_magic
Returns `true` if a function is a "magic method".
crates/ruff_python_semantic/src/analyze/visibility.rs:122
↓ 7 callersMethodis_positional
Returns `true` if this is either a positional-only or standard (positional or keyword) parameter.
crates/ty_python_semantic/src/types/signatures.rs:4290
↓ 7 callersFunctionis_property
Returns `true` if a function definition is a `@property`. `extra_properties` can be used to check additional non-standard `@property`-like decorators.
crates/ruff_python_semantic/src/analyze/visibility.rs:66
↓ 7 callersMethodis_redundant_with
Return `true` if it would be redundant to add `self` to a union that already contains `other`. See [`TypeRelation::Redundancy`] for more details.
crates/ty_python_semantic/src/types/relation.rs:528
↓ 7 callersMethodis_removed
(&self)
crates/ty_python_semantic/src/lint.rs:212
↓ 7 callersMethodis_runtime
(self)
crates/ruff_linter/src/rules/flake8_type_checking/helpers.rs:98
↓ 7 callersMethodis_string
(self)
crates/ty_python_semantic/src/types/literal.rs:238
↓ 7 callersMethodis_subtype_of_class_literal
Return `true` if this class is a subtype of (any specialization of) `class_literal`.
crates/ty_python_semantic/src/types/class.rs:1161
↓ 7 callersMethodis_symbol
Returns `true` if the reference is a `Symbol`, otherwise `false`.
crates/ty_python_core/src/place.rs:122
↓ 7 callersMethodis_triple_quoted
(&self)
crates/ruff_linter/src/docstrings/mod.rs:61
↓ 7 callersMethodis_type_var
(self)
crates/ty_python_semantic/src/types/typevar.rs:31
↓ 7 callersMethodis_union
(self)
crates/ty_python_semantic/src/types.rs:1678
↓ 7 callersMethodis_vendored_path
(&self)
crates/ruff_db/src/files/path.rs:58
↓ 7 callersMethoditer
Returns an iterator over all members in the table.
crates/ty_python_core/src/member.rs:491
↓ 7 callersMethoditer
Returns an iterator over the starting rows of each cell (1-based). This yields one entry per Python cell (skipping over Markdown cell).
crates/ruff_notebook/src/index.rs:43
↓ 7 callersMethoditer_prefix_elements
(&self)
crates/ty_python_semantic/src/types/tuple.rs:916
↓ 7 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:251
↓ 7 callersMethodlast
(mut self)
crates/ruff_formatter/src/format_element.rs:437
↓ 7 callersMethodlayout
(&self)
crates/ruff_python_literal/src/escape.rs:218
↓ 7 callersMethodlen
(&self)
crates/ty_python_semantic/src/types/set_theoretic.rs:516
↓ 7 callersMethodline_index
(&self)
crates/ruff_linter/src/locator.rs:48
↓ 7 callersMethodline_range
(&self, line: OneIndexed)
crates/ruff_source_file/src/lib.rs:87
↓ 7 callersFunctionlist_modules
(db: &dyn Db)
crates/ty_module_resolver/src/list.rs:28
↓ 7 callersMethodlookup_symbol_in_scope
Lookup a symbol in a certain scope without materializing lazy builtins. This is a carbon copy of [`Self::resolve_load`], but doesn't add any read ref
crates/ruff_python_semantic/src/model.rs:834
↓ 7 callersFunctionmatch_exclusion
( file_path: P, file_basename: R, exclusion: &GlobSet, )
crates/ruff_workspace/src/resolver.rs:825
↓ 7 callersMethodmaterialize
(self, db: &'db dyn Db, kind: MaterializationKind)
crates/ty_python_semantic/src/types/class_base.rs:406
↓ 7 callersMethodmerge
(self, db: &'db dyn Db, other: Self)
crates/ty_python_semantic/src/types/generics.rs:295
↓ 7 callersMethodmissing_node_range
(&self)
crates/ruff_python_parser/src/parser/mod.rs:323
↓ 7 callersFunctionmodule_type_implicit_global_symbol
Looks up the type of an "implicit global symbol". Returns [`Place::Undefined`] if `name` is not present as an implicit symbol in module-global namespa
crates/ty_python_semantic/src/place.rs:2048
↓ 7 callersMethodname
(&self)
crates/ruff_dev/src/generate_options.rs:81
↓ 7 callersMethodname
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/function.rs:735
↓ 7 callersMethodname
(&self)
crates/ruff_linter/src/registry.rs:361
↓ 7 callersMethodname
(self, source: &'a str)
crates/ruff_linter/src/rules/flake8_pyi/rules/custom_type_var_for_self.rs:482
← previousnext →1,601–1,700 of 27,349, ranked by callers