MCPcopy Create free account

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

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

Methodexact
(value: u64)
crates/ruff_linter/src/rules/flake8_bandit/rules/bad_file_permissions.rs:137
Methodexact_class_narrowing_target
Return the expression being tested by an exact runtime-class check. `x.__class__` is modeled as equivalent to `type(x)` by [`Type::dunder_class`], so
crates/ty_python_semantic/src/types/narrow.rs:4109
Methodexactly
Create a new query
crates/ty_ide/src/symbols.rs:54
Methodexactly
(name: &str)
crates/ty_ide/src/completion.rs:1614
Functionexample
(session)
crates/ruff_python_formatter/resources/test/fixtures/black/cases/fmtonoff.py:84
Functionexample
(session)
crates/ruff_python_formatter/resources/test/fixtures/black/cases/function.py:38
Functionexample
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/remove_parens.py:18
Functionexample
(filename: str, text: str)
crates/ruff_linter/resources/test/fixtures/refurb/FURB188.py:210
Functionexample
(a: List[int], /, b: Sequence[int], *, c: Set[int])
crates/ruff_linter/resources/test/fixtures/flake8_type_checking/TC004_5.py:7
Functionexample
()
crates/ruff_linter/resources/test/fixtures/flake8_type_checking/TC004_16.py:9
Functionexample
()
crates/ruff_linter/resources/test/fixtures/flake8_type_checking/TC005.py:7
Functionexample
()
crates/ruff_linter/resources/test/fixtures/flake8_type_checking/TC002.py:74
Functionexample
()
crates/ruff_linter/resources/test/fixtures/flake8_type_checking/TC004_2.py:7
Functionexample
()
crates/ruff_linter/resources/test/fixtures/flake8_type_checking/TC004_17.py:9
Functionexample
(*args: Any, **kwargs: Any)
crates/ruff_linter/resources/test/fixtures/flake8_type_checking/TC004_4.py:7
Functionexample
()
crates/ruff_linter/resources/test/fixtures/flake8_type_checking/TC004_6.py:7
Functionexample
()
crates/ruff_linter/resources/test/fixtures/flake8_return/RET503.py:300
Methodexample
(self)
crates/ruff_linter/resources/test/fixtures/flake8_type_checking/TC004_7.py:9
Methodexample
Getter.
crates/ruff_linter/resources/test/fixtures/pylint/property_with_parameters.py:24
Functionexample1
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/remove_parens.py:22
Functionexample1point5
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/remove_parens.py:26
Functionexample2
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/remove_parens.py:30
Methodexample2
Regular docstring of class method. Examples -------- >>> df = pl.DataFrame( ... {"foo": [1, 2, 3], "bar"
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples_dynamic_line_width.py:199
Functionexample3
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/remove_parens.py:34
Functionexample4
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/remove_parens.py:38
Functionexample5
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/remove_parens.py:42
Functionexample6
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/remove_parens.py:46
Functionexample7
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/remove_parens.py:50
Functionexample8
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/remove_parens.py:54
Functionexample_with_following_section
Summary. Returns: str: The resulting expression. Raises: ValueError: If the unit is not valid. Relation to
crates/ruff_linter/resources/test/fixtures/pydoclint/DOC502_google.py:101
Functionexamples_before_returns
Summary. Examples: >>> func() Returns: int
crates/ruff_linter/resources/test/fixtures/pydocstyle/D420_google.py:135
Methodexceeds_width
(fits: &FitsMeasurer, args: PrintElementArgs)
crates/ruff_formatter/src/printer/mod.rs:1486
Methodexcept_handler
(self)
crates/ruff_python_ast/src/generated.rs:2873
Functionexcept_handler_suggests_as
()
crates/ty_ide/src/completion.rs:8932
Functionexcept_handler_variable_references
()
crates/ty_ide/src/find_references.rs:469
Functionexcepthook
(type, value, tb)
python/ruff-ecosystem/ruff_ecosystem/cli.py:20
Functionexception_handlers
()
crates/ty_ide/src/semantic_tokens.rs:4699
Functionexceptions_of_D301
Exclude some backslashes from D301. In particular, line continuations \ and unicode literals \u0394 and \N{GREEK CAPITAL LETTER DELTA}. T
crates/ruff_linter/resources/test/fixtures/pydocstyle/D.py:342
Functionexclude
()
crates/ruff/tests/analyze_graph.rs:655
Functionexclude
()
crates/ruff/tests/cli/format.rs:420
Functionexclude
()
crates/ruff/tests/cli/lint.rs:198
Functionexclude_argument
()
crates/ty/tests/cli/file_selection.rs:116
Functionexclude_argument_precedence_include_argument
()
crates/ty/tests/cli/file_selection.rs:485
Functionexclude_precedence_over_include
()
crates/ty/tests/cli/file_selection.rs:400
Functionexclude_scripts_ignores_scripts_with_invalid_toml
()
crates/ty/tests/cli/file_selection.rs:94
Functionexclude_scripts_only_applies_to_implicitly_discovered_files
()
crates/ty/tests/cli/file_selection.rs:6
Functionexclude_scripts_uses_saved_contents_after_close
()
crates/ty_server/tests/e2e/script_preparation.rs:89
Functionexclude_stdin
()
crates/ruff/tests/cli/format.rs:960
Functionexclude_stdin
()
crates/ruff/tests/cli/lint.rs:304
Functionexclude_symlink_source_not_target
()
crates/ty/tests/cli/file_selection.rs:1369
Methodexcluded_edge_case
(cls: Type[_S], arg: int)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI019_0.py:22
Functionexcluded_scripts_do_not_initialize_their_environments
()
crates/ty/tests/cli/scripts.rs:1603
Functionexcludes_abstract_test_classes
()
crates/ty_python_semantic/src/types/dedicated/pytest/collection.rs:1014
Functionexcludes_direct_parameters_and_keeps_indirect_parameters
()
crates/ty_python_semantic/src/types/dedicated/pytest/fixtures.rs:2162
Functionexcludes_known_property_decorators
()
crates/ty_python_semantic/src/types/dedicated/pytest/collection.rs:1076
Functionexcludes_mock_patch_and_unittest_parameters
()
crates/ty_python_semantic/src/types/dedicated/pytest/fixtures.rs:1994
Functionexcludes_unavailable_definitions_from_fixture_exposures
()
crates/ty_python_semantic/src/types/dedicated/pytest/fixtures.rs:3388
Functionexclusions
()
crates/ruff_workspace/src/resolver.rs:1097
Methodexecute
(self, next_ds, context)
crates/ruff_linter/resources/test/fixtures/airflow/AIR301_context.py:137
Methodexecute
(self, context)
crates/ruff_linter/resources/test/fixtures/airflow/AIR301_context.py:153
Methodexecute
(self, context)
crates/ruff_linter/resources/test/fixtures/airflow/AIR301_decorator.py:12
Methodexecute
(self, context)
crates/ruff_linter/resources/test/fixtures/airflow/AIR301_decorator.py:20
Functionexempt_modules
(rule_code: Rule, path: &Path)
crates/ruff_linter/src/rules/flake8_type_checking/mod.rs:220
Functionexempt_type_checking
(rule_code: Rule, path: &Path)
crates/ruff_linter/src/rules/flake8_type_checking/mod.rs:247
Functionexhausted_projection_keeps_legacy_mapping_unavailable
()
crates/ty_python_semantic/src/types/generics.rs:5857
Functionexhaustive
()
crates/ruff_unicode_names2/src/lib.rs:420
Functionexisting_environment_remains_available_during_background_synchronization
()
crates/ty_project/src/uv/environments.rs:1065
Functionexisting_future_import
()
crates/ty_ide/src/importer.rs:540
Functionexisting_future_import_after_docstring
()
crates/ty_ide/src/importer.rs:558
Methodexisting_import
Create an [`Insertion`] to insert an additional member to import into a `from <module> import member1, member2, ...` statement. For example, given th
crates/ruff_python_importer/src/insertion.rs:186
Functionexisting_import_works
()
crates/ruff_python_importer/src/insertion.rs:594
Functionexisting_ty_ignore
()
crates/ty_python_semantic/src/fixes.rs:1115
Methodexists
(&self, path: impl AsRef<VendoredPath>)
crates/ruff_db/src/vendored.rs:56
Functionexists_directories
()
crates/ruff_db/src/system/memory_fs.rs:782
Functionexit_non_zero_on_format
()
crates/ruff/tests/cli/format.rs:741
Functionexit_zero_is_true
()
crates/ty/tests/cli/exit_code.rs:270
Functionexpand_bool_type
()
crates/ty_python_semantic/src/types/type_expansion.rs:177
Methodexpand_numeric_tower_unions
(&self)
crates/ty_python_semantic/src/types/display.rs:207
Methodexpand_parent
(enclosing: &[Enclosing])
crates/ruff_formatter/src/format_element/document.rs:48
Functionexpand_tuple_type
()
crates/ty_python_semantic/src/types/type_expansion.rs:189
Functionexpand_union_type
()
crates/ty_python_semantic/src/types/type_expansion.rs:161
Functionexpands_tabs_to_tab_stops_when_trimming_documentation
()
crates/ty_ide/src/docstring.rs:155
Methodexpect_ann_assign_stmt
(self)
crates/ruff_python_ast/src/generated.rs:642
Methodexpect_assert_stmt
(self)
crates/ruff_python_ast/src/generated.rs:938
Methodexpect_assign_stmt
(self)
crates/ruff_python_ast/src/generated.rs:568
Methodexpect_attribute_expr
(self)
crates/ruff_python_ast/src/generated.rs:2553
Methodexpect_aug_assign_stmt
(self)
crates/ruff_python_ast/src/generated.rs:605
Methodexpect_await_expr
(self)
crates/ruff_python_ast/src/generated.rs:2072
Methodexpect_bin_op_expr
(self)
crates/ruff_python_ast/src/generated.rs:1702
Methodexpect_bool_op_expr
(self)
crates/ruff_python_ast/src/generated.rs:1628
Methodexpect_boolean_literal_expr
(self)
crates/ruff_python_ast/src/generated.rs:2442
Methodexpect_break_stmt
(self)
crates/ruff_python_ast/src/generated.rs:1197
Methodexpect_bytes_literal_expr
(self)
crates/ruff_python_ast/src/generated.rs:2368
Methodexpect_call_expr
(self)
crates/ruff_python_ast/src/generated.rs:2220
Methodexpect_class_def_stmt
(self)
crates/ruff_python_ast/src/generated.rs:420
Methodexpect_compare_expr
(self)
crates/ruff_python_ast/src/generated.rs:2183
Methodexpect_continue_stmt
(self)
crates/ruff_python_ast/src/generated.rs:1234
Methodexpect_delete_stmt
(self)
crates/ruff_python_ast/src/generated.rs:494
Methodexpect_dict_comp_expr
(self)
crates/ruff_python_ast/src/generated.rs:1998
Methodexpect_dict_expr
(self)
crates/ruff_python_ast/src/generated.rs:1850
← previousnext →18,401–18,500 of 31,562, ranked by callers