python-trio / trio

Trio – a friendly Python library for async concurrency and I/O
https://trio.readthedocs.io
Other
5.98k stars 325 forks source link

Enable `flake8-comprehensions` #2931

Closed CoolCat467 closed 5 months ago

CoolCat467 commented 5 months ago

This pull request enables ruff's flake8-comprehensions rule, building off of the formatting changes done in #2930.

codecov[bot] commented 5 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (e0d8edf) 99.64% compared to head (a1b8bd1) 99.64%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #2931 +/- ## ======================================= Coverage 99.64% 99.64% ======================================= Files 116 116 Lines 17501 17501 Branches 3148 3148 ======================================= Hits 17439 17439 Misses 43 43 Partials 19 19 ```
jakkdl commented 5 months ago

See https://pypi.org/project/flake8-comprehensions/ for what this rule does