Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/astral-sh/ruff
/ functions
Functions
31,766 in github.com/astral-sh/ruff
⨍
Functions
31,766
◇
Types & classes
7,128
↳
Endpoints
82
↓ 1 callers
Method
new
(contents: &'a str)
crates/ruff_linter/src/locator.rs:15
↓ 1 callers
Method
new_block
Makes new block and returns index
crates/ruff_python_semantic/src/cfg/graph.rs:297
↓ 1 callers
Function
new_indexer
(contents: &str)
crates/ruff_python_index/src/indexer.rs:237
↓ 1 callers
Function
new_logical_line_between_statements
(source: &str, between_statement_range: TextRange)
crates/ruff_python_formatter/src/statement/suite.rs:963
↓ 1 callers
Function
newline_after_last_paragraph
D209
crates/ruff_linter/src/rules/pydocstyle/rules/newline_after_last_paragraph.rs:67
↓ 1 callers
Function
newline_count
(body: &str)
crates/ruff_annotate_snippets/src/renderer/render.rs:2847
↓ 1 callers
Method
newlines
(&mut self, extra: usize)
crates/ruff_python_codegen/src/generator.rs:157
↓ 1 callers
Function
newtype_instance
(db: &'db dyn Db, env: &ProgramEnvironment<'db>, name: &str)
crates/ty_python_semantic/src/types/property_tests/type_generation.rs:378
↓ 1 callers
Method
next
(&mut self)
crates/ruff_formatter/src/format_element.rs:413
↓ 1 callers
Method
next
(&mut self)
crates/ruff_python_ast/src/token/tokens.rs:272
↓ 1 callers
Method
next
Lazily yields [`PlaceLoadResolutionStep`] values to describe the resolution process. Internally, this traverses a directed, acyclic graph that models
crates/ty_python_semantic/src/place_load.rs:389
↓ 1 callers
Method
next
(&mut self)
crates/ty_python_semantic/src/suppression/parser.rs:166
↓ 1 callers
Method
next
(&mut self)
crates/ruff_linter/src/rule_selector.rs:308
↓ 1 callers
Method
next
(&mut self)
crates/ruff_linter/src/doc_lines.rs:37
↓ 1 callers
Method
next
(&mut self)
crates/ruff_linter/src/directives.rs:92
↓ 1 callers
Method
next
(&mut self)
crates/ruff_linter/src/suppression.rs:1381
↓ 1 callers
Method
next
(&mut self)
crates/ruff_linter/src/rules/fastapi/rules/fastapi_unused_path_parameter.rs:515
↓ 1 callers
Method
next_back
(&mut self)
crates/ruff_source_file/src/newlines.rs:116
↓ 1 callers
Method
next_back
(&mut self)
crates/ruff_linter/src/docstrings/sections.rs:288
↓ 1 callers
Method
next_event
Waits for the next message from the client or action. Returns `Ok(None)` if the client connection is closed.
crates/ty_server/src/server/main_loop.rs:185
↓ 1 callers
Method
next_event
Waits for the next message from the client or action. Returns `Ok(None)` if the client connection is closed.
crates/ruff_server/src/server/main_loop.rs:128
↓ 1 callers
Method
next_request_id
Generate a new request ID
crates/ty_server/tests/e2e/main.rs:371
↓ 1 callers
Method
next_request_id
Generate a new request ID
crates/ruff_server/tests/e2e/main.rs:308
↓ 1 callers
Method
next_reusing_source
Move to the next target parameter while reusing the current source parameter.
crates/ty_python_semantic/src/types/signatures.rs:3169
↓ 1 callers
Function
next_stmt_break
Find the next valid break for a `Stmt` after a semicolon.
crates/ruff_linter/src/fix/edits.rs:571
↓ 1 callers
Method
next_token
(&mut self)
crates/ruff_python_trivia/src/tokenizer.rs:530
↓ 1 callers
Method
next_token_inner
(&mut self, first: char)
crates/ruff_python_trivia/src/tokenizer.rs:567
↓ 1 callers
Method
next_token_is_open_parenthesis
(&self)
crates/ty_ide/src/completion.rs:1088
↓ 1 callers
Method
next_variadic_before
Returns the next variadic parameter that appears before `before`, if any.
crates/ruff_python_ast/src/nodes.rs:3577
↓ 1 callers
Function
no_classmethod_decorator
PLR0202
crates/ruff_linter/src/rules/pylint/rules/no_method_decorator.rs:94
↓ 1 callers
Function
no_explicit_stacklevel
B028
crates/ruff_linter/src/rules/flake8_bugbear/rules/no_explicit_stacklevel.rs:66
↓ 1 callers
Method
no_getattr_lookup
Do not call `__getattr__` during member lookup.
crates/ty_python_semantic/src/types.rs:1427
↓ 1 callers
Function
no_implicit_cwd
FURB177
crates/ruff_linter/src/rules/refurb/rules/implicit_cwd.rs:50
↓ 1 callers
Function
no_method_argument
PLE0211
crates/ruff_linter/src/rules/pylint/rules/no_method_argument.rs:62
↓ 1 callers
Function
no_newline_at_end_of_file
W292
crates/ruff_linter/src/rules/pycodestyle/rules/missing_newline_at_end_of_file.rs:43
↓ 1 callers
Function
no_return_argument_annotation
PYI050
crates/ruff_linter/src/rules/flake8_pyi/rules/no_return_argument_annotation.rs:59
↓ 1 callers
Method
no_rules_enabled
(self)
crates/ty_python_semantic/src/types/overrides.rs:2022
↓ 1 callers
Function
no_self_use
PLR6301
crates/ruff_linter/src/rules/pylint/rules/no_self_use.rs:76
↓ 1 callers
Function
no_signature
D402
crates/ruff_linter/src/rules/pydocstyle/rules/no_signature.rs:56
↓ 1 callers
Function
no_slots_in_namedtuple_subclass
SLOT002
crates/ruff_linter/src/rules/flake8_slots/rules/no_slots_in_namedtuple_subclass.rs:78
↓ 1 callers
Function
no_slots_in_str_subclass
SLOT000
crates/ruff_linter/src/rules/flake8_slots/rules/no_slots_in_str_subclass.rs:54
↓ 1 callers
Function
no_slots_in_tuple_subclass
SLOT001
crates/ruff_linter/src/rules/flake8_slots/rules/no_slots_in_tuple_subclass.rs:55
↓ 1 callers
Function
no_staticmethod_decorator
PLR0203
crates/ruff_linter/src/rules/pylint/rules/no_method_decorator.rs:99
↓ 1 callers
Function
no_surrounding_whitespace
D210
crates/ruff_linter/src/rules/pydocstyle/rules/no_surrounding_whitespace.rs:57
↓ 1 callers
Method
node
(&self, id: &CharStr)
crates/ty_project/src/uv/metadata/dependencies.rs:246
↓ 1 callers
Method
node
(&self, module_ref: &'ast ParsedModuleRef)
crates/ty_python_core/src/ast_node_ref.rs:97
↓ 1 callers
Method
node_count
Number of indexed nodes in the root AST.
crates/ruff_db/src/parsed.rs:226
↓ 1 callers
Method
node_id
Return the index of the statement node that contains `range`.
crates/ruff_python_formatter/tests/fixtures.rs:613
↓ 1 callers
Method
node_in_ast
Get a "safe" [`ast::AnyNodeRef`] to use for referring to the given (sub-)AST node. If we're analyzing a string annotation, it will return the string
crates/ty_python_semantic/src/semantic_model.rs:555
↓ 1 callers
Method
node_is_satisfiable_on_path_inner
( &mut self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, storage: &mut Con
crates/ty_python_semantic/src/types/constraints/solutions.rs:498
↓ 1 callers
Method
node_scope_by_key
Returns the id of the scope that the node identified by `key` creates. This is useful when you have a [`NodeWithScopeKey`] constructed from an [`AstN
crates/ty_python_core/src/lib.rs:794
↓ 1 callers
Function
nominal_union_index
( db: &'db dyn Db, program: Program<'db>, union: UnionType<'db>, )
crates/ty_python_semantic/src/types/relation.rs:292
↓ 1 callers
Function
non_alias_type_expression_diagnostics
( db: &'db dyn Db, definition: Definition<'db>, )
crates/ty_python_semantic/src/types/infer.rs:173
↓ 1 callers
Function
non_any_dynamic_content
Determine whether `ty` contains a dynamic type other than `Any`. Class-based protocol interfaces can be recursively specialized. An exact recursive c
crates/ty_python_semantic/src/types/visitor.rs:497
↓ 1 callers
Function
non_ascii_module_import
PLC2403
crates/ruff_linter/src/rules/pylint/rules/non_ascii_module_import.rs:68
↓ 1 callers
Function
non_ascii_name
PLC2401
crates/ruff_linter/src/rules/pylint/rules/non_ascii_name.rs:49
↓ 1 callers
Function
non_augmented_assignment
PLR6104
crates/ruff_linter/src/rules/pylint/rules/non_augmented_assignment.rs:98
↓ 1 callers
Function
non_empty
(variable: &str)
crates/ruff_command_line/src/color.rs:76
↓ 1 callers
Function
non_empty_init_module
RUF067
crates/ruff_linter/src/rules/ruff/rules/non_empty_init_module.rs:98
↓ 1 callers
Function
non_empty_stub_body
PYI010
crates/ruff_linter/src/rules/flake8_pyi/rules/non_empty_stub_body.rs:47
↓ 1 callers
Function
non_existent_mock_method
PGH005
crates/ruff_linter/src/rules/pygrep_hooks/rules/invalid_mock_access.rs:88
↓ 1 callers
Method
non_generic_implementation_parameters_consistency_with
Return whether this non-generic implementation accepts the arguments of a non-generic overload, and the relation error context if it does not. This i
crates/ty_python_semantic/src/types/signatures.rs:2365
↓ 1 callers
Method
non_generic_implementation_return_type_consistency_with
Return whether a non-generic overload return type is assignable to a non-generic implementation return type, and the relation error context if it is n
crates/ty_python_semantic/src/types/signatures.rs:2403
↓ 1 callers
Function
non_generic_nominal_class
Return the class of a nominal instance with no generic specialization or tuple specification of its own, provided the class is defined by a `class` st
crates/ty_python_semantic/src/types/relation.rs:250
↓ 1 callers
Function
non_imperative_mood
D401
crates/ruff_linter/src/rules/pydocstyle/rules/non_imperative_mood.rs:69
↓ 1 callers
Function
non_leading_receiver_decorator
DJ013
crates/ruff_linter/src/rules/flake8_django/rules/non_leading_receiver_decorator.rs:56
↓ 1 callers
Method
non_method_members
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/protocol_class.rs:912
↓ 1 callers
Function
non_none_annotation_element
Return the non-`None` annotation element of a PEP 604-style union or `Optional` annotation.
crates/ruff_linter/src/rules/flake8_pyi/rules/exit_annotations.rs:444
↓ 1 callers
Function
non_octal_permissions
RUF064
crates/ruff_linter/src/rules/ruff/rules/non_octal_permissions.rs:93
↓ 1 callers
Function
non_pep604_annotation
UP007, UP045
crates/ruff_linter/src/rules/pyupgrade/rules/use_pep604_annotation.rs:148
↓ 1 callers
Function
non_pep695_generic_class
UP046
crates/ruff_linter/src/rules/pyupgrade/rules/pep695/non_pep695_generic_class.rs:155
↓ 1 callers
Function
non_pep695_generic_function
UP047
crates/ruff_linter/src/rules/pyupgrade/rules/pep695/non_pep695_generic_function.rs:105
↓ 1 callers
Function
non_pep695_type_alias
UP040
crates/ruff_linter/src/rules/pyupgrade/rules/pep695/non_pep695_type_alias.rs:210
↓ 1 callers
Function
non_pep695_type_alias_type
UP040
crates/ruff_linter/src/rules/pyupgrade/rules/pep695/non_pep695_type_alias.rs:129
↓ 1 callers
Function
non_recursive_protocol_constraints
( db: &'db dyn Db, source: ProtocolInstanceType<'db>, target: ProtocolInterfaceView<'db>, )
crates/ty_python_semantic/src/types/instance.rs:1525
↓ 1 callers
Function
non_self_return_type
PYI034
crates/ruff_linter/src/rules/flake8_pyi/rules/non_self_return_type.rs:149
↓ 1 callers
Function
non_slot_assignment
PLE0237
crates/ruff_linter/src/rules/pylint/rules/non_slot_assignment.rs:65
↓ 1 callers
Function
non_unique_enums
PIE796
crates/ruff_linter/src/rules/flake8_pie/rules/non_unique_enums.rs:59
↓ 1 callers
Method
none
Override the output style for all other text
crates/ruff_annotate_snippets/src/renderer/mod.rs:271
↓ 1 callers
Function
none_not_at_end_of_union
RUF036
crates/ruff_linter/src/rules/ruff/rules/none_not_at_end_of_union.rs:93
↓ 1 callers
Function
nonlocal_and_global
PLE0115
crates/ruff_linter/src/rules/pylint/rules/nonlocal_and_global.rs:59
↓ 1 callers
Function
noqa_comments
(snapshot: &DocumentSnapshot, fixes: &[DiagnosticFix])
crates/ruff_server/src/server/api/requests/code_action.rs:162
↓ 1 callers
Function
noqa_comments
RUF105
crates/ruff_linter/src/rules/ruff/rules/noqa_comments.rs:89
↓ 1 callers
Method
noqa_comments
(&self)
crates/ruff_server/src/session/settings.rs:155
↓ 1 callers
Method
noqa_offset
(&self)
crates/ruff_db/src/diagnostic/mod.rs:437
↓ 1 callers
Function
normalizeFileName
(name: string)
playground/ty/src/Editor/Files.tsx:218
↓ 1 callers
Function
normalize_annotation
(file: File, annotation: &mut Annotation)
crates/ruff_mdtest/src/lib.rs:226
↓ 1 callers
Function
normalize_collection_use_constraints
Normalizes recursive collection constraints so that each cycle iteration cannot add another layer of nesting. These constraints feed back into the col
crates/ty_python_semantic/src/types/infer.rs:236
↓ 1 callers
Function
normalize_comment
A helper for normalizing comments by: Trimming any trailing whitespace. Adding a leading space after the `#`, if necessary. For example: `#comment` i
crates/ruff_python_formatter/src/comments/format.rs:468
↓ 1 callers
Function
normalize_constraint_bound
Converts a bound from an internal `ConstraintSet` constructor to its solver representation. A bare `ParamSpec` requires parameter lists; ordinary type
crates/ty_python_semantic/src/types/call/bind.rs:254
↓ 1 callers
Function
normalize_covered_literal_exclusions
Literal groups bypass pairwise union simplification. Match their exclusions in one pass so that restoring many excluded literals does not require comp
crates/ty_python_semantic/src/types/set_theoretic/builder.rs:245
↓ 1 callers
Function
normalize_diagnostics
Replace Ruff-style `SourceFile`s in `diagnostics` with Salsa-backed `File`s for use in `mdtest`.
crates/ruff_mdtest/src/lib.rs:212
↓ 1 callers
Function
normalize_digit_separators
Normalizes digit separators in a numeric string by: - Stripping leading and trailing underscores - Collapsing medial underscore sequences to single un
crates/ruff_linter/src/rules/refurb/rules/verbose_decimal_constructor.rs:225
↓ 1 callers
Function
normalize_embedded_type_markup
Removes embedded markup before wrapping the normalize type label in a code span. For example: - ``"str or :class:`pkg.Type` or `pkg.Other`"`` becomes
crates/ty_ide/src/docstring/markdown/structured.rs:394
↓ 1 callers
Function
normalize_ending_octal
Pads an octal at the end of the string to three digits, if necessary.
crates/ruff_linter/src/rules/flake8_implicit_str_concat/rules/implicit.rs:239
↓ 1 callers
Function
normalize_enum_complement_unions
Combine union elements that cover more of the same enum class. Enum complements are intersections like `Color & ~Literal[Color.RED]`. When a union co
crates/ty_python_semantic/src/types/set_theoretic/builder.rs:316
↓ 1 callers
Function
normalize_floating_number
Returns the normalized floating number string.
crates/ruff_python_formatter/src/expression/expr_number_literal.rs:110
↓ 1 callers
Function
normalize_imports
( imports: Vec<AnnotatedImport<'a>>, settings: &Settings, )
crates/ruff_linter/src/rules/isort/normalize.rs:5
↓ 1 callers
Function
normalize_integer
Returns the normalized integer string.
crates/ruff_python_formatter/src/expression/expr_number_literal.rs:65
↓ 1 callers
Function
normalize_lsp_edits
Deduplicates edits and drops files with overlapping edits.
crates/ty_server/src/server/api/requests/will_rename_files.rs:71
← previous
next →
11,901–12,000 of 31,766, ranked by callers