ruff/crates
Ran Benita fbfe2cb2f5
[flake8-async] Fix false positives with multiple async with items (ASYNC100) (#12643)
## Summary

Please see
https://github.com/astral-sh/ruff/pull/12605#discussion_r1699957443 for
a description of the issue.

They way I fixed it is to get the *last* timeout item in the `with`, and
if it's an `async with` and there are items after it, then don't trigger
the lint.

## Test Plan

Updated the fixture with some more cases.
2024-08-02 21:25:13 +00:00
..
red_knot [red-knot] Allow multiple site-packages search paths (#12609) 2024-08-02 13:33:19 +00:00
red_knot_module_resolver [red-knot] Allow multiple site-packages search paths (#12609) 2024-08-02 13:33:19 +00:00
red_knot_python_semantic [red-knot] Allow multiple site-packages search paths (#12609) 2024-08-02 13:33:19 +00:00
red_knot_workspace Set durabilities for low-durability fields on high-durability inputs (#12627) 2024-08-02 19:42:34 +02:00
ruff Release Ruff 0.5.6 (#12629) 2024-08-02 17:35:14 +02:00
ruff_benchmark [red-knot] update benchmark to run on tomllib (#12635) 2024-08-02 11:23:52 -07:00
ruff_cache Fix cache key collisions for paths with separators (#12159) 2024-07-03 07:36:46 -05:00
ruff_db Set durabilities for low-durability fields on high-durability inputs (#12627) 2024-08-02 19:42:34 +02:00
ruff_dev Drop deprecated nursery rule group (#10172) 2024-06-27 13:44:11 +02:00
ruff_diagnostics Move sub-crates to workspace dependencies (#11407) 2024-05-13 14:37:50 +00:00
ruff_formatter Upgrade to Rust 1.80 (#12586) 2024-07-30 19:18:08 +00:00
ruff_index [red-knot] small efficiency improvements and bugfixes to use-def map building (#12373) 2024-07-18 09:24:58 -07:00
ruff_linter [flake8-async] Fix false positives with multiple async with items (ASYNC100) (#12643) 2024-08-02 21:25:13 +00:00
ruff_macros Drop deprecated nursery rule group (#10172) 2024-06-27 13:44:11 +02:00
ruff_notebook [red-knot] Add notebook support (#12338) 2024-07-17 08:26:33 +00:00
ruff_python_ast Upgrade to Rust 1.80 (#12586) 2024-07-30 19:18:08 +00:00
ruff_python_ast_integration_tests Rename PreorderVisitor to SourceOrderVisitor (#11798) 2024-06-07 17:01:58 +00:00
ruff_python_codegen Use indentation consistently (#12293) 2024-07-12 14:08:56 +02:00
ruff_python_formatter Upgrade to Rust 1.80 (#12586) 2024-07-30 19:18:08 +00:00
ruff_python_index Enable token-based rules on source with syntax errors (#11950) 2024-07-02 08:57:46 +00:00
ruff_python_literal Remove some unused pub functions (#11576) 2024-05-28 09:56:51 -04:00
ruff_python_parser Upgrade to Rust 1.80 (#12586) 2024-07-30 19:18:08 +00:00
ruff_python_resolver chore(deps): update rust crate insta to v1.38.0 (#10701) 2024-04-01 15:44:30 +00:00
ruff_python_semantic Make setting and retrieving pydocstyle settings less tedious (#12582) 2024-07-31 10:39:33 +01:00
ruff_python_stdlib [flake8-builtins] Implement import, lambda, and module shadowing (#12546) 2024-07-29 01:42:42 +00:00
ruff_python_trivia Mention that Cursor is based on rustc's implementation. (#12109) 2024-06-30 16:53:25 +01:00
ruff_python_trivia_integration_tests Build CommentRanges outside the parser (#11792) 2024-06-09 09:55:17 +00:00
ruff_server Make server panic hook more error resilient (#12610) 2024-08-02 12:10:06 +02:00
ruff_source_file red-knot: source_text, line_index, and parsed_module queries (#11822) 2024-06-13 07:37:02 +00:00
ruff_text_size Upgrade to Rust 1.79 (#11875) 2024-06-17 07:15:10 +01:00
ruff_wasm Release Ruff 0.5.6 (#12629) 2024-08-02 17:35:14 +02:00
ruff_workspace Enable notebooks by default in preview mode (#12621) 2024-08-02 13:36:53 +00:00