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
Function
main
()
crates/ruff_linter/resources/test/fixtures/pylint/sys_exit_alias_7.py:1
Function
main
()
crates/ruff_linter/resources/test/fixtures/pylint/await_outside_async.py:9
Function
main
()
crates/ruff_linter/resources/test/fixtures/pylint/sys_exit_alias_10.py:7
Function
main
()
crates/ruff_linter/resources/test/fixtures/pylint/sys_exit_alias_2.py:7
Function
main
()
crates/ruff_linter/resources/test/fixtures/pylint/sys_exit_alias_4.py:7
Function
main
()
crates/ruff_linter/resources/test/fixtures/pylint/sys_exit_alias_6.py:17
Function
main
()
crates/ruff_linter/resources/test/fixtures/pylint/sys_exit_alias_9.py:1
Function
main
()
crates/ruff_linter/resources/test/fixtures/pylint/sys_exit_alias_5.py:7
Function
main
()
crates/ruff_linter/resources/test/fixtures/pylint/sys_exit_alias_1.py:7
Function
main
()
crates/ruff_linter/resources/test/fixtures/pylint/sys_exit_alias_0.py:5
Function
main
()
crates/ruff_linter/resources/test/fixtures/pylint/sys_exit_alias_8.py:4
Function
main_function
()
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY401.py:2
Function
main_is_first_party
(path: &Path)
crates/ruff_linter/src/rules/isort/mod.rs:1641
Function
make_arange
(n)
crates/ruff_python_formatter/resources/test/fixtures/black/cases/python37.py:27
Method
make_cell_index
(cells: &[NotebookCell])
crates/ruff_server/src/edit/notebook.rs:236
Function
make_closure_pair
()
crates/ruff_linter/resources/test/fixtures/pyflakes/F821_34.py:23
Function
make_exclusion
(file_pattern: FilePattern)
crates/ruff_workspace/src/resolver.rs:1089
Function
make_unique_pod_id
r""" Generate a unique Pod name. Kubernetes pod names must consist of one or more lowercase rfc1035/rfc1123 labels separated by '.' with
crates/ruff_linter/resources/test/fixtures/pydocstyle/D301.py:17
Function
malformed_code_1
()
crates/ruff_linter/src/noqa.rs:1604
Function
malformed_code_2
()
crates/ruff_linter/src/noqa.rs:1616
Function
malformed_code_3
()
crates/ruff_linter/src/noqa.rs:1643
Function
malformed_initialization_options_preserve_workspace_trust
()
crates/ty_server/tests/e2e/initialize.rs:26
Function
malformed_radix_literals
()
crates/ruff_python_parser/src/parser/tests.rs:126
Function
malformed_trust_rejects_initialization
()
crates/ty_server/tests/e2e/initialize.rs:15
Function
many_generics
(args)
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP049_0.py:16
Function
many_search_paths
()
crates/ty/tests/cli/python_environment.rs:621
Function
many_statements
()
crates/ruff_linter/src/rules/pylint/helpers.rs:509
Function
many_yield
Not a problem
crates/ruff_linter/resources/test/fixtures/pylint/too_many_return_statements.py:28
Method
mapInlayHintKind
(kind: InlayHintKind)
playground/ty/src/Editor/Editor.tsx:448
Method
mapSeverity
(severity: Severity)
playground/ty/src/Editor/Editor.tsx:602
Function
map_codes
(func: &ItemFn)
crates/ruff_macros/src/map_codes.rs:39
Function
map_codes
(_attr: TokenStream, item: TokenStream)
crates/ruff_macros/src/lib.rs:104
Method
map_constrained_typevar_constraints
Maps an operation over each constraint of a constrained `TypeVar`. Returns the original `TypeVar` if each result is equivalent to its input constrain
crates/ty_python_semantic/src/types/infer/builder/binary_expressions.rs:403
Method
map_constraints
( db: &'db dyn Db, constraints: &OwnedConstraintSet<'db>, type_mapping: &TypeMapping<'
crates/ty_python_semantic/src/types/signatures.rs:2128
Function
map_marker
(ty: &Type<'db>, marker: Type<'db>, replacement: Type<'db>)
crates/ty_python_semantic/src/types/set_theoretic/builder.rs:2967
Function
map_preserves_alias_unpacking_behavior
()
crates/ty_python_semantic/src/types/set_theoretic/builder.rs:3005
Function
map_rebuilds_prefix_for_literal_widening
()
crates/ty_python_semantic/src/types/set_theoretic/builder.rs:2972
Function
map_starred
Given an [`Expr`] that can be starred, return the underlying starred expression.
crates/ruff_python_ast/src/helpers.rs:913
Function
map_strict_py314
(rule_code: Rule, path: &Path)
crates/ruff_linter/src/rules/ruff/mod.rs:872
Method
map_type
(self, f: impl FnOnce(Type<'db>) -> Type<'db>)
crates/ty_python_semantic/src/place.rs:317
Method
map_with_boundness_and_qualifiers
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, mut transform_fn: impl
crates/ty_python_semantic/src/types/set_theoretic.rs:620
Function
mappingproxytype_okay
( value=MappingProxyType({}), value2=types.MappingProxyType({}) )
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B006_B008.py:30
Method
mark_bound
(&mut self)
crates/ty_python_core/src/member.rs:48
Method
mark_bound
(&mut self)
crates/ty_python_core/src/symbol.rs:147
Method
mark_declared
(&mut self)
crates/ty_python_core/src/member.rs:52
Method
mark_declared
(&mut self)
crates/ty_python_core/src/symbol.rs:159
Method
mark_unreachable
(&mut self)
crates/ty_python_core/src/use_def.rs:2322
Method
mark_used
(&mut self, node: ScopedNarrowingConstraint)
crates/ty_python_core/src/narrowing_constraints.rs:168
Method
mark_used
Marks that a particular TDD node is used. This lets us throw away interior nodes that were only calculated for intermediate values, and which don't ne
crates/ty_python_core/src/reachability_constraints.rs:227
Function
markdown_actually_last
Do cool stuff. ```py cool_stuff( 1 ) ```
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:1009
Function
markdown_additional_info_string
Do cool stuff. ```python tab="plugin.py" cool_stuff( 1 ) ``` Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:1199
Function
markdown_extra_blanks
Do cool stuff. ```py cool_stuff( 1 ) ``` Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:1132
Function
markdown_extra_blanks_in_snippet
Do cool stuff. ```py cool_stuff( 1 ) cool_stuff( 2 ) ``` Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:1150
Function
markdown_first_line_indent_uses_tabs_4spaces
Do cool stuff. ```py cool_stuff( 1 ) ``` Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:1047
Function
markdown_first_line_indent_uses_tabs_4spaces_multiple
Do cool stuff. ```py cool_stuff( 1 ) cool_stuff( 2 ) ``` Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:1060
Function
markdown_first_line_indent_uses_tabs_8spaces
Do cool stuff. ```py cool_stuff( 1 ) ``` Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:1074
Function
markdown_first_line_indent_uses_tabs_8spaces_multiple
Do cool stuff. ```py cool_stuff( 1 ) cool_stuff( 2 ) ``` Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:1087
Function
markdown_first_line_tab_second_line_spaces
Do cool stuff. ```py cool_stuff( 1 ) cool_stuff( 2 ) ``` Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:1101
Function
markdown_formatting
()
crates/ruff/tests/cli/format.rs:2566
Function
markdown_formatting_quarto_cell_option
()
crates/ruff/tests/cli/format.rs:2642
Function
markdown_formatting_stdin
()
crates/ruff/tests/cli/format.rs:2608
Function
markdown_longer_closing_fence
Do cool stuff. ```py cool_stuff( 1 ) `````` Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:912
Function
markdown_nested_fences
Do cool stuff. `````` do_something( ''' ``` did i trick you? ``` ''' ) `````` Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:948
Function
markdown_odd_indentation
Do cool stuff. ```py cool_stuff( 1 ) cool_stuff( 2 ) ``` Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:1115
Function
markdown_over_indented
A docstring over intended ```python print( 5 ) ```
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:1187
Function
markdown_second_to_last
Do cool stuff. ```py cool_stuff( 1 ) ```
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:983
Function
markdown_simple
Do cool stuff. ```py cool_stuff( 1 ) ``` Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:856
Function
markdown_simple_continued
Do cool stuff. ```python def cool_stuff( x ): print( f"hi {x}" ); ``` Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:869
Function
markdown_skipped_accidental_closure
Do cool stuff. ```py cool_stuff( 1 ) ''' ``` ''' ``` Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:1230
Function
markdown_skipped_doctest
Do cool stuff. ```py >>> cool_stuff( 1 ) ``` Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:1308
Function
markdown_skipped_rst_directive
Do cool stuff. ```py .. code-block:: python cool_stuff( 1 ) ``` Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:1337
Function
markdown_skipped_rst_literal
Do cool stuff. ```py And do this:: cool_stuff( 1 ) ``` Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:1321
Function
markdown_skipped_unclosed_non_python
Do cool stuff. ```py cool_stuff( 1 ) I forgot to close the code block, and this is definitely not Python. So nothing here gets
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:1215
Function
markdown_skipped_unindented_completely
Do cool stuff. ```py cool_stuff( 1 ) ``` Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:1256
Function
markdown_skipped_unindented_somewhat
Do cool stuff. ```py cool_stuff( 1 ) ``` Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:1273
Function
markdown_skipped_unindented_with_inconsistent_indentation
Do cool stuff. ```py cool_stuff( 1 ) cool_stuff( 2 ) ``` Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:1294
Function
markdown_tildes
Do cool stuff. ~~~py cool_stuff( 1 ) ~~~ Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:898
Function
markdown_unclosed_actually_last
Do cool stuff. ```py cool_stuff( 1 )
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:1021
Function
markdown_unclosed_empty_lines
Do cool stuff. ```py cool_stuff( 1 )
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:968
Function
markdown_unlabeled
Do cool stuff. ``` cool_stuff( 1 ) ``` Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:884
Function
markdown_weird_closing
Code block with weirdly placed closing fences. ```python cool_stuff( 1 ) ``` # The above fences look like it shouldn't clo
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:1167
Function
markdown_with_blank_lines
Do cool stuff. ```py def cool_stuff( x ): print( f"hi {x}" ); def other_stuff( y ): print( y ) ```
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:1030
Method
masked
(self)
crates/ruff_benchmark/resources/pydantic/types.py:604
Method
match_annotation
Check annotation expression to match the intended type.
crates/ruff_python_semantic/src/analyze/typing.rs:761
Method
match_annotation
(annotation: &Expr, semantic: &SemanticModel)
crates/ruff_python_semantic/src/analyze/typing.rs:791
Method
match_annotation
( annotation: &ruff_python_ast::Expr, semantic: &ruff_python_semantic::SemanticModel, )
crates/ruff_linter/src/rules/flake8_async/rules/blocking_http_call_httpx.rs:61
Method
match_annotation
(annotation: &Expr, semantic: &ruff_python_semantic::SemanticModel)
crates/ruff_linter/src/rules/flake8_async/rules/blocking_path_methods.rs:177
Method
match_annotation
`C`, `C[T]`, `Annotated[C, ...]`, `Annotated[C[T], ...]`, `Self`, `Annotated[Self, ...]`
crates/ruff_linter/src/rules/flake8_self/rules/private_member_access.rs:284
Method
match_as
(self)
crates/ruff_python_ast/src/generated.rs:3337
Function
match_as_fields
(node: &ast::PatternMatchAs)
crates/ruff_python_ast/src/comparable.rs:263
Function
match_before_py310
()
crates/ruff/tests/cli/lint.rs:4223
Method
match_builtin_constructor
Check if the given expression corresponds to a constructor call of the builtin type.
crates/ruff_python_semantic/src/analyze/typing.rs:782
Function
match_call
(expression: &'a Expression<'b>)
crates/ruff_linter/src/cst/matchers.rs:69
Function
match_case
()
crates/ruff_linter/src/rules/pylint/helpers.rs:494
Function
match_case
()
crates/ruff_linter/src/rules/pylint/rules/too_many_branches.rs:286
Function
match_case_and_elif
()
crates/ruff_linter/resources/test/fixtures/ruff/RUF028.py:67
Function
match_case_catch_all_with_sequence
()
crates/ruff_linter/src/rules/mccabe/rules/function_is_too_complex.rs:515
Function
match_case_names
(x)
crates/ruff_linter/resources/test/fixtures/pep8_naming/N806.py:63
Function
match_cases
()
crates/ruff_python_formatter/src/comments/mod.rs:846
Method
match_class
(self)
crates/ruff_python_ast/src/generated.rs:3263
← previous
next →
23,901–24,000 of 31,766, ranked by callers