Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/astral-sh/ruff
/ functions
Functions
31,562 in github.com/astral-sh/ruff
⨍
Functions
31,562
◇
Types & classes
7,116
↳
Endpoints
82
↓ 1 callers
Method
setup
(self)
crates/ruff_linter/resources/test/fixtures/pylint/non_slot_assignment.py:55
↓ 1 callers
Method
setup
(self)
crates/ruff_linter/resources/test/fixtures/pylint/non_slot_assignment.py:67
↓ 1 callers
Method
setup
(self)
crates/ruff_linter/resources/test/fixtures/pylint/non_slot_assignment.py:96
↓ 1 callers
Function
setup_case
(n: usize)
crates/ruff_benchmark/benches/module_resolution.rs:44
↓ 1 callers
Function
setup_files
(files: impl IntoIterator<Item = &'static str>)
crates/ty_project/src/glob/include.rs:341
↓ 1 callers
Function
setup_iteration
(root: &SystemPath, uv: &SystemPath)
crates/ruff_benchmark/benches/ty_script.rs:12
↓ 1 callers
Method
setup_iteration
(&self, variant: ProjectVariant)
crates/ruff_benchmark/benches/ty.rs:2750
↓ 1 callers
Function
setup_logging
(log_level_args: &LogLevelArgs, log_file: Option<&Path>)
crates/ruff_dev/src/format_dev.rs:281
↓ 1 callers
Function
setup_micro_case_venv
(name: &str, dependencies: &[&str])
crates/ruff_benchmark/benches/ty_constraint_set.rs:16
↓ 1 callers
Function
setup_profile
()
crates/ty/src/logging.rs:188
↓ 1 callers
Function
setup_project
Clone a project and install its mypy-primer dependencies.
scripts/memory_report.py:279
↓ 1 callers
Function
setup_rayon
Initializes the global Rayon thread pool. A positive `TY_MAX_PARALLELISM` takes precedence over `RAYON_NUM_THREADS` for both file discovery and type c
crates/ty/src/lib.rs:969
↓ 1 callers
Function
setup_tomllib_case
()
crates/ruff_benchmark/benches/ty.rs:79
↓ 1 callers
Function
setup_tracing
Setup tracing for the test server. This will make sure that the tracing subscriber is initialized only once, so that running multiple tests does not
crates/ty_server/tests/e2e/main.rs:111
↓ 1 callers
Function
setup_tracing
Setup tracing for the test server. This will make sure that the tracing subscriber is initialized only once, so that running multiple tests does not
crates/ruff_server/tests/e2e/main.rs:82
↓ 1 callers
Function
setup_venv
Setup a virtual environment in the in-memory filesystem of `db` with the specified dependencies installed.
crates/ty_test/src/external_dependencies.rs:13
↓ 1 callers
Function
severity
(code: &str)
crates/ruff_server/src/lint.rs:592
↓ 1 callers
Function
severity_name
(severity: Severity)
crates/ruff_db/src/diagnostic/render/junit.rs:111
↓ 1 callers
Method
shadowed_bindings
Return an iterator over all bindings shadowed by the given [`BindingId`], within the containing scope, and across scopes.
crates/ruff_python_semantic/src/model.rs:2340
↓ 1 callers
Function
shadowed_descriptor_write_type
A staticmethod found on the receiver's type can be shadowed by its underlying function. This also applies to a class object shadowing a staticmethod o
crates/ty_python_semantic/src/types/attribute_write.rs:817
↓ 1 callers
Function
shallow_copy_environ
PLW1507
crates/ruff_linter/src/rules/pylint/rules/shallow_copy_environ.rs:62
↓ 1 callers
Function
shard_jobs
(jobs: Sequence[dict[str, Any]])
scripts/collect_ty_ecosystem_run_metadata.py:248
↓ 1 callers
Function
shared_clock_attribute
`shared-clock-mock`
crates/ruff_linter/src/rules/ruff/rules/shared_clock_mock.rs:161
↓ 1 callers
Function
shared_clock_mock
`shared-clock-mock`
crates/ruff_linter/src/rules/ruff/rules/shared_clock_mock.rs:119
↓ 1 callers
Function
shared_inherited_names
( db: &'db dyn Db, program: Program<'db>, source: StaticClassLiteral<'db>, other: ClassType<'d
crates/ty_python_semantic/src/types/overrides.rs:571
↓ 1 callers
Function
shebang_leading_whitespace
EXE004
crates/ruff_linter/src/rules/flake8_executable/rules/shebang_leading_whitespace.rs:56
↓ 1 callers
Function
shebang_missing_executable_file
(filepath: &Path, context: &LintContext)
crates/ruff_linter/src/rules/flake8_executable/rules/shebang_missing_executable_file.rs:50
↓ 1 callers
Function
shebang_missing_python
EXE003
crates/ruff_linter/src/rules/flake8_executable/rules/shebang_missing_python.rs:66
↓ 1 callers
Function
shebang_not_executable
(filepath: &Path, range: TextRange, context: &LintContext)
crates/ruff_linter/src/rules/flake8_executable/rules/shebang_not_executable.rs:54
↓ 1 callers
Function
shebang_not_first_line
EXE005
crates/ruff_linter/src/rules/flake8_executable/rules/shebang_not_first_line.rs:48
↓ 1 callers
Function
shell_injection
S602, S603, S604, S605, S606, S607, S609
crates/ruff_linter/src/rules/flake8_bandit/rules/shell_injection.rs:335
↓ 1 callers
Method
shorthand
Returns the shorthand for the base.
crates/ruff_linter/src/rules/refurb/rules/fstring_number_format.rs:219
↓ 1 callers
Method
should_await_call
Whether every callable return type is known to be awaitable in this context.
crates/ty_python_semantic/src/types/infer/builder/suspicious_conditions/diagnostic.rs:1085
↓ 1 callers
Function
should_be_fstring
Returns `true` if `literal` is likely an f-string with a missing `f` prefix. See [`MissingFStringSyntax`] for the validation criteria.
crates/ruff_linter/src/rules/ruff/rules/missing_fstring_syntax.rs:189
↓ 1 callers
Method
should_bind
Returns whether `bound_typevar` should be replaced by this binding's concrete self type.
crates/ty_python_semantic/src/types.rs:11620
↓ 1 callers
Function
should_check_file
(db: &dyn Db, file: File)
crates/ty_project/src/lib.rs:943
↓ 1 callers
Method
should_check_file
(&self, file: File)
crates/ty_test/src/db.rs:139
↓ 1 callers
Method
should_check_file
(&self, file: File)
crates/ty_python_core/src/db.rs:114
↓ 1 callers
Method
should_check_file
(&self, file: File)
crates/ty_python_semantic/tests/corpus.rs:200
↓ 1 callers
Method
should_check_file
(&self, file: File)
fuzz/fuzz_targets/ty_check_invalid_syntax.rs:107
↓ 1 callers
Method
should_check_runtime_errors
(&self, expression: impl Ranged)
crates/ty_python_semantic/src/types/infer/builder/type_expression.rs:430
↓ 1 callers
Function
should_check_semantics
Returns whether semantic checking and semantic diagnostics should run for `file`. Scripts with invalid configuration still produce configuration diag
crates/ty_project/src/lib.rs:908
↓ 1 callers
Method
should_collect_diagnostics
Whether diagnostics inferred separately for a referenced alias should be collected.
crates/ty_python_semantic/src/types/context.rs:266
↓ 1 callers
Method
should_complete_callable_parentheses
(&self, kind: Option<CompletionKind>)
crates/ty_ide/src/completion.rs:1765
↓ 1 callers
Function
should_consider_definition
Returns `true` for definition kinds that create user-facing bindings we consider for unused-binding diagnostics.
crates/ty_python_semantic/src/types/ide_support/unused_bindings.rs:17
↓ 1 callers
Method
should_defer_message
The LSP specification doesn't allow configuration requests during initialization, but we need access to the configuration to resolve the settings in t
crates/ty_server/src/session.rs:433
↓ 1 callers
Method
should_defer_typevartuple_callable_check
TODO: Remove this workaround once call binding can infer a `TypeVarTuple` from `*args` and callable argument checking preserves correlations across ov
crates/ty_python_semantic/src/types/call/bind.rs:7816
↓ 1 callers
Method
should_display
(self, multiline: bool)
crates/ty_python_semantic/src/types/display.rs:109
↓ 1 callers
Function
should_document_returns
(function_def: &ast::StmtFunctionDef)
crates/ruff_linter/src/rules/pydoclint/rules/check_docstring.rs:1108
↓ 1 callers
Method
should_edit_arbitrary_definition
(&mut self, definition: Definition<'db>)
crates/ty_ide/src/will_rename.rs:667
↓ 1 callers
Method
should_edit_import_definition
Determines and caches whether the bound name introduced by an import definition changes. Revisiting a definition while its analysis is in progress de
crates/ty_ide/src/will_rename.rs:713
↓ 1 callers
Method
should_edit_member_in_module
( &mut self, model: &SemanticModel<'db>, module: Module<'db>, bound_name: &str
crates/ty_ide/src/will_rename.rs:646
↓ 1 callers
Method
should_end_before
( &self, line: ParsedLine<'_>, line_header: Option<Header>, boundary_item: boo
crates/ty_ide/src/docstring/document/google.rs:403
↓ 1 callers
Method
should_expand
(mut self, should_expand: bool)
crates/ruff_formatter/src/builders.rs:1436
↓ 1 callers
Method
should_fix
(&self, rule: Rule)
crates/ruff_linter/src/settings/rule_table.rs:45
↓ 1 callers
Function
should_give_hint
We want to avoid suggesting an annotation for e.g. `x = None`, because the user almost certainly doesn't want to write `x: None = None`. We also want
crates/ty_python_semantic/src/types/diagnostic.rs:4232
↓ 1 callers
Method
should_hide_self_from_display
(&self)
crates/ty_python_semantic/src/types/display.rs:2685
↓ 1 callers
Function
should_ignore_definition
Check decorator list to see if function should be ignored.
crates/ruff_linter/src/rules/pydocstyle/helpers.rs:47
↓ 1 callers
Function
should_include_in_selection
Determines if a node should be included in the selection range hierarchy. This filters out intermediate nodes that don't provide meaningful selections
crates/ty_ide/src/selection_range.rs:36
↓ 1 callers
Function
should_inline_comments
Returns `true` for unsplittable expressions for which comments should be inlined.
crates/ruff_python_formatter/src/statement/stmt_assign.rs:1286
↓ 1 callers
Function
should_non_inlineable_use_best_fit
Tests whether an expression for which comments shouldn't be inlined should use the best fit layout
crates/ruff_python_formatter/src/statement/stmt_assign.rs:1312
↓ 1 callers
Function
should_parenthesize_callable_type
Returns `true` if the given type is a callable type that should be parenthesized when appearing as a parameter annotation or return type of another ca
crates/ty_python_semantic/src/types/display.rs:3712
↓ 1 callers
Function
should_parenthesize_target
(target: &Expr, context: &PyFormatContext)
crates/ruff_python_formatter/src/statement/stmt_assign.rs:1335
↓ 1 callers
Function
should_preserve_hashable_union
Return `true` if union simplification should preserve this pair because one element is `Hashable` and the other is a non-final nominal instance. Hash
crates/ty_python_semantic/src/types/set_theoretic/builder.rs:286
↓ 1 callers
Function
should_preserve_inferred_binding_type
(ty: Type<'_>)
crates/ty_python_semantic/src/types/infer/builder.rs:216
↓ 1 callers
Method
should_provide_callable_upcast_context
(&self, source: Type<'db>)
crates/ty_python_semantic/src/types/relation.rs:1859
↓ 1 callers
Function
should_skip_comparison
(expr: &Expr, semantic: &SemanticModel)
crates/ruff_linter/src/rules/ruff/rules/float_equality_comparison.rs:168
↓ 1 callers
Function
should_skip_import
(db: &dyn Db, module: ty_module_resolver::Module, ty: Type)
crates/ty_ide/src/inlay_hints.rs:749
↓ 1 callers
Method
should_skip_pulling_types
(&self)
crates/mdtest/src/parser.rs:166
↓ 1 callers
Method
should_snapshot_diagnostics
(&self)
crates/mdtest/src/parser.rs:155
↓ 1 callers
Function
should_suppress_clause
( clause: &FormatClause<'a, '_>, f: &mut Formatter<PyFormatContext<'_>>, )
crates/ruff_python_formatter/src/statement/clause.rs:720
↓ 1 callers
Method
should_visit_alias_arguments
(self)
crates/ty_python_semantic/src/types/visitor.rs:975
↓ 1 callers
Function
should_visit_incremental_path
( path: &SystemPath, incremental_paths: &BTreeSet<SystemPathBuf>, )
crates/ty_project/src/walk.rs:346
↓ 1 callers
Method
should_visit_lazy_type_attributes
(&self)
crates/ty_python_semantic/src/types/instance.rs:626
↓ 1 callers
Method
should_visit_lazy_type_attributes
(&self)
crates/ty_python_semantic/src/types/typevar.rs:991
↓ 1 callers
Function
show_files
Show the list of files to be checked based on current settings.
crates/ruff/src/commands/show_files.rs:14
↓ 1 callers
Function
show_nonprinting
(s: &str)
crates/ruff_db/src/diagnostic/render/full.rs:351
↓ 1 callers
Function
show_settings
Print the user-facing configuration settings.
crates/ruff/src/commands/show_settings.rs:12
↓ 1 callers
Method
show_syntax_errors
(&self)
crates/ruff_server/src/session/settings.rs:163
↓ 1 callers
Method
show_warning_message
Sends a request to display a warning to the client with a formatted message. The warning is sent in a `window/showMessage` notification. Logs an erro
crates/ty_server/src/session/client.rs:220
↓ 1 callers
Method
show_warning_message
Sends a request to display a warning to the client with a formatted message. The warning is sent in a `window/showMessage` notification. Logs an erro
crates/ruff_server/src/session/client.rs:186
↓ 1 callers
Method
shrink
(self)
crates/ty_python_semantic/src/types/property_tests/type_generation.rs:127
↓ 1 callers
Function
shrink_callable_component
(ty: &Ty)
crates/ty_python_semantic/src/types/property_tests/type_generation.rs:200
↓ 1 callers
Method
shrink_to_fit
(&mut self, symbols: &IndexVec<ScopedSymbolId, Symbol>)
crates/ty_python_core/src/symbol.rs:201
↓ 1 callers
Method
shrink_to_fit
(&mut self)
crates/ty_python_semantic/src/types/constraints.rs:2046
↓ 1 callers
Method
signature_help_request
Sends a `textDocument/signatureHelp` request for the document at the given URI and position.
crates/ty_server/tests/e2e/main.rs:1154
↓ 1 callers
Function
signed_number_literal
(expr: &Expr)
crates/ruff_linter/src/rules/pyflakes/rules/repeated_keys.rs:250
↓ 1 callers
Method
simple_expr
Simple expressions that directly narrow a single place.
crates/ty_python_core/src/place.rs:681
↓ 1 callers
Function
simple_magic_return_type
Returns the expected return type for a magic method. See: <https://github.com/JelleZijlstra/autotyping/blob/0adba5ba0eee33c1de4ad9d0c79acfd737321dd9/
crates/ruff_python_stdlib/src/typing.rs:382
↓ 1 callers
Method
simplified
(&self)
crates/ruff_db/src/system/path.rs:57
↓ 1 callers
Method
simplify_constrained_typevars
Tries to simplify any constrained typevars in the intersection. We must preserve the constrained `TypeVar` itself in the result, even if only a singl
crates/ty_python_semantic/src/types/set_theoretic/builder.rs:2558
↓ 1 callers
Function
simplify_conversion_flag
(flags: CConversionFlags)
crates/ruff_linter/src/rules/pyupgrade/rules/printf_string_formatting.rs:95
↓ 1 callers
Function
simplify_intersection_pair_impl
( db: &'db dyn Db, types: TypePair<'db>, polarity: IntersectionPolarity, )
crates/ty_python_semantic/src/types/set_theoretic/builder.rs:1969
↓ 1 callers
Method
single
(&self)
crates/ty_python_semantic/src/types/equality/enums.rs:825
↓ 1 callers
Function
single_argument_to_int_call
( call: &'a ExprCall, semantic: &SemanticModel, )
crates/ruff_linter/src/rules/ruff/rules/unnecessary_cast_to_int.rs:149
↓ 1 callers
Function
single_char_prefix
(c: char)
crates/ruff_python_parser/src/lexer.rs:1523
↓ 1 callers
Function
single_descriptor_setter_domain
Derive the values accepted by one possible runtime descriptor.
crates/ty_python_semantic/src/types/attribute_write.rs:1213
↓ 1 callers
Function
single_item
Return the single item wrapped in `Some` if the expression contains a single item, otherwise return `None`.
crates/ruff_linter/src/rules/refurb/rules/single_item_membership_test.rs:115
↓ 1 callers
Function
single_item_membership_test
FURB171
crates/ruff_linter/src/rules/refurb/rules/single_item_membership_test.rs:69
↓ 1 callers
Method
single_overload_return
Compute the effective return type for the given constructor overload. This differs from the ordinary return type in that, if the overload returns an i
crates/ty_python_semantic/src/types/call/bind/constructor.rs:647
← previous
next →
13,101–13,200 of 31,562, ranked by callers