MCPcopy Create free account

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

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

Methodspeak
()
crates/ruff_linter/resources/test/fixtures/pylint/super_without_brackets.py:9
Methodspeak
()
crates/ruff_linter/resources/test/fixtures/pylint/super_without_brackets.py:16
Methodspeak
()
crates/ruff_linter/resources/test/fixtures/pylint/super_without_brackets.py:23
Functionspecial_calls
()
crates/ruff_linter/resources/test/fixtures/ruff/RUF052_0.py:148
Methodspecial_form
()
crates/ty_python_semantic/src/types.rs:13044
Functionspecialized_alias_values_track_imported_types
()
crates/ty_python_semantic/src/types/infer/tests.rs:1729
Methodspill
(entries: [(T, R); 2], third: (T, R))
crates/ty_python_semantic/src/types/cyclic.rs:1193
Methodspill
(inline: &mut SmallVec<[T; INLINE_CAPACITY]>, value: T)
crates/ty_python_semantic/src/types/visitor.rs:426
Methodsplit_executable_name
(file_name: &str)
crates/ty_site_packages/src/lib.rs:553
Methodsplit_executable_suffix
(version: &str)
crates/ty_site_packages/src/lib.rs:706
Methodsplit_name_and_argument
(value: &'a str)
crates/ty_ide/src/docstring/document/rst.rs:478
Methodsplit_type_and_name
Splits up a field argument into an optional type and name.
crates/ty_ide/src/docstring/document/rst.rs:591
Functionsplits_after_nested_brackets
()
crates/ty_ide/src/docstring/document/syntax.rs:758
Functionsplits_before_rest_role_adjacent_to_field_delimiter
()
crates/ty_ide/src/docstring/document/google.rs:1607
Functionsplits_nested_parenthesized_group
()
crates/ty_ide/src/docstring/document/syntax.rs:808
Functionsplits_trailing_parenthesized_group
()
crates/ty_ide/src/docstring/document/syntax.rs:800
Functionsqlmodel_import_checker
()
crates/ruff_linter/resources/test/fixtures/ruff/RUF012.py:98
Functionsquares
(n)
crates/ruff_linter/resources/test/fixtures/pycodestyle/E22.py:164
Methodsquirrel
(self)
crates/ty_completion_eval/truth/object-attr-instance-methods/main.py:10
Functionsrc_file_filter_change_reloads_project_files
()
crates/ty/tests/file_watching.rs:901
Functionsrc_glob_expansion
()
crates/ruff/tests/analyze_graph.rs:1088
Functionsrc_option
()
crates/ruff/tests/analyze_graph.rs:1027
Functionsrc_subdirectory_not_added_as_root_if_src_package_exists
()
crates/ty/tests/cli/python_environment.rs:212
Functionsrc_subdirectory_takes_precedence_over_repo_root
()
crates/ty/tests/cli/python_environment.rs:180
Methodstable
(since: &'static str)
crates/ty_python_semantic/src/lint.rs:210
Methodstable
(ty: Type<'db>)
crates/ty_python_semantic/src/types/infer/comparisons.rs:200
Functionstable_quote_normalization_with_immediate_inner_single_quote
<text here> <text here, since without another non-empty line black is stable>
crates/ruff_python_formatter/resources/test/fixtures/black/cases/docstring.py:217
Functionstack_size
()
crates/ty_server/tests/e2e/pull_diagnostics.rs:403
Functionstacked_mixed
()
crates/mdtest/src/assertion.rs:685
Functionstacked_prior_line
()
crates/mdtest/src/assertion.rs:660
Functionstale_outgoing_calls_on_an_imported_decorator
()
crates/ty_server/tests/e2e/call_hierarchy.rs:142
Methodstandalone_comment_range
Find the relevant range to cover for own-line suppression comments When placed above a "logical line", either a single- or multi-line statement or su
crates/ruff_linter/src/suppression.rs:1069
Methodstandard
Create a standard parameter list without inferring its kind or normalizing annotations.
crates/ty_python_semantic/src/types/signatures.rs:5227
Methodstandard
Creates a context for ordinary parameter annotations. `raw_parameter_type` is the lookup key used by later type checking. `context` is the possibly-s
crates/ty_python_semantic/src/types/call/bind.rs:8365
Functionstar_import
()
crates/ty_ide/src/completion.rs:5819
Functionstar_import
()
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP029_3.py:17
Methodstarred_bitwise_or
Create a new context allowing starred expression at bitwise OR precedence.
crates/ruff_python_parser/src/parser/expression.rs:3163
Methodstarred_conditional
Create a new context allowing starred expression at conditional precedence.
crates/ruff_python_parser/src/parser/expression.rs:3157
Functionstarred_constraints
(var: U)
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP047_0.py:73
Methodstarred_expr
(self)
crates/ruff_python_ast/src/generated.rs:2619
Functionstarred_fields
(node: &ast::ExprStarred)
crates/ruff_python_ast/src/comparable.rs:1376
Functionstarred_return
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/python38.py:1
Functionstarred_yield
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/python38.py:6
Functionstart
(self)
crates/ruff_linter/resources/test/fixtures/pycodestyle/E11.py:18
Functionstart
()
crates/ruff_linter/resources/test/fixtures/pylint/unnecessary_list_index_lookup.py:67
Methodstart
The start offset of this item in the source text.
crates/ruff_text_size/src/traits.rs:46
Methodstart_bound
(&self)
crates/ruff_text_size/src/range.rs:521
Methodstart_node
(&self)
crates/ruff_python_semantic/src/cfg/visualize.rs:175
Methodstart_of_block
Create an [`Insertion`] to insert (e.g.) an import statement at the start of a given block, along with a prefix and suffix to use for the insertion.
crates/ruff_python_importer/src/insertion.rs:227
Methodstart_of_file
Create an [`Insertion`] to insert (e.g.) an import statement at the start of a given file or cell, along with a prefix and suffix to use for the inser
crates/ruff_python_importer/src/insertion.rs:57
Methodstart_tag
(&self, _: TagKind)
crates/ruff_formatter/src/format_element.rs:289
Methodstart_tag
(&self, kind: TagKind)
crates/ruff_formatter/src/format_element/document.rs:730
Methodstarted
(&mut self)
crates/ty/src/lib.rs:897
Methodstarted
(&mut self)
crates/ty_server/src/server/script_progress.rs:69
Methodstarts_at
(offset: TextSize, source: &'a str)
crates/ruff_python_trivia/src/tokenizer.rs:525
Methodstarts_at
(offset: TextSize, source: &'a str)
crates/ruff_python_ast/src/identifier.rs:170
Methodstarts_at
Creates a scanner positioned at `offset` within `source`.
crates/ty_ide/src/docstring/document/syntax.rs:350
Functionstarts_with_space_then_this
This is a docstring that starts with a space.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D.py:635
Functionstarts_with_this
This is a docstring.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D.py:630
Methodstate
(&self)
crates/ruff_formatter/src/buffer.rs:151
Methodstate_snapshot
(&self)
crates/ruff_formatter/src/formatter.rs:204
Functionstatement_keywords_in_if_body
()
crates/ty_ide/src/completion.rs:9725
Methodstatic_class_bindings
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, class: StaticClassLiteral<'db>,
crates/ty_python_semantic/src/types.rs:7052
Functionstatic_frame
(bencher: Bencher)
crates/ruff_benchmark/benches/ty_walltime.rs:221
Methodstatic_method
(arg1: _S)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI019_0.py:34
Methodstatic_method
()
crates/ruff_linter/resources/test/fixtures/pylint/no_method_decorator.py:27
Methodstatic_method
(x)
crates/ruff_linter/resources/test/fixtures/pep8_naming/N804.py:21
Methodstatic_method
(not_cls)
crates/ruff_linter/resources/test/fixtures/pep8_naming/N804.py:50
Methodstatic_method
(x)
crates/ruff_linter/resources/test/fixtures/pep8_naming/N805.py:26
Functionstatically_registers_formatting_when_dynamic_registration_is_unsupported
()
crates/ruff_server/tests/e2e/capabilities.rs:9
Functionstatically_unreachable_symbols
()
crates/ty_ide/src/completion.rs:5780
Functionstaticmethod_decorators
()
crates/ruff_linter/src/rules/pep8_naming/mod.rs:132
Methodstaticmethod_named_self
(self)
crates/ruff_linter/resources/test/fixtures/flake8_self/SLF001_2.py:17
Functionstatistics_hyperlinks
()
crates/ruff/tests/cli/lint.rs:4647
Functionstdin_error
()
crates/ruff/tests/integration_test.rs:111
Functionstdin_filename
()
crates/ruff/tests/integration_test.rs:136
Functionstdin_fix_jupyter
()
crates/ruff/tests/integration_test.rs:326
Functionstdin_fix_py
()
crates/ruff/tests/integration_test.rs:309
Functionstdin_fix_when_no_issues_should_still_print_contents
()
crates/ruff/tests/integration_test.rs:721
Functionstdin_fix_when_not_fixable_should_still_print_contents
()
crates/ruff/tests/integration_test.rs:693
Functionstdin_format_jupyter
()
crates/ruff/tests/integration_test.rs:738
Functionstdin_json
()
crates/ruff/tests/integration_test.rs:291
Functionstdin_multiple_parse_error
()
crates/ruff/tests/integration_test.rs:885
Functionstdin_override_parser_ipynb
()
crates/ruff/tests/integration_test.rs:506
Functionstdin_override_parser_py
()
crates/ruff/tests/integration_test.rs:623
Functionstdin_override_parser_py_config
()
crates/ruff/tests/integration_test.rs:655
Functionstdin_parse_error
()
crates/ruff/tests/integration_test.rs:865
Functionstdin_source_type_py
()
crates/ruff/tests/integration_test.rs:245
Functionstdin_source_type_pyi
()
crates/ruff/tests/integration_test.rs:273
Functionstdin_success
()
crates/ruff/tests/integration_test.rs:97
Methodstdio
Create a new LSP server connection over stdin/stdout.
crates/ruff_server/src/server/connection.rs:12
Functionstdlib
()
crates/ty_module_resolver/src/resolve.rs:2142
Functionstdlib
()
crates/ty_module_resolver/src/list.rs:186
Functionstdlib_dir_no_trailing_slash
()
crates/ruff_db/src/vendored.rs:598
Functionstdlib_dir_parent_components
()
crates/ruff_db/src/vendored.rs:618
Functionstdlib_dir_trailing_slash
()
crates/ruff_db/src/vendored.rs:603
Functionstdlib_path_invalid_join_py
()
crates/ty_module_resolver/src/path.rs:1162
Functionstdlib_path_invalid_join_rs
()
crates/ty_module_resolver/src/path.rs:1174
Functionstdlib_precedes_stub_package_in_site_packages
()
crates/ty_module_resolver/src/resolve.rs:2026
Functionstdlib_resolution_respects_versions_file_py38_existing_modules
()
crates/ty_module_resolver/src/resolve.rs:2283
← previousnext →28,601–28,700 of 31,562, ranked by callers