MCPcopy Create free account

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

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

Functiontest_remove
(ds1)
crates/ruff_benchmark/resources/large/dataset.py:160
Functiontest_remove_inner_quotes_double
(self, user: AbstractBaseUser["int"])
crates/ruff_linter/resources/test/fixtures/flake8_type_checking/quote2.py:4
Functiontest_remove_inner_quotes_mixed
(self, user: AbstractBaseUser['int', "str"])
crates/ruff_linter/resources/test/fixtures/flake8_type_checking/quote2.py:18
Functiontest_remove_inner_quotes_single
(self, user: AbstractBaseUser['int'])
crates/ruff_linter/resources/test/fixtures/flake8_type_checking/quote2.py:11
Functiontest_renamed_dataset_has_updated_attributes
(ds1: mikeio.Dataset)
crates/ruff_benchmark/resources/large/dataset.py:1350
Methodtest_report_text_cannot_break_out_of_json
(self)
python/ruff-ecosystem/tests/test_html.py:61
Functiontest_resolve_applicability
()
crates/ruff_linter/src/settings/fix_safety_table.rs:130
Functiontest_respect_ignore_files
()
crates/ty/tests/cli/main.rs:164
Functiontest_rest_style_parameter_documentation
()
crates/ty_ide/src/docstring.rs:1341
Functiontest_results
()
crates/ruff_db/src/diagnostic/render/sarif.rs:451
Functiontest_retain_comment
Retain the comment within the `else` block
crates/ruff_linter/resources/test/fixtures/pylint/useless_else_on_loop.py:140
Functiontest_retain_inline_else_body_comment
The comment trailing an inline `else` body belongs to its statement
crates/ruff_linter/resources/test/fixtures/pylint/useless_else_on_loop.py:160
Functiontest_return_for
else + return is not acceptable.
crates/ruff_linter/resources/test/fixtures/pylint/useless_else_on_loop.py:4
Functiontest_return_for2
no false positive for break in else https://bitbucket.org/logilab/pylint/issue/117/useless-else-on-loop-false-positives
crates/ruff_linter/resources/test/fixtures/pylint/useless_else_on_loop.py:48
Functiontest_return_multiline_string_binary_expression_return_type_annotation
(a)
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/return_type_parameters.py:67
Functiontest_return_multiline_string_binary_expression_return_type_annotation
()
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/return_type_no_parameters.py:68
Functiontest_return_multiline_string_type_annotation
(a)
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/return_type_parameters.py:61
Functiontest_return_multiline_string_type_annotation
()
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/return_type_no_parameters.py:62
Functiontest_return_overlong_union
( a, )
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/return_type_parameters.py:38
Functiontest_return_overlong_union
()
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/return_type_no_parameters.py:40
Functiontest_return_union_with_elements_exceeding_length
( a, )
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/return_type_parameters.py:44
Functiontest_return_union_with_elements_exceeding_length
()
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/return_type_no_parameters.py:47
Functiontest_return_while
else + return is not acceptable.
crates/ruff_linter/resources/test/fixtures/pylint/useless_else_on_loop.py:14
Methodtest_rewrite_references
(self)
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT027_1.py:14
Methodtest_rewrite_references_multiple_items
(self)
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT027_1.py:21
Methodtest_rewrite_references_multiple_items_nested
(self)
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT027_1.py:32
Functiontest_rsplit_whitespace_with_maxsplit
(s: &str, max_split: usize, expected: &[&str])
crates/ruff_linter/src/rules/flake8_simplify/rules/split_static_string.rs:415
Functiontest_run_in_sub_directory
()
crates/ty/tests/cli/main.rs:124
Functiontest_same_name_module_and_directory
()
crates/ruff_linter/src/rules/isort/categorize.rs:619
Functiontest_select_item_by_iteminfo
()
crates/ruff_benchmark/resources/large/dataset.py:444
Functiontest_select_item_by_name
()
crates/ruff_benchmark/resources/large/dataset.py:363
Functiontest_select_multiple_items_by_index
(ds3)
crates/ruff_benchmark/resources/large/dataset.py:424
Functiontest_select_multiple_items_by_name
()
crates/ruff_benchmark/resources/large/dataset.py:401
Functiontest_select_multiple_items_by_slice
(ds3)
crates/ruff_benchmark/resources/large/dataset.py:434
Functiontest_select_subset_isel
()
crates/ruff_benchmark/resources/large/dataset.py:239
Functiontest_select_subset_isel_axis_out_of_range_error
(ds2)
crates/ruff_benchmark/resources/large/dataset.py:277
Functiontest_select_subset_isel_multiple_idxs
()
crates/ruff_benchmark/resources/large/dataset.py:463
Functiontest_select_temporal_subset_by_idx
()
crates/ruff_benchmark/resources/large/dataset.py:294
Methodtest_self
(self)
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B032.py:28
Functiontest_semantic_errors
(path: &Path, python_version: PythonVersion)
crates/ruff_linter/src/linter.rs:1010
Methodtest_send_defaults
(self)
crates/ruff_linter/resources/test/fixtures/pyflakes/F811_18.py:13
Functiontest_set_comprehensions
()
crates/ruff_linter/resources/test/fixtures/ruff/RUF052_1.py:61
Functiontest_shebang_noqa
(name: &str, contents: &str)
crates/ruff_linter/src/linter.rs:1233
Functiontest_simple_ellipsis
( # This should become: id: Annotated[str, Query()] id: str = Query(...), )
crates/ruff_linter/resources/test/fixtures/fastapi/FAST002_2.py:44
Functiontest_simple_init_call
()
crates/ty_ide/src/inlay_hints.rs:3335
Functiontest_single_element
()
crates/ruff_formatter/src/macros.rs:351
Functiontest_single_element_deeply_nested_tuple
(param)
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT006.py:191
Functiontest_single_element_grouped_tuple
(param)
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT006.py:201
Functiontest_single_element_list
(param)
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT006.py:92
Functiontest_single_element_list
()
crates/ruff_linter/src/rules/airflow/rules/xcom_pull_in_template_string.rs:426
Functiontest_single_element_nested_empty_tuple
(param)
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT006.py:170
Functiontest_single_element_nested_multi_tuple
(param)
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT006.py:181
Functiontest_single_element_tuple
(param)
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT006.py:87
Functiontest_single_element_tuple
()
crates/ruff_linter/src/rules/airflow/rules/xcom_pull_in_template_string.rs:434
Functiontest_single_element_tuple_no_trailing_comma
()
crates/ruff_linter/src/rules/airflow/rules/xcom_pull_in_template_string.rs:442
Functiontest_single_list_of_lists
(param)
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT007.py:76
Functiontest_single_parentheses
()
crates/ruff_python_ast_integration_tests/tests/parentheses.rs:27
Functiontest_single_quoted_byte
()
crates/ruff_python_parser/src/string.rs:932
Functiontest_single_star_direct_submodule
()
crates/ty_module_resolver/src/module_glob.rs:403
Functiontest_single_star_middle
()
crates/ty_module_resolver/src/module_glob.rs:423
Functiontest_single_star_prefix
()
crates/ty_module_resolver/src/module_glob.rs:413
Functiontest_something
This test function does not need to be written in imperative mood. pydocstyle's rationale: We exclude tests from the imperative mood check, b
crates/ruff_linter/resources/test/fixtures/pydocstyle/D401.py:97
Functiontest_something
()
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT023.py:18
Functiontest_something
()
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT025.py:5
Functiontest_something
()
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT024.py:5
Methodtest_something
(self)
crates/ruff_linter/resources/test/fixtures/flake8_simplify/SIM115.py:281
Methodtest_something
()
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT023.py:24
Methodtest_something
()
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT023.py:37
Functiontest_source_annotation_standalone_multiline
()
crates/ruff_annotate_snippets/tests/formatter.rs:518
Functiontest_source_annotation_standalone_singleline
()
crates/ruff_annotate_snippets/tests/formatter.rs:491
Functiontest_source_content
()
crates/ruff_annotate_snippets/tests/formatter.rs:462
Functiontest_split
()
crates/ruff_unicode_names2_generator/src/util.rs:63
Functiontest_split_whitespace_with_maxsplit
(s: &str, max_split: usize, expected: &[&str])
crates/ruff_linter/src/rules/flake8_simplify/rules/split_static_string.rs:402
Functiontest_src_layout
()
crates/ruff_linter/src/rules/isort/categorize.rs:495
Functiontest_star_with_literal_text
()
crates/ty_module_resolver/src/module_glob.rs:433
Functiontest_starred_unpacked_tuple_assignment
()
crates/ty_ide/src/inlay_hints.rs:1748
Functiontest_start
()
crates/ruff_python_formatter/resources/test/fixtures/ruff/range_formatting/regressions.py:80
Functiontest_static_method_call
()
crates/ty_ide/src/inlay_hints.rs:5141
Functiontest_string
()
crates/ruff_python_parser/src/lexer.rs:2177
Functiontest_string_contains_opposite_quote
(self, type1: Type[Literal["'"]], type2: Type[Literal["\'"]])
crates/ruff_linter/resources/test/fixtures/flake8_type_checking/quote3.py:61
Functiontest_string_continuation_with_mac_eol
()
crates/ruff_python_parser/src/lexer.rs:2193
Functiontest_string_continuation_with_unix_eol
()
crates/ruff_python_parser/src/lexer.rs:2188
Functiontest_string_continuation_with_windows_eol
()
crates/ruff_python_parser/src/lexer.rs:2198
Functiontest_string_parser_escaped_mac_eol
()
crates/ruff_python_parser/src/string.rs:560
Functiontest_string_parser_escaped_unix_eol
()
crates/ruff_python_parser/src/string.rs:554
Functiontest_string_parser_escaped_windows_eol
()
crates/ruff_python_parser/src/string.rs:566
Functiontest_string_temporal_compare_between
(con, op, left, right)
crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/lambda.py:456
Functiontest_sub_dataset
(ds1, ds2)
crates/ruff_benchmark/resources/large/dataset.py:1246
Functiontest_sub_scalar
(ds1)
crates/ruff_benchmark/resources/large/dataset.py:1202
Functiontest_subclass_type
()
crates/ty_ide/src/inlay_hints.rs:5954
Functiontest_subscripted_protocol_inlay_hint
()
crates/ty_ide/src/inlay_hints.rs:7112
Functiontest_subset_with_datetime
()
crates/ruff_benchmark/resources/large/dataset.py:343
Functiontest_symbol_or_fall_back_to
()
crates/ty_python_semantic/src/place.rs:2798
Functiontest_syntax_errors
(rule: Rule, path: &Path)
crates/ruff_linter/src/linter.rs:1075
Methodtest_system
(&self)
crates/ty_module_resolver/src/db.rs:90
Methodtest_system
(&self)
crates/ty_python_core/src/db.rs:88
Methodtest_system
(&self)
crates/mdtest/src/lib.rs:786
Methodtest_system
(&self)
crates/ty_python_semantic/src/db.rs:135
Methodtest_system
(&self)
crates/ty_python_semantic/tests/corpus.rs:171
Methodtest_system
(&self)
fuzz/fuzz_targets/ty_check_invalid_syntax.rs:93
← previousnext →29,901–30,000 of 31,562, ranked by callers