MCPcopy Create free account

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

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

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:313
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:602
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:4209
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:491
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
Functionmatch_class_fields
(node: &ast::PatternMatchClass)
crates/ruff_python_ast/src/comparable.rs:228
Functionmatch_class_pattern
()
crates/ruff_python_ast_integration_tests/tests/visitor.rs:73
Functionmatch_class_pattern
()
crates/ruff_python_ast_integration_tests/tests/source_order.rs:64
Functionmatch_directory
()
crates/ty_project/src/glob/include.rs:382
Methodmatch_expr_type
Check if the type can be inferred from the given expression.
crates/ruff_python_semantic/src/analyze/typing.rs:773
Methodmatch_file
Whether the file matches any of the globs.
crates/ty_project/src/glob/include.rs:61
Functionmatch_file_with_metacharacters_in_cwd
()
crates/ty_project/src/glob/include.rs:452
Methodmatch_head
Return the [`ast::ExprName`] at the head of the expression, if any.
crates/ruff_python_semantic/src/model.rs:1205
Methodmatch_initializer
Check initializer expression to match the intended type.
crates/ruff_python_semantic/src/analyze/typing.rs:768
Methodmatch_initializer
(initializer: &Expr, semantic: &SemanticModel)
crates/ruff_python_semantic/src/analyze/typing.rs:795
Methodmatch_initializer
( initializer: &ruff_python_ast::Expr, semantic: &ruff_python_semantic::SemanticModel, )
crates/ruff_linter/src/rules/flake8_async/rules/blocking_http_call_httpx.rs:92
Methodmatch_initializer
( initializer: &Expr, semantic: &ruff_python_semantic::SemanticModel, )
crates/ruff_linter/src/rules/flake8_async/rules/blocking_path_methods.rs:195
Methodmatch_initializer
`cls()`, `C()`, `C[T]()`, `super().__new__()`, `object.__new__()`, `self`
crates/ruff_linter/src/rules/flake8_self/rules/private_member_access.rs:299
Methodmatch_mapping
(self)
crates/ruff_python_ast/src/generated.rs:3226
Functionmatch_mapping_fields
(node: &ast::PatternMatchMapping)
crates/ruff_python_ast/src/comparable.rs:206
Methodmatch_or
(self)
crates/ruff_python_ast/src/generated.rs:3374
Functionmatch_or_fields
(node: &ast::PatternMatchOr)
crates/ruff_python_ast/src/comparable.rs:276
Functionmatch_pattern_suggests_keywords
()
crates/ty_ide/src/completion.rs:8990
Functionmatch_same_arms
()
crates/ruff_annotate_snippets/tests/rustc_tests.rs:5828
Methodmatch_sequence
(self)
crates/ruff_python_ast/src/generated.rs:3189
Functionmatch_sequence_fields
(node: &ast::PatternMatchSequence)
crates/ruff_python_ast/src/comparable.rs:190
Methodmatch_singleton
(self)
crates/ruff_python_ast/src/generated.rs:3152
Functionmatch_singleton_fields
(node: &ast::PatternMatchSingleton)
crates/ruff_python_ast/src/comparable.rs:181
Methodmatch_star
(self)
crates/ruff_python_ast/src/generated.rs:3300
Functionmatch_star_fields
(node: &ast::PatternMatchStar)
crates/ruff_python_ast/src/comparable.rs:248
Functionmatch_statement_compares_its_pattern
()
crates/ruff_python_ast_integration_tests/tests/comparable.rs:98
Functionmatch_stmt
()
crates/ty_python_core/src/lib.rs:2191
Methodmatch_stmt
(self)
crates/ruff_python_ast/src/generated.rs:819
Methodmatch_value
(self)
crates/ruff_python_ast/src/generated.rs:3115
Functionmatch_value_fields
(node: &ast::PatternMatchValue)
crates/ruff_python_ast/src/comparable.rs:172
Functionmatches
(query: &str, symbol: &str)
crates/ty_ide/src/symbols.rs:3273
Methodmatches
Returns `true` if the [`NameImport`] matches the specified name and binding.
crates/ruff_python_semantic/src/imports.rs:74
Methodmatches
Returns whether the given module name matches any pattern in this set. Uses "last match wins" semantics (like gitignore): - Returns [`ModuleNameMatch
crates/ty_module_resolver/src/module_glob.rs:96
Methodmatches_all_symbols
Create a new query pattern that matches all symbols.
crates/ty_ide/src/symbols.rs:63
Functionmatches_duplicate_ranges_in_source_order
()
crates/ty/tests/cli/baseline.rs:118
Functionmatches_test_function_prefix_case_sensitively
()
crates/ty_python_semantic/src/types/dedicated/pytest/collection.rs:645
Functionmaterialization_noop_checks_hidden_function_types
()
crates/ty_python_semantic/src/types/visitor.rs:1193
Functionmaterialization_noop_rejects_divergent_markers
()
crates/ty_python_semantic/src/types/visitor.rs:1247
← previousnext →23,801–23,900 of 31,562, ranked by callers