ruff/crates/ruff_linter/resources/test/fixtures/flake8_comprehensions
Ayush Baweja df45a9db64
[flake8-comprehensions]: Handle trailing comma in C403 fix (#16110)
## Summary

Resolves [#16099 ](https://github.com/astral-sh/ruff/issues/16099) based
on [#15929 ](https://github.com/astral-sh/ruff/pull/15929)

## Test Plan

Added test case `s = set([x for x in range(3)],)` and updated snapshot.

---------

Co-authored-by: dylwil3 <dylwil3@gmail.com>
2025-02-15 11:45:41 -06:00
..
C400.py [flake8-comprehensions] Handle trailing comma in fixes for unnecessary-generator-list/set (C400,C401) (#15929) 2025-02-05 07:38:03 -06:00
C401.py [flake8-comprehensions] Handle trailing comma in fixes for unnecessary-generator-list/set (C400,C401) (#15929) 2025-02-05 07:38:03 -06:00
C402.py
C403.py [flake8-comprehensions]: Handle trailing comma in C403 fix (#16110) 2025-02-15 11:45:41 -06:00
C404.py
C405.py
C406.py
C408.py Remove CST-based fixer for C408 (#9822) 2024-02-04 22:26:51 -05:00
C409.py [flake8-comprehensions] Account for list and set comprehensions in unnecessary-literal-within-tuple-call (C409) (#12657) 2024-08-04 22:14:52 -04:00
C410.py [flake8-comprehensions] Skip when TypeError present from too many (kw)args for C410,C411, and C418 (#15838) 2025-01-30 17:10:43 -06:00
C411.py [flake8-comprehensions] Skip when TypeError present from too many (kw)args for C410,C411, and C418 (#15838) 2025-01-30 17:10:43 -06:00
C413.py [flake8-comprehensions] Parenthesize sorted when needed for unnecessary-call-around-sorted (C413) (#15825) 2025-01-30 07:10:56 -06:00
C414.py
C415.py
C416.py [flake8-comprehensions] Skip C416 if comprehension contains unpacking (#14909) 2024-12-20 14:35:30 +05:30
C417.py [flake8-comprehensions] Do not emit unnecessary-map diagnostic when lambda has different arity (C417) (#15802) 2025-01-29 18:45:55 +00:00
C417_1.py [flake8-comprehensions] Detect overshadowed list/set/dict, ignore variadics and named expressions (C417) (#15955) 2025-02-07 08:58:05 +00:00
C418.py [flake8-comprehensions] Skip when TypeError present from too many (kw)args for C410,C411, and C418 (#15838) 2025-01-30 17:10:43 -06:00
C419.py [flake8-comprehensions] Do not lint async for comprehensions in unnecessary-comprehension-in-call (C419) (#12895) 2024-08-15 01:00:10 +00:00
C419_1.py Raise syntax error for unparenthesized generator expr in multi-argument call (#12445) 2024-07-22 14:44:20 +05:30
C419_2.py [flake8_comprehensions] add sum/min/max to unnecessary comprehension check (C419) (#10759) 2024-04-03 14:44:33 -06:00
C420.py Re-code unnecessary-dict-comprehension-for-iterable (RUF025) as C420 (#12533) 2024-08-14 18:15:45 +02:00
C420_1.py [flake8-comprehensions] Handle builtins at top of file correctly for unnecessary-dict-comprehension-for-iterable (C420) (#15837) 2025-01-30 15:49:13 -06:00