MCPcopy Create free account

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

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

Functionlength_doctest
Get the length of the given list of numbers. Args: numbers: List of numbers. Returns: Integer length of the list of numbers.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples_dynamic_line_width.py:224
Functionlength_doctest_underindent
Get the length of the given list of numbers. Args: numbers: List of numbers. Returns: Integer length of the
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples_dynamic_line_width.py:239
Functionlength_markdown
Get the length of the given list of numbers. Args: numbers: List of numbers. Returns: Integer length of the list of numbers.
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples_dynamic_line_width.py:255
Functionlength_rst
Do cool stuff:: length([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21])
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples_dynamic_line_width.py:273
Functionlength_rst_in_section
Examples: Do cool stuff:: length([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20])
crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_code_examples_dynamic_line_width.py:283
Functionlength_sort
(path: &Path)
crates/ruff_linter/src/rules/isort/mod.rs:1674
Functionlength_sort_straight
(path: &Path)
crates/ruff_linter/src/rules/isort/mod.rs:1694
Functionleq
Compare two objects for loose equality. Parameters ---------- x1, x2 : object Objects. Returns ------- bool
crates/ruff_linter/resources/test/fixtures/pydoclint/DOC102_numpy.py:375
Functionlex_fstring_error
(source: &str)
crates/ruff_python_parser/src/lexer.rs:2732
Functionlex_fstring_missing_brace
()
crates/ruff_python_parser/src/lexer.rs:2818
Functionlex_fstring_missing_brace_after_format_spec
()
crates/ruff_python_parser/src/lexer.rs:2850
Functionlex_fstring_unclosed
()
crates/ruff_python_parser/src/lexer.rs:2791
Functionlex_source_with_offset
(source: &str, start_offset: TextSize)
crates/ruff_python_parser/src/lexer.rs:1805
Functionlex_tstring_error
(source: &str)
crates/ruff_python_parser/src/lexer.rs:2776
Functionlexical_name_path_component_for_leaf
Computes the final component of a lexical name path. See [`lexical_name_path_for_definition`][] for details.
crates/ty_python_semantic/src/lexical_name_path.rs:81
Methodlexical_of_node
Returns the generic context visible while checking the scope introduced by `node`. For functions, this retains type variables that are moved to a ret
crates/ty_python_semantic/src/types/generics.rs:425
Functionlib64_site_packages_directory_on_unix
()
crates/ty/tests/cli/python_environment.rs:589
Functionlimit_offset_sql
Return LIMIT/OFFSET SQL clause.
crates/ruff_python_formatter/resources/test/fixtures/black/cases/conditional_expression.py:47
Methodline
(&self)
crates/ty_python_semantic/src/lint.rs:142
Functionline_before_docstring
Please move me up
crates/ruff_python_formatter/resources/test/fixtures/black/cases/no_blank_line_before_docstring.py:1
Functionline_break_in_header_1
()
crates/mdtest/src/parser.rs:1911
Functionline_break_in_header_2
()
crates/mdtest/src/parser.rs:1941
Functionline_continuation_at_eof
(eol: &str)
crates/ruff_python_parser/src/lexer.rs:2305
Functionline_continuation_at_eof_after_newline
(eol: &str)
crates/ruff_python_parser/src/lexer.rs:2285
Functionline_continuation_chars
No fix should be offered for D201/D202 because of the line continuation chars.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D.py:727
Methodline_count
Return the number of lines in the source code.
crates/ruff_source_file/src/line_index.rs:222
Methodline_end
Returns the [byte offset](TextSize) of the `line`'s end. The offset is the end of the line, up to and including the newline character ending the line
crates/ruff_source_file/src/line_index.rs:275
Methodline_end_exclusive
Returns the [byte offset](TextSize) of the `line`'s end. The offset is the end of the line, excluding the newline character ending the line (if any).
crates/ruff_source_file/src/line_index.rs:289
Functionline_end_exclusive_handles_different_line_endings
()
crates/ruff_source_file/src/line_index.rs:824
Functionline_ending
()
crates/ruff_python_codegen/src/stylist.rs:356
Methodline_ending
(&self)
crates/ruff_python_formatter/src/options.rs:139
Functionline_index_for_source
()
crates/ruff_db/src/source.rs:290
Methodline_start
(&self, offset: TextSize)
crates/ruff_linter/src/locator.rs:147
Methodline_starts_doctest
Whether or not the given line marks the start of a doctest.
crates/ty_ide/src/docstring/document/preformatted.rs:123
Methodline_starts_literal_block
Whether or not the given line marks the start of a reST literal block.
crates/ty_ide/src/docstring/document/preformatted.rs:213
Methodline_str
(&self, offset: TextSize)
crates/ruff_source_file/src/line_ranges.rs:381
Functionline_suffix
( inner: &Content, reserved_width: u32, )
crates/ruff_formatter/src/builders.rs:468
Functionline_suffix_boundary
Inserts a boundary for line suffixes that forces the printer to print all pending line suffixes. Helpful if a line suffix shouldn't pass a certain poi
crates/ruff_formatter/src/builders.rs:531
Functionline_suffix_printed_at_end
()
crates/ruff_formatter/src/printer/mod.rs:1944
Functionline_suffix_with_reserved_width
()
crates/ruff_formatter/src/printer/mod.rs:1974
Functionline_too_long_width_override
()
crates/ruff/tests/cli/lint.rs:346
Functionlineno_offset
()
crates/ruff_annotate_snippets/tests/formatter.rs:5536
Methodlines_added
(self)
python/ruff-ecosystem/ruff_ecosystem/types.py:53
Functionlines_after_before_a_new_line
()
crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs:386
Functionlines_after_before_comment_offset
()
crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs:396
Functionlines_after_empty_string
()
crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs:376
Functionlines_after_ignoring_trivia
Counts the empty lines after `offset`, ignoring any trailing trivia: end-of-line comments, own-line comments, and any intermediary newlines.
crates/ruff_python_trivia/src/tokenizer.rs:94
Functionlines_after_imports
(path: &Path)
crates/ruff_linter/src/rules/isort/mod.rs:1467
Functionlines_after_imports_default_settings
(path: &Path)
crates/ruff_linter/src/rules/isort/mod.rs:1487
Functionlines_after_in_the_middle_of_a_line
()
crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs:381
Functionlines_after_multiple_newlines
()
crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs:391
Functionlines_after_with_comment_only_line
()
crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs:401
Functionlines_before_empty_string
()
crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs:335
Functionlines_before_in_the_middle_of_a_line
()
crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs:340
Functionlines_before_multiple_leading_newlines
()
crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs:350
Functionlines_before_on_a_new_line
()
crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs:345
Functionlines_before_with_comment_offset
()
crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs:355
Functionlines_before_with_comment_only_line
()
crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs:368
Functionlines_before_with_trailing_comment
()
crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs:360
Functionlines_between_types
(path: &Path)
crates/ruff_linter/src/rules/isort/mod.rs:1505
Methodlines_removed
(self)
python/ruff-ecosystem/ruff_ecosystem/types.py:57
Methodlines_str
(&self, range: TextRange)
crates/ruff_source_file/src/line_ranges.rs:389
Functionlinked_directory_exists
(db: &dyn Db, directory: File)
crates/ruff_db/src/files/directory.rs:152
Methodlint
Creates a new `DiagnosticId` for a lint with the given name.
crates/ruff_db/src/diagnostic/mod.rs:1101
Functionlint_cached
(bencher: Bencher, project: &Project)
crates/ruff_benchmark/benches/ruff_walltime.rs:88
Functionlint_custom_extension_mapped_to_markdown_emits_no_diagnostics
()
crates/ruff_server/tests/e2e/custom_extension.rs:77
Functionlint_doc
(fixture_path: &Utf8Path, content: String)
crates/ty_python_semantic/tests/mdtest.rs:26
Functionlint_map_unit_fn
()
crates/ruff_annotate_snippets/tests/rustc_tests.rs:2455
Functionlint_metadata_defaults
(status: LintStatus)
crates/ty_python_semantic/src/lint.rs:152
Functionlint_options
()
crates/ruff/tests/cli/lint.rs:85
Methodlint_registry
(&self)
crates/ty_python_semantic/tests/corpus.rs:234
Methodlint_registry
(&self)
fuzz/fuzz_targets/ty_check_invalid_syntax.rs:142
Functionlint_select
()
crates/ruff/tests/config.rs:9
Functionlint_select_json
()
crates/ruff/tests/config.rs:41
Functionlint_uncached
(bencher: Bencher, project: &Project)
crates/ruff_benchmark/benches/ruff_walltime.rs:83
Methodlinted
Return whether or not the file in the cache was linted and found to have no diagnostics.
crates/ruff/src/cache.rs:352
Functionlinter_no_panic
(range: &str)
crates/ty_python_semantic/tests/corpus.rs:48
Functionlinter_parse_code
()
crates/ruff_linter/src/registry.rs:553
Functionlinter_quick_test
()
crates/ruff_linter/src/lib.rs:74
Functionlinter_sorting
()
crates/ruff_linter/src/registry.rs:571
Functionlinter_stubs_no_panic
()
crates/ty_python_semantic/tests/corpus.rs:56
Methodlion
(self)
crates/ty_completion_eval/truth/object-attr-instance-methods/main.py:3
Functionliouiwnlkjl
Returns foo.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D.py:360
Functionlist_all_module_names
(db: &TestDb)
crates/ty_module_resolver/src/list.rs:1692
Functionlist_comp
()
crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_skip/compound_one_liners.py:83
Methodlist_comp_expr
(self)
crates/ruff_python_ast/src/generated.rs:1916
Functionlist_comp_fields
(node: &ast::ExprListComp)
crates/ruff_python_ast/src/comparable.rs:1163
Functionlist_comprehension
()
crates/ruff_python_ast_integration_tests/tests/visitor.rs:46
Functionlist_comprehension
()
crates/ruff_python_ast_integration_tests/tests/source_order.rs:37
Functionlist_comprehension1
()
crates/ty_ide/src/completion.rs:4230
Functionlist_comprehension2
()
crates/ty_ide/src/completion.rs:4247
Functionlist_comprehension_also_not_okay
(default=[i**2 for i in range(3)])
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B006_B008.py:102
Functionlist_comprehension_member
()
crates/ty_ide/src/completion.rs:4261
Functionlist_concatenation_assignment
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:3336
Methodlist_expr
(self)
crates/ruff_python_ast/src/generated.rs:2693
Functionlist_fields
(node: &ast::ExprList)
crates/ruff_python_ast/src/comparable.rs:1396
Functionlist_fruits
(self, cls)
crates/ruff_linter/resources/test/fixtures/pylint/self_or_cls_assignment.py:41
Methodlist_fruits
(cls)
crates/ruff_linter/resources/test/fixtures/pylint/self_or_cls_assignment.py:3
Methodlist_fruits_static
(self, cls)
crates/ruff_linter/resources/test/fixtures/pylint/self_or_cls_assignment.py:36
Functionlist_members_archive_handler
(filename)
crates/ruff_linter/resources/test/fixtures/flake8_bandit/S202.py:18
← previousnext →23,501–23,600 of 31,562, ranked by callers