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_uv_format_with_indent_style
()
crates/ruff_server/src/format.rs:660
Function
test_uv_format_with_line_length
()
crates/ruff_server/src/format.rs:615
Function
test_uv_format_with_magic_trailing_comma
()
crates/ruff_server/src/format.rs:770
Function
test_uv_format_with_quote_style
()
crates/ruff_server/src/format.rs:730
Function
test_valid
()
crates/ty_project/src/glob/portable.rs:365
Method
test_various___class___pathologies
(self)
crates/ty_python_semantic/resources/corpus/77_class__class__.py:4
Function
test_view1
(request)
crates/ruff_linter/resources/test/fixtures/flake8_django/DJ003.py:4
Function
test_view2
(request)
crates/ruff_linter/resources/test/fixtures/flake8_django/DJ003.py:8
Function
test_view3
(request)
crates/ruff_linter/resources/test/fixtures/flake8_django/DJ003.py:12
Function
test_view4
(request)
crates/ruff_linter/resources/test/fixtures/flake8_django/DJ003.py:16
Function
test_view5
(request)
crates/ruff_linter/resources/test/fixtures/flake8_django/DJ003.py:20
Function
test_vs_code_init_options_deserialize
()
crates/ruff_server/src/session/options.rs:542
Function
test_vs_code_workspace_settings_resolve
()
crates/ruff_server/src/session/options.rs:746
Function
test_vscode_language_id
()
crates/ruff_linter/src/linter.rs:891
Function
test_weighted_average
(tmpdir)
crates/ruff_benchmark/resources/large/dataset.py:826
Function
test_whitespace_around_dot
()
crates/ruff_linter/src/rules/airflow/rules/xcom_pull_in_template_string.rs:365
Function
test_whitespace_before_open_paren
()
crates/ruff_linter/src/rules/airflow/rules/xcom_pull_in_template_string.rs:373
Function
test_width_only
()
crates/ruff_python_literal/src/format.rs:780
Function
test_windows_path
(p: WindowsPath)
crates/ruff_linter/resources/test/fixtures/flake8_use_pathlib/PTH210_1.py:101
Function
test_with_default_none
( # This should become: param: Annotated[str | None, Query(description="Test")] = None param: str | No
crates/ruff_linter/resources/test/fixtures/fastapi/FAST002_2.py:71
Function
test_with_default_value
( # This should become: param: Annotated[str, Query(description="Test")] = "default" param: str = Quer
crates/ruff_linter/resources/test/fixtures/fastapi/FAST002_2.py:63
Function
test_wrapper_descriptor_inlay_hint
()
crates/ty_ide/src/inlay_hints.rs:6878
Function
test_xxx
(fixture)
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT019.py:1
Method
test_xxx
(self)
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT009.py:5
Function
test_xzy_selection
()
crates/ruff_benchmark/resources/large/dataset.py:1497
Function
test_yaml_load
()
crates/ruff_linter/resources/test/fixtures/flake8_bandit/S506.py:8
Function
test_zqzqzq
()
crates/ty_completion_eval/truth/auto-import-skips-third-party-tests/subdir/test_foo.py:1
Function
testlist_star_expr
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/fmtonoff.py:67
Function
tet_too_low_dedent
()
crates/ruff_python_parser/src/lexer.rs:2341
Function
text_document
()
crates/ty_server/tests/e2e/rename.rs:6
Method
text_document_uris
Iterates over the LSP URIs for all open text documents. These URIs are valid file paths.
crates/ruff_server/src/session.rs:119
Function
text_is_cached_if_revision_is_unchanged
()
crates/ruff_db/src/source.rs:262
Method
text_range
(&self)
crates/ty_wasm/src/lib.rs:963
Function
text_width
()
crates/ruff_formatter/src/format_element.rs:567
Function
that
"hey yah"
crates/ruff_python_formatter/resources/test/fixtures/black/cases/docstring.py:91
Function
that
"hey yah"
crates/ruff_python_formatter/resources/test/fixtures/black/cases/docstring_no_string_normalization.py:81
Function
thiiiiiiiiiiiiiiiiiis_iiiiiiiiiiiiiiiiiiiiiiiiiiiiiis_veeeeeeeeeeedooooong
( a,
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/return_type_parameters.py:164
Function
thiiiiiiiiiiiiiiiiiis_iiiiiiiiiiiiiiiiiiiiiiiiiiiiiis_veeeeeeeeeeeeeeeeeeeeeeery_looooooong
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/funcdef_return_type_trailing_comma.py:70
Function
third_party_filtering
()
crates/ty_ide/src/type_hierarchy.rs:650
Function
third_party_test_modules_filtered
()
crates/ty_ide/src/all_symbols.rs:995
Function
third_party_underscore_modules_are_filtered
()
crates/ty_ide/src/all_symbols.rs:1081
Function
this
r""" 'hey ho'
crates/ruff_python_formatter/resources/test/fixtures/black/cases/docstring_no_string_normalization.py:75
Function
this_is_a_bug
()
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B004.py:1
Function
this_is_all_fine
(n)
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B002.py:7
Function
this_is_also_wrong
(value={})
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B006_B008.py:67
Method
this_is_also_wrong_and_more_indented
(value={})
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B006_B008.py:73
Method
this_is_bad_too
(__x: int)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI063.py:28
Function
this_is_buggy
(n)
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B002.py:17
Function
this_is_buggy_too
(n)
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B002.py:23
Function
this_is_fine
()
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B004.py:28
Function
this_is_not_a_test
(a=1)
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/is_pytest_test.py:13
Function
this_is_okay
(value=(1, 2, 3))
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B006_B008.py:18
Function
this_is_so_dumb
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/pep_572_remove_parens.py:49
Function
this_is_unusual
()
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/function.py:383
Function
this_is_wrong
(value=[1, 2, 3])
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B006_B008.py:63
Function
this_too
(value=collections.OrderedDict())
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B006_B008.py:89
Method
this_will_be_formatted
( self, **kwargs )
crates/ruff_python_formatter/resources/test/fixtures/black/cases/fmtonoff5.py:74
Method
this_wont_be_formatted
( self )
crates/ruff_python_formatter/resources/test/fixtures/black/cases/fmtonoff5.py:71
Function
three_multi_and_single
()
crates/ruff_annotate_snippets/tests/formatter.rs:1479
Function
three_returns_one_non_empty
()
crates/ruff_linter/resources/test/fixtures/airflow/AIR004.py:22
Method
tiger
(self)
crates/ty_completion_eval/truth/object-attr-instance-methods/main.py:4
Function
tilde_expansion_uses_system_env
()
crates/ty_project/src/metadata/value.rs:170
Function
timedelta_okay
(value=dt.timedelta(hours=1))
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B006_B008.py:229
Function
timeout
()
crates/ruff_annotate_snippets/tests/rustc_tests.rs:5546
Function
titlecase_sub_section_header
Below, `Returns:` should be considered a section header. Args: Here's a note. Returns:
crates/ruff_linter/resources/test/fixtures/pydocstyle/sections.py:557
Function
tmp
()
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B023.py:179
Method
to_annotate
(self)
crates/ruff_db/src/diagnostic/mod.rs:1321
Function
to_array_or_mat
Convert arg to array or leaves it as sparse matrix.
crates/ruff_linter/resources/test/fixtures/flake8_type_checking/singledispatch.py:19
Method
to_char
(&self)
crates/ruff_python_ast/src/nodes.rs:461
Function
to_class_type_cycle_initial
( db: &'db dyn Db, id: salsa::Id, self_: TupleType<'db>, )
crates/ty_python_semantic/src/types/tuple.rs:888
Method
to_diagnostic
(&self)
crates/ty_project/src/baseline.rs:356
Method
to_diagnostic
(&self)
crates/ty_project/src/metadata/options.rs:2614
Method
to_diagnostic
(&self, kind: DependencyProjectKind)
crates/ty_project/src/uv/metadata/dependencies.rs:304
Method
to_file
(&self, db: &dyn Db)
crates/ruff_db/src/files/path.rs:87
Method
to_identity
(&self, db: &'db dyn Db)
crates/ty_python_semantic/src/types.rs:716
Method
to_identity
(&self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/relation.rs:1223
Method
to_identity
(&self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/generics.rs:2527
Method
to_identity
(&self, _db: &'db dyn Db)
crates/ty_python_semantic/src/types/typevar.rs:2409
Method
to_identity
(&self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/call/ambiguous.rs:47
Method
to_json
Serializes the memory dump to JSON.
crates/ty_project/src/db.rs:532
Method
to_location
(&self, db: &dyn Db, encoding: PositionEncoding)
crates/ty_server/src/document/location.rs:21
Method
to_meta_type
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, )
crates/ty_python_semantic/src/types/special_form.rs:561
Method
to_meta_type_inner
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, ty: Type<'db>,
crates/ty_python_semantic/src/types.rs:9407
Method
to_range
(&self, workspace: &Workspace)
crates/ty_wasm/src/lib.rs:970
Method
to_ruff_args
(self)
python/ruff-ecosystem/ruff_ecosystem/projects.py:252
Method
to_ruff_args
(self)
python/ruff-ecosystem/ruff_ecosystem/projects.py:304
Method
to_snapshot
Helper function to convert semantic tokens to a snapshot-friendly text format
crates/ty_ide/src/semantic_tokens.rs:5058
Method
to_source_code
(&self)
crates/ruff_source_file/src/lib.rs:162
Method
to_specialized_class_type_impl
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, class: KnownClass,
crates/ty_python_semantic/src/types/class/known.rs:1312
Method
to_type
(self, db: &'db dyn Db, env: &ProgramEnvironment<'db>)
crates/ty_python_semantic/src/types/set_theoretic.rs:754
Method
todo
Return todo parameters: (*args: Todo, **kwargs: Todo)
crates/ty_python_semantic/src/types/signatures.rs:5419
Function
todo_directives
()
crates/ruff_linter/src/directives.rs:665
Function
todo_types
()
crates/ty_python_semantic/src/types/tests.rs:360
Function
todos
(context: &LintContext, directive_ranges: &[TodoComment])
crates/ruff_linter/src/rules/flake8_fixme/rules/todos.rs:123
Function
token_contents
(source: &str)
crates/ty_ide/src/docstring/document/syntax.rs:865
Function
token_set_works_for_tokens
()
crates/ruff_python_parser/src/token_set.rs:44
Function
token_suffixes_match
()
crates/ty_ide/src/completion.rs:3435
Function
token_suffixes_nomatch
()
crates/ty_ide/src/completion.rs:3481
Function
tokenize
(src: &str)
crates/ty_ide/src/completion.rs:11839
Function
tokenize_bogus
()
crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs:250
← previous
next →
30,101–30,200 of 31,562, ranked by callers