Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/astral-sh/ruff
/ functions
Functions
31,766 in github.com/astral-sh/ruff
⨍
Functions
31,766
◇
Types & classes
7,128
↳
Endpoints
82
Function
github_issue_1331_v5
(**args)
crates/ruff_linter/resources/test/fixtures/pylint/len_as_condition.py:101
Function
github_issue_1879
()
crates/ruff_linter/resources/test/fixtures/pylint/len_as_condition.py:107
Function
github_issue_4215
()
crates/ruff_linter/resources/test/fixtures/pylint/len_as_condition.py:180
Function
gitlab_diagnostics
()
crates/ty/tests/cli/main.rs:678
Function
gitlab_empty_diagnostics
()
crates/ty/tests/cli/main.rs:764
Method
global
()
crates/ruff_python_semantic/src/scope.rs:48
Method
global
Returns the scope id of the module-global scope.
crates/ty_python_core/src/scope.rs:104
Method
global
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
Function
global_assignment
()
crates/ruff_linter/resources/test/fixtures/flake8_return/RET504.py:197
Method
global_client_settings
Returns the resolved global client settings.
crates/ruff_server/src/session.rs:210
Function
global_del
Deleting the global name prevents `global-variable-not-assigned`
crates/ruff_linter/resources/test/fixtures/pylint/global_statement.py:34
Function
global_from_nested_scope
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:1519
Function
global_function_assign
Function assigns should only throw a global statement error
crates/ruff_linter/resources/test/fixtures/pylint/global_statement.py:48
Function
global_import_star
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:1290
Function
global_in_global_scope
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:1344
Function
global_instance_type
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, name: &str, )
crates/ty_python_semantic/src/types/cyclic.rs:1354
Function
global_operator_assign
Operator assigns should only throw a global statement error
crates/ruff_linter/resources/test/fixtures/pylint/global_statement.py:41
Function
global_path_in_foo
()
crates/ruff_linter/resources/test/fixtures/flake8_async/ASYNC240.py:92
Method
global_plugin_files
(&self)
crates/ty_python_semantic/src/types/dedicated/pytest/fixtures.rs:4347
Function
global_reset_name_only
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:1357
Function
global_self_binding
()
crates/ruff_linter/resources/test/fixtures/flake8_self/SLF001_2.py:33
Function
global_settings_change
()
crates/ty_server/tests/e2e/workspace_folders.rs:931
Function
global_settings_precedence
()
crates/ty_server/tests/e2e/workspace_folders.rs:846
Method
global_stmt
(self)
crates/ruff_python_ast/src/generated.rs:1041
Function
global_symbol
( db: &'db dyn Db, file: ProgramFile<'db>, name: &str, )
crates/ty_python_semantic/src/place.rs:522
Function
global_variable_references
()
crates/ty_ide/src/find_references.rs:412
Function
global_with_import
Should only warn for global-statement when using `Import` node
crates/ruff_linter/resources/test/fixtures/pylint/global_statement.py:22
Function
global_with_import_from
Should only warn for global-statement when using `ImportFrom` node
crates/ruff_linter/resources/test/fixtures/pylint/global_statement.py:28
Method
globals
(db: &'db dyn Db, file: ProgramFile<'db>)
crates/ty_ide/src/symbols.rs:755
Function
globs
()
crates/ruff/tests/analyze_graph.rs:608
Function
good
(a: int)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY003.py:47
Function
good
()
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY300.py:25
Function
good
()
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY201.py:23
Function
good
()
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY400.py:53
Function
good
()
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY301.py:46
Function
good
Too many branches only if we take into consideration the nested functions.
crates/ruff_linter/resources/test/fixtures/pylint/too_many_branches.py:39
Function
good
()
crates/ruff_linter/resources/test/fixtures/pep8_naming/N802.py:20
Method
good
(self, arg: int)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI041_1.py:77
Method
good
(self, arg: "int")
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI041_3.py:77
Method
good
(self, arg: "i" "nt")
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI041_3.py:116
Method
good
(self)
crates/ruff_linter/resources/test/fixtures/pep8_naming/N805.py:81
Function
good1
(arg: int)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI041_1.py:15
Function
good1
(arg: "int")
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI041_3.py:15
Function
good2
(arg: int, arg2: int | bool)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI041_1.py:19
Function
good2
(arg: "int", arg2: "int | bool")
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI041_3.py:19
Function
good__
()
crates/ruff_linter/resources/test/fixtures/pep8_naming/N807.py:9
Method
good_attr_style
The bar value.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D421.py:72
Method
good_cached
The cached result.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D421.py:90
Method
good_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
Method
good_class_method_with_args_string_annotations
(cls, arg1: "_S", arg2: "_S")
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI019_0.py:214
Method
good_cls_method_1
(cls: type[Self], arg: int)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI019_0.py:30
Method
good_cls_method_2
(cls, arg1: _S, arg2: _S)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI019_0.py:32
Method
good_cls_method_with_mixed_annotations
(cls: "type[Self]", arg: str)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI019_0.py:210
Function
good_code
()
crates/ruff_linter/resources/test/fixtures/flake8_async/ASYNC100.py:115
Function
good_comparison
this is ok
crates/ruff_linter/resources/test/fixtures/pylint/misplaced_comparison_constant.py:33
Function
good_construct
Construct a beautiful house.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D401.py:51
Method
good_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
Function
good_func
(arg1: Literal[int] | None)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI061.py:47
Function
good_func
()
crates/ruff_linter/resources/test/fixtures/flake8_bandit/S308.py:12
Function
good_func
()
crates/ruff_linter/resources/test/fixtures/pep8_naming/N802.py:28
Function
good_func1
(arg: int | None)
crates/ruff_linter/resources/test/fixtures/ruff/RUF036.py:79
Function
good_func1
(arg1: bool)
crates/ruff_linter/resources/test/fixtures/ruff/RUF038.py:28
Function
good_func2
()
crates/ruff_linter/resources/test/fixtures/ruff/RUF036.py:83
Function
good_func2
(arg1: Literal[True])
crates/ruff_linter/resources/test/fixtures/ruff/RUF038.py:32
Function
good_func3
(arg: None)
crates/ruff_linter/resources/test/fixtures/ruff/RUF036.py:87
Function
good_func4
(arg: U[None])
crates/ruff_linter/resources/test/fixtures/ruff/RUF036.py:91
Function
good_func5
(arg: U[int])
crates/ruff_linter/resources/test/fixtures/ruff/RUF036.py:95
Function
good_function
This docstring is capitalized.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D403.py:4
Method
good_instance_method_1
(self: Self, arg: bytes)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI019_0.py:27
Method
good_instance_method_2
(self, arg1: _S2, arg2: _S2)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI019_0.py:28
Method
good_method
(self)
crates/ruff_linter/resources/test/fixtures/pep8_naming/N804.py:13
Method
good_method
(cls)
crates/ruff_linter/resources/test/fixtures/pep8_naming/N804.py:46
Method
good_method
(self)
crates/ruff_linter/resources/test/fixtures/pep8_naming/N805.py:14
Method
good_method
(cls)
crates/ruff_linter/resources/test/fixtures/pep8_naming/N805.py:51
Method
good_method_pos_only
(self, blah, /, something: str)
crates/ruff_linter/resources/test/fixtures/pep8_naming/N805.py:60
Function
good_multi_line
Write a logical line that extends to two physical lines.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D401.py:55
Method
good_multiline
The current value. More detail here.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D421.py:82
Function
good_noexcept
()
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY300.py:50
Method
good_noun
A description of something.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D421.py:77
Method
good_property
This property method docstring does not need to be written in imperative mood.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D401.py:77
Function
good_return_with_side_effects
()
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY300.py:43
Function
good_run_something
Run away.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D401.py:42
Method
good_static_method_with_string_annotations
(arg: "_S")
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI019_0.py:212
Function
google_section_order
(kind: SectionKind)
crates/ruff_linter/src/rules/pydocstyle/rules/sections.rs:2245
Function
goto_between_call_arguments
()
crates/ty_ide/src/goto_type_definition.rs:1759
Method
goto_declaration
( &self, file_id: &FileHandle, position: Position, )
crates/ty_wasm/src/lib.rs:347
Function
goto_declaration_class_instantiation
()
crates/ty_ide/src/goto_declaration.rs:118
Function
goto_declaration_class_scope_skipped
()
crates/ty_ide/src/goto_declaration.rs:241
Function
goto_declaration_from_import_as
()
crates/ty_ide/src/goto_declaration.rs:392
Function
goto_declaration_from_import_chain
()
crates/ty_ide/src/goto_declaration.rs:426
Function
goto_declaration_from_import_module
()
crates/ty_ide/src/goto_declaration.rs:753
Function
goto_declaration_from_import_rhs_is_module
()
crates/ty_ide/src/goto_declaration.rs:369
Function
goto_declaration_from_import_symbol_alias
()
crates/ty_ide/src/goto_declaration.rs:711
Function
goto_declaration_from_import_symbol_original
()
crates/ty_ide/src/goto_declaration.rs:669
Function
goto_declaration_from_star_import
()
crates/ty_ide/src/goto_declaration.rs:466
Function
goto_declaration_function_call_to_definition
()
crates/ty_ide/src/goto_declaration.rs:41
Function
goto_declaration_function_doc_attribute
()
crates/ty_ide/src/goto_declaration.rs:1872
Function
goto_declaration_generic_method_class_type
()
crates/ty_ide/src/goto_declaration.rs:1940
Function
goto_declaration_global_binding
()
crates/ty_ide/src/goto_declaration.rs:1359
Function
goto_declaration_global_stmt
()
crates/ty_ide/src/goto_declaration.rs:1387
← previous
next →
21,901–22,000 of 31,766, ranked by callers