ruff/crates
Aleksei Latyshev 1602df1643
Fix message for __aenter__ in PLC2801 (#9492)
<!--
Thank you for contributing to Ruff! To help us out with reviewing,
please consider the following:

- Does this pull request include a summary of the change? (See below.)
- Does this pull request include a descriptive title?
- Does this pull request include references to any relevant issues?
-->

## Summary

Fix the message for `__aenter__ ` in PLC2801 (introduced in
https://github.com/astral-sh/ruff/pull/9166)
There is no `aenter` builtin in Python, so the current message is
misleading.
I take the message from original lint
https://github.com/pylint-dev/pylint/blob/main/pylint/constants.py#L211

P.S. I think here should be more accurate synchronization with original
lint (e.g. the current implementation will not lint `__enter__` on my
first sight), but it is out-of-scope of this change.

<!-- What's the purpose of the change? What does it do, and why? -->

## Test Plan

<!-- How was it tested? -->
2024-01-12 08:48:45 -05:00
..
ruff_benchmark Remove type parameter from parse_* methods (#9466) 2024-01-11 19:41:19 +01:00
ruff_cache Make all dependencies workspace dependencies (#9333) 2024-01-02 13:41:59 +00:00
ruff_cli Bump version to v0.1.12 (#9475) 2024-01-11 22:13:00 +00:00
ruff_dev Move pyproject_config into Resolver (#9453) 2024-01-10 17:58:53 -05:00
ruff_diagnostics Enable annotation quoting for multi-line expressions (#9142) 2023-12-15 01:03:09 +00:00
ruff_formatter Hug multiline-strings preview style (#9243) 2024-01-10 12:47:34 +01:00
ruff_index Make all dependencies workspace dependencies (#9333) 2024-01-02 13:41:59 +00:00
ruff_linter Fix message for __aenter__ in PLC2801 (#9492) 2024-01-12 08:48:45 -05:00
ruff_macros remove several uses of unsafe (#8600) 2023-11-28 09:50:03 -05:00
ruff_notebook Generate deterministic ids when formatting notebooks (#9359) 2024-01-04 09:19:00 -06:00
ruff_python_ast Account for possibly-empty f-string values in truthiness logic (#9484) 2024-01-11 21:16:19 -05:00
ruff_python_codegen Remove source path from parser errors (#9322) 2023-12-30 20:33:05 +00:00
ruff_python_formatter Remove type parameter from parse_* methods (#9466) 2024-01-11 19:41:19 +01:00
ruff_python_index Remove type parameter from parse_* methods (#9466) 2024-01-11 19:41:19 +01:00
ruff_python_literal Use Rust 1.75 toolchain (#9437) 2024-01-08 18:03:16 +01:00
ruff_python_parser Remove type parameter from parse_* methods (#9466) 2024-01-11 19:41:19 +01:00
ruff_python_resolver Use Rust 1.75 toolchain (#9437) 2024-01-08 18:03:16 +01:00
ruff_python_semantic Restrict builtin-attribute-shadowing to actual shadowed references (#9462) 2024-01-11 12:59:40 -05:00
ruff_python_stdlib Treat all typing_extensions members as typing aliases (#9335) 2023-12-31 14:23:33 -04:00
ruff_python_trivia Remove type parameter from parse_* methods (#9466) 2024-01-11 19:41:19 +01:00
ruff_shrinking Bump version to v0.1.12 (#9475) 2024-01-11 22:13:00 +00:00
ruff_source_file Add cell indexes to all diagnostics (#9387) 2024-01-04 14:02:23 +00:00
ruff_text_size Make all dependencies workspace dependencies (#9333) 2024-01-02 13:41:59 +00:00
ruff_wasm Make all dependencies workspace dependencies (#9333) 2024-01-02 13:41:59 +00:00
ruff_workspace Remove unreachable-code feature (#9463) 2024-01-11 20:24:57 -05:00