Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/astral-sh/ruff
/ functions
Functions
31,562 in github.com/astral-sh/ruff
⨍
Functions
31,562
◇
Types & classes
7,116
↳
Endpoints
82
Function
test_remove
(ds1)
crates/ruff_benchmark/resources/large/dataset.py:160
Function
test_remove_inner_quotes_double
(self, user: AbstractBaseUser["int"])
crates/ruff_linter/resources/test/fixtures/flake8_type_checking/quote2.py:4
Function
test_remove_inner_quotes_mixed
(self, user: AbstractBaseUser['int', "str"])
crates/ruff_linter/resources/test/fixtures/flake8_type_checking/quote2.py:18
Function
test_remove_inner_quotes_single
(self, user: AbstractBaseUser['int'])
crates/ruff_linter/resources/test/fixtures/flake8_type_checking/quote2.py:11
Function
test_renamed_dataset_has_updated_attributes
(ds1: mikeio.Dataset)
crates/ruff_benchmark/resources/large/dataset.py:1350
Method
test_report_text_cannot_break_out_of_json
(self)
python/ruff-ecosystem/tests/test_html.py:61
Function
test_resolve_applicability
()
crates/ruff_linter/src/settings/fix_safety_table.rs:130
Function
test_respect_ignore_files
()
crates/ty/tests/cli/main.rs:164
Function
test_rest_style_parameter_documentation
()
crates/ty_ide/src/docstring.rs:1341
Function
test_results
()
crates/ruff_db/src/diagnostic/render/sarif.rs:451
Function
test_retain_comment
Retain the comment within the `else` block
crates/ruff_linter/resources/test/fixtures/pylint/useless_else_on_loop.py:140
Function
test_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
Function
test_return_for
else + return is not acceptable.
crates/ruff_linter/resources/test/fixtures/pylint/useless_else_on_loop.py:4
Function
test_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
Function
test_return_multiline_string_binary_expression_return_type_annotation
(a)
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/return_type_parameters.py:67
Function
test_return_multiline_string_binary_expression_return_type_annotation
()
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/return_type_no_parameters.py:68
Function
test_return_multiline_string_type_annotation
(a)
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/return_type_parameters.py:61
Function
test_return_multiline_string_type_annotation
()
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/return_type_no_parameters.py:62
Function
test_return_overlong_union
( a, )
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/return_type_parameters.py:38
Function
test_return_overlong_union
()
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/return_type_no_parameters.py:40
Function
test_return_union_with_elements_exceeding_length
( a, )
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/return_type_parameters.py:44
Function
test_return_union_with_elements_exceeding_length
()
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/return_type_no_parameters.py:47
Function
test_return_while
else + return is not acceptable.
crates/ruff_linter/resources/test/fixtures/pylint/useless_else_on_loop.py:14
Method
test_rewrite_references
(self)
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT027_1.py:14
Method
test_rewrite_references_multiple_items
(self)
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT027_1.py:21
Method
test_rewrite_references_multiple_items_nested
(self)
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT027_1.py:32
Function
test_rsplit_whitespace_with_maxsplit
(s: &str, max_split: usize, expected: &[&str])
crates/ruff_linter/src/rules/flake8_simplify/rules/split_static_string.rs:415
Function
test_run_in_sub_directory
()
crates/ty/tests/cli/main.rs:124
Function
test_same_name_module_and_directory
()
crates/ruff_linter/src/rules/isort/categorize.rs:619
Function
test_select_item_by_iteminfo
()
crates/ruff_benchmark/resources/large/dataset.py:444
Function
test_select_item_by_name
()
crates/ruff_benchmark/resources/large/dataset.py:363
Function
test_select_multiple_items_by_index
(ds3)
crates/ruff_benchmark/resources/large/dataset.py:424
Function
test_select_multiple_items_by_name
()
crates/ruff_benchmark/resources/large/dataset.py:401
Function
test_select_multiple_items_by_slice
(ds3)
crates/ruff_benchmark/resources/large/dataset.py:434
Function
test_select_subset_isel
()
crates/ruff_benchmark/resources/large/dataset.py:239
Function
test_select_subset_isel_axis_out_of_range_error
(ds2)
crates/ruff_benchmark/resources/large/dataset.py:277
Function
test_select_subset_isel_multiple_idxs
()
crates/ruff_benchmark/resources/large/dataset.py:463
Function
test_select_temporal_subset_by_idx
()
crates/ruff_benchmark/resources/large/dataset.py:294
Method
test_self
(self)
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B032.py:28
Function
test_semantic_errors
(path: &Path, python_version: PythonVersion)
crates/ruff_linter/src/linter.rs:1010
Method
test_send_defaults
(self)
crates/ruff_linter/resources/test/fixtures/pyflakes/F811_18.py:13
Function
test_set_comprehensions
()
crates/ruff_linter/resources/test/fixtures/ruff/RUF052_1.py:61
Function
test_shebang_noqa
(name: &str, contents: &str)
crates/ruff_linter/src/linter.rs:1233
Function
test_simple_ellipsis
( # This should become: id: Annotated[str, Query()] id: str = Query(...), )
crates/ruff_linter/resources/test/fixtures/fastapi/FAST002_2.py:44
Function
test_simple_init_call
()
crates/ty_ide/src/inlay_hints.rs:3335
Function
test_single_element
()
crates/ruff_formatter/src/macros.rs:351
Function
test_single_element_deeply_nested_tuple
(param)
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT006.py:191
Function
test_single_element_grouped_tuple
(param)
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT006.py:201
Function
test_single_element_list
(param)
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT006.py:92
Function
test_single_element_list
()
crates/ruff_linter/src/rules/airflow/rules/xcom_pull_in_template_string.rs:426
Function
test_single_element_nested_empty_tuple
(param)
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT006.py:170
Function
test_single_element_nested_multi_tuple
(param)
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT006.py:181
Function
test_single_element_tuple
(param)
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT006.py:87
Function
test_single_element_tuple
()
crates/ruff_linter/src/rules/airflow/rules/xcom_pull_in_template_string.rs:434
Function
test_single_element_tuple_no_trailing_comma
()
crates/ruff_linter/src/rules/airflow/rules/xcom_pull_in_template_string.rs:442
Function
test_single_list_of_lists
(param)
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT007.py:76
Function
test_single_parentheses
()
crates/ruff_python_ast_integration_tests/tests/parentheses.rs:27
Function
test_single_quoted_byte
()
crates/ruff_python_parser/src/string.rs:932
Function
test_single_star_direct_submodule
()
crates/ty_module_resolver/src/module_glob.rs:403
Function
test_single_star_middle
()
crates/ty_module_resolver/src/module_glob.rs:423
Function
test_single_star_prefix
()
crates/ty_module_resolver/src/module_glob.rs:413
Function
test_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
Function
test_something
()
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT023.py:18
Function
test_something
()
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT025.py:5
Function
test_something
()
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT024.py:5
Method
test_something
(self)
crates/ruff_linter/resources/test/fixtures/flake8_simplify/SIM115.py:281
Method
test_something
()
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT023.py:24
Method
test_something
()
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT023.py:37
Function
test_source_annotation_standalone_multiline
()
crates/ruff_annotate_snippets/tests/formatter.rs:518
Function
test_source_annotation_standalone_singleline
()
crates/ruff_annotate_snippets/tests/formatter.rs:491
Function
test_source_content
()
crates/ruff_annotate_snippets/tests/formatter.rs:462
Function
test_split
()
crates/ruff_unicode_names2_generator/src/util.rs:63
Function
test_split_whitespace_with_maxsplit
(s: &str, max_split: usize, expected: &[&str])
crates/ruff_linter/src/rules/flake8_simplify/rules/split_static_string.rs:402
Function
test_src_layout
()
crates/ruff_linter/src/rules/isort/categorize.rs:495
Function
test_star_with_literal_text
()
crates/ty_module_resolver/src/module_glob.rs:433
Function
test_starred_unpacked_tuple_assignment
()
crates/ty_ide/src/inlay_hints.rs:1748
Function
test_start
()
crates/ruff_python_formatter/resources/test/fixtures/ruff/range_formatting/regressions.py:80
Function
test_static_method_call
()
crates/ty_ide/src/inlay_hints.rs:5141
Function
test_string
()
crates/ruff_python_parser/src/lexer.rs:2177
Function
test_string_contains_opposite_quote
(self, type1: Type[Literal["'"]], type2: Type[Literal["\'"]])
crates/ruff_linter/resources/test/fixtures/flake8_type_checking/quote3.py:61
Function
test_string_continuation_with_mac_eol
()
crates/ruff_python_parser/src/lexer.rs:2193
Function
test_string_continuation_with_unix_eol
()
crates/ruff_python_parser/src/lexer.rs:2188
Function
test_string_continuation_with_windows_eol
()
crates/ruff_python_parser/src/lexer.rs:2198
Function
test_string_parser_escaped_mac_eol
()
crates/ruff_python_parser/src/string.rs:560
Function
test_string_parser_escaped_unix_eol
()
crates/ruff_python_parser/src/string.rs:554
Function
test_string_parser_escaped_windows_eol
()
crates/ruff_python_parser/src/string.rs:566
Function
test_string_temporal_compare_between
(con, op, left, right)
crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/lambda.py:456
Function
test_sub_dataset
(ds1, ds2)
crates/ruff_benchmark/resources/large/dataset.py:1246
Function
test_sub_scalar
(ds1)
crates/ruff_benchmark/resources/large/dataset.py:1202
Function
test_subclass_type
()
crates/ty_ide/src/inlay_hints.rs:5954
Function
test_subscripted_protocol_inlay_hint
()
crates/ty_ide/src/inlay_hints.rs:7112
Function
test_subset_with_datetime
()
crates/ruff_benchmark/resources/large/dataset.py:343
Function
test_symbol_or_fall_back_to
()
crates/ty_python_semantic/src/place.rs:2798
Function
test_syntax_errors
(rule: Rule, path: &Path)
crates/ruff_linter/src/linter.rs:1075
Method
test_system
(&self)
crates/ty_module_resolver/src/db.rs:90
Method
test_system
(&self)
crates/ty_python_core/src/db.rs:88
Method
test_system
(&self)
crates/mdtest/src/lib.rs:786
Method
test_system
(&self)
crates/ty_python_semantic/src/db.rs:135
Method
test_system
(&self)
crates/ty_python_semantic/tests/corpus.rs:171
Method
test_system
(&self)
fuzz/fuzz_targets/ty_check_invalid_syntax.rs:93
← previous
next →
29,901–30,000 of 31,562, ranked by callers