MCPcopy Create free account

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

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

Methodpath
Return the path of the file in which the error occurred.
crates/ruff_linter/src/logging.rs:227
Methodpath
Return the [`Path`] of the package root.
crates/ruff_linter/src/package.rs:34
Functionpath_as_optional_parameter_type
(path: Optional[Path])
crates/ruff_linter/resources/test/fixtures/flake8_async/ASYNC240.py:101
Functionpath_as_simple_parameter_type
(path: Path)
crates/ruff_linter/resources/test/fixtures/flake8_async/ASYNC240.py:95
Functionpath_as_union_parameter_type
(path: Path | None)
crates/ruff_linter/resources/test/fixtures/flake8_async/ASYNC240.py:98
Functionpath_assignments_follow_constraint_source_order
()
crates/ty_python_semantic/src/types/constraints/paths.rs:1328
Functionpath_colon_on_next_line
()
crates/mdtest/src/parser.rs:2174
Methodpath_exists
Returns `true` if `path` exists.
crates/ruff_db/src/system.rs:149
Functionpath_limit_is_checked_before_solving
()
crates/ty_python_semantic/src/types/constraints/projection/tests.rs:127
Methodpath_metadata
(&self, path: &SystemPath)
crates/ruff_db/src/system/test.rs:112
Methodpath_metadata
(&self, path: &SystemPath)
crates/ty_wasm/src/lib.rs:1625
Functionpath_normalization
()
crates/ruff_db/src/system/memory_fs.rs:791
Functionpath_okay
(value=Path("."))
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B006_B008.py:233
Functionpath_open_in_foo
()
crates/ruff_linter/resources/test/fixtures/flake8_async/ASYNC240.py:58
Functionpath_to_module
( db: &'db dyn Db, resolver_environment: ResolverEnvironment<'db>, path: &FilePath, )
crates/ty_module_resolver/src/resolve.rs:368
Functionpath_with_backtick
()
crates/mdtest/src/parser.rs:2146
Functionpath_with_line_break
()
crates/mdtest/src/parser.rs:2117
Functionpath_with_space
()
crates/mdtest/src/parser.rs:2092
Functionpathlib_path_in_foo
()
crates/ruff_linter/resources/test/fixtures/flake8_async/ASYNC240.py:20
Functionpathlib_with_suffix_py314
(rule_code: Rule, path: &Path)
crates/ruff_linter/src/rules/flake8_use_pathlib/mod.rs:164
Functionpaths
(rule_code: Rule, path: &Path)
crates/ruff_linter/src/rules/pandas_vet/mod.rs:382
Functionpaths_in_configuration_files_are_relative_to_the_project_root
()
crates/ty/tests/cli/main.rs:317
Functionpattern
(pattern: &str)
crates/ruff_linter/src/rules/isort/mod.rs:431
Methodpattern
(&self, module: &'ast ParsedModuleRef)
crates/ty_python_core/src/definition.rs:1266
Methodpattern_can_raise
Returns whether matching a pattern can invoke Python user code.
crates/ty_python_core/src/builder.rs:2697
Methodpattern_has_bindings
Return whether a pattern contains any capture that changes the current flow state.
crates/ty_python_core/src/builder.rs:2663
Functionpattern_is_wildcard
()
crates/ruff_python_ast_integration_tests/tests/match_pattern.rs:4
Functionpattern_match_as_references
()
crates/ty_ide/src/find_references.rs:506
Functionpattern_match_mapping_rest_references
()
crates/ty_ide/src/find_references.rs:532
Functionpattern_matching
()
crates/ty_ide/src/semantic_tokens.rs:4643
Functionpattern_usefulness_empty_match
()
crates/ruff_annotate_snippets/tests/rustc_tests.rs:1998
Functionpd002_fix_at_notebook_cell_start
()
crates/ruff_linter/src/rules/pandas_vet/mod.rs:393
Methodpeek2
Returns the next two non-trivia tokens without consuming it. Use [`peek`] to only get the next token. [`peek`]: TokenSource::peek
crates/ruff_python_parser/src/token_source.rs:154
Methodpending_narrowing
()
crates/ty_python_semantic/src/types.rs:2461
Functionpending_narrowing_cycle_recovery_checks_alias_arguments
()
crates/ty_python_semantic/src/types/tests.rs:820
Functionpending_narrowing_cycle_recovery_preserves_guarded_contributions
()
crates/ty_python_semantic/src/types/tests.rs:760
Functionpending_narrowing_intersections_are_order_independent
()
crates/ty_python_semantic/src/types/tests.rs:676
Methodpeople
(self)
crates/ruff_linter/resources/test/fixtures/flake8_type_checking/runtime_evaluated_decorators_4.py:19
Functionpep257_normalization_ends_section_at_dedented_header
()
crates/ty_ide/src/docstring/document/google.rs:1194
Functionpep257_normalization_preserves_nested_section
()
crates/ty_ide/src/docstring/document/google.rs:1181
Functionpep257_normalization_recognizes_shifted_sibling_section
()
crates/ty_ide/src/docstring/document/google.rs:1168
Functionpep695_generic_rename
()
crates/ruff/tests/cli/lint.rs:3888
Functionpep695_type_params
()
crates/ty_python_semantic/src/types/infer/tests.rs:422
Functionpep_696_bad
()
crates/ruff_linter/resources/test/fixtures/pycodestyle/E25.py:64
Functionpep_696_bad
( x:A = "foo"[::-1], y:B = [[["foo", "bar"]]], z:object = "fooo", )
crates/ruff_linter/resources/test/fixtures/pycodestyle/E23.py:109
Methodpep_696_bad_method
( self, x:A = "foo"[::-1], y:B = [[["foo", "bar"]]], z:object = "fooo", )
crates/ruff_linter/resources/test/fixtures/pycodestyle/E23.py:117
Functionpep_696_good
()
crates/ruff_linter/resources/test/fixtures/pycodestyle/E25.py:72
Functionpep_696_good
( x: A = "foo"[::-1], y: B = [[["foo", "bar"]]], z: object = "fooo", )
crates/ruff_linter/resources/test/fixtures/pycodestyle/E23.py:130
Methodpep_696_good_method
(self)
crates/ruff_linter/resources/test/fixtures/pycodestyle/E25.py:76
Functionper_file_ignores_stdin
()
crates/ruff/tests/cli/lint.rs:386
Functionper_file_target_version_formatter
()
crates/ruff/tests/cli/format.rs:2488
Functionper_file_target_version_linter
()
crates/ruff/tests/cli/lint.rs:4126
Methodpick_colors
classmethod to pick fruit colors
crates/ruff_linter/resources/test/fixtures/pylint/no_method_decorator.py:9
Methodpick_one_color
staticmethod to pick one fruit color
crates/ruff_linter/resources/test/fixtures/pylint/no_method_decorator.py:15
Functionpicks_up_edits_to_unwatched_pth_files
()
crates/ty_server/tests/e2e/file_watching.rs:120
Functionpixi_environment_with_and_without_python
()
crates/ty_site_packages/src/lib.rs:2392
Methodplace
(self, db: &'db dyn Db)
crates/ty_python_core/src/definition.rs:104
Methodplace
(self, position)
crates/ruff_linter/resources/test/fixtures/pylint/singledispatch_method.py:20
Functionplain
(a: T, b: T)
crates/ruff_python_formatter/resources/test/fixtures/black/cases/skip_magic_trailing_comma_generic_wrap.py:1
Methodplain
()
crates/ruff_annotate_snippets/src/renderer/stylesheet.rs:25
Methodplain
No terminal styling
crates/ruff_annotate_snippets/src/renderer/mod.rs:120
Methodplain
()
crates/ruff_db/src/diagnostic/stylesheet.rs:122
Functionplain_function_returning_dict
()
crates/ruff_linter/resources/test/fixtures/airflow/AIR202.py:173
Functionplain_mixed1
(a: T, b: T)
crates/ruff_python_formatter/resources/test/fixtures/black/cases/skip_magic_trailing_comma_generic_wrap.py:51
Functionplain_mixed1
(a: T, b: T)
crates/ruff_python_formatter/resources/test/fixtures/black/cases/generics_wrapping.py:51
Functionplain_mixed2
( a: T, b: T )
crates/ruff_python_formatter/resources/test/fixtures/black/cases/skip_magic_trailing_comma_generic_wrap.py:57
Functionplain_mixed2
( a: T, b: T )
crates/ruff_python_formatter/resources/test/fixtures/black/cases/generics_wrapping.py:57
Functionplain_multiline
( a: T, b: T )
crates/ruff_python_formatter/resources/test/fixtures/black/cases/skip_magic_trailing_comma_generic_wrap.py:14
Functionplain_multiline
( a: T, b: T )
crates/ruff_python_formatter/resources/test/fixtures/black/cases/generics_wrapping.py:14
Functionplain_text_with_section_like_words
Summary. Returns the value of x. Notes that this is important. This should not be detected as having sections.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D420_google.py:202
Functionplain_text_with_section_like_words
Summary. Returns the value of x. Notes that this is important. This should not be detected as having sections.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D420_numpy.py:236
Functionplr0402_skips_required_imports
(path: &Path)
crates/ruff_linter/src/rules/isort/mod.rs:1092
Methodplugh
Retrieve the plugh.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D421.py:55
Functionpoit
Lorem ipsum dolor sit amet. Consectetur adipiscing elit: - sed do eiusmod tempor incididunt ut labore - dolore magna aliqua -
crates/ruff_python_formatter/resources/test/fixtures/black/cases/docstring.py:47
Functionpoit
Lorem ipsum dolor sit amet. Consectetur adipiscing elit: - sed do eiusmod tempor incididunt ut labore - dolore magna aliqua -
crates/ruff_python_formatter/resources/test/fixtures/black/cases/docstring_no_string_normalization.py:37
Methodpop
Pops the call arguments at the top and asserts that they correspond to a start tag of `kind`. Returns `Ok` with the arguments if the kind of the top
crates/ruff_formatter/src/printer/call_stack.rs:110
Functionpop_heap
()
crates/ruff_python_ast/src/name.rs:1041
Functionpop_stack
()
crates/ruff_python_ast/src/name.rs:1028
Functionpos_and_kw_only_args
(a, b, /, c, *, d, e, f)
crates/ruff_python_parser/resources/valid/statement/function.py:45
Functionpos_and_kw_only_args_with_defaults
(a, b, /, c, *, d, e=20, f=30)
crates/ruff_python_parser/resources/valid/statement/function.py:49
Functionpos_and_kw_only_args_with_defaults_and_kwargs
( a, b, /, c, *, d, e=20, f=30, **kwargs )
crates/ruff_python_parser/resources/valid/statement/function.py:57
Functionpos_and_kw_only_args_with_defaults_and_varargs
(a, b, /, c, *args, d, e=20, f=30)
crates/ruff_python_parser/resources/valid/statement/function.py:53
Functionpos_and_kw_only_args_with_defaults_and_varargs_and_kwargs
( a, b, /, c, *args, d, e=20, f=30, **kwargs )
crates/ruff_python_parser/resources/valid/statement/function.py:63
Functionpos_args_with_defaults_and_varargs_and_kwargs
(a, b=20, /, c=30, *args, **kwargs)
crates/ruff_python_parser/resources/valid/statement/function.py:21
Functionpositional_and_keyword_parameters
(a, b, c, *, d, e, f)
crates/ruff_python_parser/resources/valid/statement/function.py:69
Functionpositional_and_keyword_parameters_with_defaults
(a, b, c, *, d, e=20, f=30)
crates/ruff_python_parser/resources/valid/statement/function.py:73
Functionpositional_and_keyword_parameters_with_defaults_and_varargs
( a, b, c, *args, d, e=20, f=30 )
crates/ruff_python_parser/resources/valid/statement/function.py:77
Functionpositional_and_keyword_parameters_with_defaults_and_varargs_and_kwargs
( a, b, c, *args, d, e=20, f=30, **kwargs )
crates/ruff_python_parser/resources/valid/statement/function.py:83
Functionpositional_argument_only_comment
()
crates/ruff_python_formatter/src/comments/mod.rs:936
Functionpositional_argument_only_comment_without_following_node
()
crates/ruff_python_formatter/src/comments/mod.rs:972
Functionpositional_argument_only_leading_comma_comment
()
crates/ruff_python_formatter/src/comments/mod.rs:954
Methodpositional_only
(name: Option<Name>)
crates/ty_python_semantic/src/types/signatures.rs:5994
Functionpositional_only_and_positional_parameters
(a, /, b, c)
crates/ruff_python_parser/resources/valid/statement/function.py:17
Functionpositional_only_arg
(a, /)
crates/ruff_python_formatter/resources/test/fixtures/black/cases/pep_570.py:1
Functionpositional_only_argument_annotations
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:4311
Methodpositional_or_keyword
(name: Name)
crates/ty_python_semantic/src/types/signatures.rs:6008
Functionpositional_parameters
(a, b, c)
crates/ruff_python_parser/resources/valid/statement/function.py:5
Functionpositional_parameters_with_default_values
(a, b=20, c=30)
crates/ruff_python_parser/resources/valid/statement/function.py:9
Functionpositional_parameters_with_default_values2
(a, b=20, /, c=30)
crates/ruff_python_parser/resources/valid/statement/function.py:13
Methodpossible_values
(&self)
crates/ruff/src/commands/completions/config.rs:139
← previousnext →26,701–26,800 of 31,766, ranked by callers