MCPcopy Create free account

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

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

Functiongithub_issue_1331_v5
(**args)
crates/ruff_linter/resources/test/fixtures/pylint/len_as_condition.py:101
Functiongithub_issue_1879
()
crates/ruff_linter/resources/test/fixtures/pylint/len_as_condition.py:107
Functiongithub_issue_4215
()
crates/ruff_linter/resources/test/fixtures/pylint/len_as_condition.py:180
Functiongitlab_diagnostics
()
crates/ty/tests/cli/main.rs:678
Functiongitlab_empty_diagnostics
()
crates/ty/tests/cli/main.rs:764
Methodglobal
()
crates/ruff_python_semantic/src/scope.rs:48
Methodglobal
Returns the scope id of the module-global scope.
crates/ty_python_core/src/scope.rs:104
Methodglobal
We handle the one syntax error that relies on this method (`LoadBeforeGlobalDeclaration`) directly in `visit_stmt`, so this just returns a placeholder
crates/ty_python_core/src/builder.rs:5894
Functionglobal_assignment
()
crates/ruff_linter/resources/test/fixtures/flake8_return/RET504.py:197
Methodglobal_client_settings
Returns the resolved global client settings.
crates/ruff_server/src/session.rs:210
Functionglobal_del
Deleting the global name prevents `global-variable-not-assigned`
crates/ruff_linter/resources/test/fixtures/pylint/global_statement.py:34
Functionglobal_from_nested_scope
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:1519
Functionglobal_function_assign
Function assigns should only throw a global statement error
crates/ruff_linter/resources/test/fixtures/pylint/global_statement.py:48
Functionglobal_import_star
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:1290
Functionglobal_in_global_scope
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:1344
Functionglobal_instance_type
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, name: &str, )
crates/ty_python_semantic/src/types/cyclic.rs:1354
Functionglobal_operator_assign
Operator assigns should only throw a global statement error
crates/ruff_linter/resources/test/fixtures/pylint/global_statement.py:41
Functionglobal_path_in_foo
()
crates/ruff_linter/resources/test/fixtures/flake8_async/ASYNC240.py:92
Methodglobal_plugin_files
(&self)
crates/ty_python_semantic/src/types/dedicated/pytest/fixtures.rs:4347
Functionglobal_reset_name_only
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:1357
Functionglobal_self_binding
()
crates/ruff_linter/resources/test/fixtures/flake8_self/SLF001_2.py:33
Functionglobal_settings_change
()
crates/ty_server/tests/e2e/workspace_folders.rs:931
Functionglobal_settings_precedence
()
crates/ty_server/tests/e2e/workspace_folders.rs:846
Methodglobal_stmt
(self)
crates/ruff_python_ast/src/generated.rs:1041
Functionglobal_symbol
( db: &'db dyn Db, file: ProgramFile<'db>, name: &str, )
crates/ty_python_semantic/src/place.rs:522
Functionglobal_variable_references
()
crates/ty_ide/src/find_references.rs:412
Functionglobal_with_import
Should only warn for global-statement when using `Import` node
crates/ruff_linter/resources/test/fixtures/pylint/global_statement.py:22
Functionglobal_with_import_from
Should only warn for global-statement when using `ImportFrom` node
crates/ruff_linter/resources/test/fixtures/pylint/global_statement.py:28
Methodglobals
(db: &'db dyn Db, file: ProgramFile<'db>)
crates/ty_ide/src/symbols.rs:755
Functionglobs
()
crates/ruff/tests/analyze_graph.rs:608
Functiongood
(a: int)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY003.py:47
Functiongood
()
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY300.py:25
Functiongood
()
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY201.py:23
Functiongood
()
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY400.py:53
Functiongood
()
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY301.py:46
Functiongood
Too many branches only if we take into consideration the nested functions.
crates/ruff_linter/resources/test/fixtures/pylint/too_many_branches.py:39
Functiongood
()
crates/ruff_linter/resources/test/fixtures/pep8_naming/N802.py:20
Methodgood
(self, arg: int)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI041_1.py:77
Methodgood
(self, arg: "int")
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI041_3.py:77
Methodgood
(self, arg: "i" "nt")
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI041_3.py:116
Methodgood
(self)
crates/ruff_linter/resources/test/fixtures/pep8_naming/N805.py:81
Functiongood1
(arg: int)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI041_1.py:15
Functiongood1
(arg: "int")
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI041_3.py:15
Functiongood2
(arg: int, arg2: int | bool)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI041_1.py:19
Functiongood2
(arg: "int", arg2: "int | bool")
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI041_3.py:19
Functiongood__
()
crates/ruff_linter/resources/test/fixtures/pep8_naming/N807.py:9
Methodgood_attr_style
The bar value.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D421.py:72
Methodgood_cached
The cached result.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D421.py:90
Methodgood_cached_property
This property method docstring does not need to be written in imperative mood.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D401.py:87
Methodgood_class_method_with_args_string_annotations
(cls, arg1: "_S", arg2: "_S")
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI019_0.py:214
Methodgood_cls_method_1
(cls: type[Self], arg: int)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI019_0.py:30
Methodgood_cls_method_2
(cls, arg1: _S, arg2: _S)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI019_0.py:32
Methodgood_cls_method_with_mixed_annotations
(cls: "type[Self]", arg: str)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI019_0.py:210
Functiongood_code
()
crates/ruff_linter/resources/test/fixtures/flake8_async/ASYNC100.py:115
Functiongood_comparison
this is ok
crates/ruff_linter/resources/test/fixtures/pylint/misplaced_comparison_constant.py:33
Functiongood_construct
Construct a beautiful house.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D401.py:51
Methodgood_custom_property
This property method docstring does not need to be written in imperative mood.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D401.py:82
Functiongood_func
(arg1: Literal[int] | None)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI061.py:47
Functiongood_func
()
crates/ruff_linter/resources/test/fixtures/flake8_bandit/S308.py:12
Functiongood_func
()
crates/ruff_linter/resources/test/fixtures/pep8_naming/N802.py:28
Functiongood_func1
(arg: int | None)
crates/ruff_linter/resources/test/fixtures/ruff/RUF036.py:79
Functiongood_func1
(arg1: bool)
crates/ruff_linter/resources/test/fixtures/ruff/RUF038.py:28
Functiongood_func2
()
crates/ruff_linter/resources/test/fixtures/ruff/RUF036.py:83
Functiongood_func2
(arg1: Literal[True])
crates/ruff_linter/resources/test/fixtures/ruff/RUF038.py:32
Functiongood_func3
(arg: None)
crates/ruff_linter/resources/test/fixtures/ruff/RUF036.py:87
Functiongood_func4
(arg: U[None])
crates/ruff_linter/resources/test/fixtures/ruff/RUF036.py:91
Functiongood_func5
(arg: U[int])
crates/ruff_linter/resources/test/fixtures/ruff/RUF036.py:95
Functiongood_function
This docstring is capitalized.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D403.py:4
Methodgood_instance_method_1
(self: Self, arg: bytes)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI019_0.py:27
Methodgood_instance_method_2
(self, arg1: _S2, arg2: _S2)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI019_0.py:28
Methodgood_method
(self)
crates/ruff_linter/resources/test/fixtures/pep8_naming/N804.py:13
Methodgood_method
(cls)
crates/ruff_linter/resources/test/fixtures/pep8_naming/N804.py:46
Methodgood_method
(self)
crates/ruff_linter/resources/test/fixtures/pep8_naming/N805.py:14
Methodgood_method
(cls)
crates/ruff_linter/resources/test/fixtures/pep8_naming/N805.py:51
Methodgood_method_pos_only
(self, blah, /, something: str)
crates/ruff_linter/resources/test/fixtures/pep8_naming/N805.py:60
Functiongood_multi_line
Write a logical line that extends to two physical lines.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D401.py:55
Methodgood_multiline
The current value. More detail here.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D421.py:82
Functiongood_noexcept
()
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY300.py:50
Methodgood_noun
A description of something.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D421.py:77
Methodgood_property
This property method docstring does not need to be written in imperative mood.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D401.py:77
Functiongood_return_with_side_effects
()
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY300.py:43
Functiongood_run_something
Run away.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D401.py:42
Methodgood_static_method_with_string_annotations
(arg: "_S")
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI019_0.py:212
Functiongoogle_section_order
(kind: SectionKind)
crates/ruff_linter/src/rules/pydocstyle/rules/sections.rs:2245
Functiongoto_between_call_arguments
()
crates/ty_ide/src/goto_type_definition.rs:1759
Methodgoto_declaration
( &self, file_id: &FileHandle, position: Position, )
crates/ty_wasm/src/lib.rs:347
Functiongoto_declaration_class_instantiation
()
crates/ty_ide/src/goto_declaration.rs:118
Functiongoto_declaration_class_scope_skipped
()
crates/ty_ide/src/goto_declaration.rs:241
Functiongoto_declaration_from_import_as
()
crates/ty_ide/src/goto_declaration.rs:392
Functiongoto_declaration_from_import_chain
()
crates/ty_ide/src/goto_declaration.rs:426
Functiongoto_declaration_from_import_module
()
crates/ty_ide/src/goto_declaration.rs:753
Functiongoto_declaration_from_import_rhs_is_module
()
crates/ty_ide/src/goto_declaration.rs:369
Functiongoto_declaration_from_import_symbol_alias
()
crates/ty_ide/src/goto_declaration.rs:711
Functiongoto_declaration_from_import_symbol_original
()
crates/ty_ide/src/goto_declaration.rs:669
Functiongoto_declaration_from_star_import
()
crates/ty_ide/src/goto_declaration.rs:466
Functiongoto_declaration_function_call_to_definition
()
crates/ty_ide/src/goto_declaration.rs:41
Functiongoto_declaration_function_doc_attribute
()
crates/ty_ide/src/goto_declaration.rs:1872
Functiongoto_declaration_generic_method_class_type
()
crates/ty_ide/src/goto_declaration.rs:1940
Functiongoto_declaration_global_binding
()
crates/ty_ide/src/goto_declaration.rs:1359
Functiongoto_declaration_global_stmt
()
crates/ty_ide/src/goto_declaration.rs:1387
← previousnext →21,901–22,000 of 31,766, ranked by callers