MCPcopy Create free account

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

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

Functionmain
()
crates/ruff_linter/resources/test/fixtures/pylint/sys_exit_alias_7.py:1
Functionmain
()
crates/ruff_linter/resources/test/fixtures/pylint/await_outside_async.py:9
Functionmain
()
crates/ruff_linter/resources/test/fixtures/pylint/sys_exit_alias_10.py:7
Functionmain
()
crates/ruff_linter/resources/test/fixtures/pylint/sys_exit_alias_2.py:7
Functionmain
()
crates/ruff_linter/resources/test/fixtures/pylint/sys_exit_alias_4.py:7
Functionmain
()
crates/ruff_linter/resources/test/fixtures/pylint/sys_exit_alias_6.py:17
Functionmain
()
crates/ruff_linter/resources/test/fixtures/pylint/sys_exit_alias_9.py:1
Functionmain
()
crates/ruff_linter/resources/test/fixtures/pylint/sys_exit_alias_5.py:7
Functionmain
()
crates/ruff_linter/resources/test/fixtures/pylint/sys_exit_alias_1.py:7
Functionmain
()
crates/ruff_linter/resources/test/fixtures/pylint/sys_exit_alias_0.py:5
Functionmain
()
crates/ruff_linter/resources/test/fixtures/pylint/sys_exit_alias_8.py:4
Functionmain_function
()
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY401.py:2
Functionmain_is_first_party
(path: &Path)
crates/ruff_linter/src/rules/isort/mod.rs:1641
Functionmake_arange
(n)
crates/ruff_python_formatter/resources/test/fixtures/black/cases/python37.py:27
Methodmake_cell_index
(cells: &[NotebookCell])
crates/ruff_server/src/edit/notebook.rs:236
Functionmake_closure_pair
()
crates/ruff_linter/resources/test/fixtures/pyflakes/F821_34.py:23
Functionmake_exclusion
(file_pattern: FilePattern)
crates/ruff_workspace/src/resolver.rs:1089
Functionmake_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
Functionmalformed_code_1
()
crates/ruff_linter/src/noqa.rs:1604
Functionmalformed_code_2
()
crates/ruff_linter/src/noqa.rs:1616
Functionmalformed_code_3
()
crates/ruff_linter/src/noqa.rs:1643
Functionmalformed_initialization_options_preserve_workspace_trust
()
crates/ty_server/tests/e2e/initialize.rs:26
Functionmalformed_radix_literals
()
crates/ruff_python_parser/src/parser/tests.rs:126
Functionmalformed_trust_rejects_initialization
()
crates/ty_server/tests/e2e/initialize.rs:15
Functionmany_generics
(args)
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP049_0.py:16
Functionmany_search_paths
()
crates/ty/tests/cli/python_environment.rs:621
Functionmany_statements
()
crates/ruff_linter/src/rules/pylint/helpers.rs:509
Functionmany_yield
Not a problem
crates/ruff_linter/resources/test/fixtures/pylint/too_many_return_statements.py:28
MethodmapInlayHintKind
(kind: InlayHintKind)
playground/ty/src/Editor/Editor.tsx:448
MethodmapSeverity
(severity: Severity)
playground/ty/src/Editor/Editor.tsx:602
Functionmap_codes
(func: &ItemFn)
crates/ruff_macros/src/map_codes.rs:39
Functionmap_codes
(_attr: TokenStream, item: TokenStream)
crates/ruff_macros/src/lib.rs:104
Methodmap_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
Methodmap_constraints
( db: &'db dyn Db, constraints: &OwnedConstraintSet<'db>, type_mapping: &TypeMapping<'
crates/ty_python_semantic/src/types/signatures.rs:2128
Functionmap_marker
(ty: &Type<'db>, marker: Type<'db>, replacement: Type<'db>)
crates/ty_python_semantic/src/types/set_theoretic/builder.rs:2967
Functionmap_preserves_alias_unpacking_behavior
()
crates/ty_python_semantic/src/types/set_theoretic/builder.rs:3005
Functionmap_rebuilds_prefix_for_literal_widening
()
crates/ty_python_semantic/src/types/set_theoretic/builder.rs:2972
Functionmap_starred
Given an [`Expr`] that can be starred, return the underlying starred expression.
crates/ruff_python_ast/src/helpers.rs:913
Functionmap_strict_py314
(rule_code: Rule, path: &Path)
crates/ruff_linter/src/rules/ruff/mod.rs:872
Methodmap_type
(self, f: impl FnOnce(Type<'db>) -> Type<'db>)
crates/ty_python_semantic/src/place.rs:317
Methodmap_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
Functionmappingproxytype_okay
( value=MappingProxyType({}), value2=types.MappingProxyType({}) )
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B006_B008.py:30
Methodmark_bound
(&mut self)
crates/ty_python_core/src/member.rs:48
Methodmark_bound
(&mut self)
crates/ty_python_core/src/symbol.rs:147
Methodmark_declared
(&mut self)
crates/ty_python_core/src/member.rs:52
Methodmark_declared
(&mut self)
crates/ty_python_core/src/symbol.rs:159
Methodmark_unreachable
(&mut self)
crates/ty_python_core/src/use_def.rs:2322
Methodmark_used
(&mut self, node: ScopedNarrowingConstraint)
crates/ty_python_core/src/narrowing_constraints.rs:168
Methodmark_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
Functionmarkdown_actually_last
Do cool stuff. ```py cool_stuff( 1 ) ```
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:1009
Functionmarkdown_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
Functionmarkdown_extra_blanks
Do cool stuff. ```py cool_stuff( 1 ) ``` Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:1132
Functionmarkdown_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
Functionmarkdown_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
Functionmarkdown_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
Functionmarkdown_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
Functionmarkdown_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
Functionmarkdown_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
Functionmarkdown_formatting
()
crates/ruff/tests/cli/format.rs:2566
Functionmarkdown_formatting_quarto_cell_option
()
crates/ruff/tests/cli/format.rs:2642
Functionmarkdown_formatting_stdin
()
crates/ruff/tests/cli/format.rs:2608
Functionmarkdown_longer_closing_fence
Do cool stuff. ```py cool_stuff( 1 ) `````` Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:912
Functionmarkdown_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
Functionmarkdown_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
Functionmarkdown_over_indented
A docstring over intended ```python print( 5 ) ```
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:1187
Functionmarkdown_second_to_last
Do cool stuff. ```py cool_stuff( 1 ) ```
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:983
Functionmarkdown_simple
Do cool stuff. ```py cool_stuff( 1 ) ``` Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:856
Functionmarkdown_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
Functionmarkdown_skipped_accidental_closure
Do cool stuff. ```py cool_stuff( 1 ) ''' ``` ''' ``` Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:1230
Functionmarkdown_skipped_doctest
Do cool stuff. ```py >>> cool_stuff( 1 ) ``` Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:1308
Functionmarkdown_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
Functionmarkdown_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
Functionmarkdown_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
Functionmarkdown_skipped_unindented_completely
Do cool stuff. ```py cool_stuff( 1 ) ``` Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:1256
Functionmarkdown_skipped_unindented_somewhat
Do cool stuff. ```py cool_stuff( 1 ) ``` Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:1273
Functionmarkdown_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
Functionmarkdown_tildes
Do cool stuff. ~~~py cool_stuff( 1 ) ~~~ Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:898
Functionmarkdown_unclosed_actually_last
Do cool stuff. ```py cool_stuff( 1 )
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:1021
Functionmarkdown_unclosed_empty_lines
Do cool stuff. ```py cool_stuff( 1 )
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:968
Functionmarkdown_unlabeled
Do cool stuff. ``` cool_stuff( 1 ) ``` Done.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples.py:884
Functionmarkdown_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
Functionmarkdown_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
Methodmasked
(self)
crates/ruff_benchmark/resources/pydantic/types.py:604
Methodmatch_annotation
Check annotation expression to match the intended type.
crates/ruff_python_semantic/src/analyze/typing.rs:761
Methodmatch_annotation
(annotation: &Expr, semantic: &SemanticModel)
crates/ruff_python_semantic/src/analyze/typing.rs:791
Methodmatch_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
Methodmatch_annotation
(annotation: &Expr, semantic: &ruff_python_semantic::SemanticModel)
crates/ruff_linter/src/rules/flake8_async/rules/blocking_path_methods.rs:177
Methodmatch_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
Methodmatch_as
(self)
crates/ruff_python_ast/src/generated.rs:3337
Functionmatch_as_fields
(node: &ast::PatternMatchAs)
crates/ruff_python_ast/src/comparable.rs:263
Functionmatch_before_py310
()
crates/ruff/tests/cli/lint.rs:4223
Methodmatch_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
Functionmatch_call
(expression: &'a Expression<'b>)
crates/ruff_linter/src/cst/matchers.rs:69
Functionmatch_case
()
crates/ruff_linter/src/rules/pylint/helpers.rs:494
Functionmatch_case
()
crates/ruff_linter/src/rules/pylint/rules/too_many_branches.rs:286
Functionmatch_case_and_elif
()
crates/ruff_linter/resources/test/fixtures/ruff/RUF028.py:67
Functionmatch_case_catch_all_with_sequence
()
crates/ruff_linter/src/rules/mccabe/rules/function_is_too_complex.rs:515
Functionmatch_case_names
(x)
crates/ruff_linter/resources/test/fixtures/pep8_naming/N806.py:63
Functionmatch_cases
()
crates/ruff_python_formatter/src/comments/mod.rs:846
Methodmatch_class
(self)
crates/ruff_python_ast/src/generated.rs:3263
← previousnext →23,901–24,000 of 31,766, ranked by callers