fe93c48b6d
- update to 3.15.0: * Add rule C420 to check for dict comprehensions with constant values, encouraging replacement with dict.fromkeys(). - drop unmaintained and unused pytest-flake8dir
Dirk Mueller2024-07-01 07:38:34 +00:00
4da1e2d4ca
- update to 3.12.0: * Add rule C418 to check for calls passing a dict literal or dict comprehension to `dict(). * Add rule C419 to check for calls passing a list comprehension to any()/all()`.
Dirk Mueller2023-04-13 12:27:19 +00:00
c4ed9289aa
- Update to 3.4.0: - Remove rules C407 (Unnecessary <dict/list> comprehension - <builtin> can take a generator) and C412 (Unnecessary <dict/list/set> comprehension - 'in' can take a generator). Both rules recommended increasing laziness, which is not always desirable and can lead to subtle bugs. Also, a fully exhausted generator is slower than an equivalent comprehension, so the advice did not always improve performance. - Drop Python 3.5 support. - Support Python 3.9. - Move license from ISC to MIT License. - Partially reverted the change to C408 to make it apply again to when dict is called with keyword arguments, e.g. dict(a=1, b=2) will be flagged to be rewritten in the literal form {"a": 1, "b": 2} - Skip test test_C416_fail_1_list (gh#adamchainz/flake8-comprehensions#313).
Matej Cepl2021-03-18 13:05:37 +00:00
5ddf72836a
Accepting request 754979 from home:apersaud:branches:devel:languages:python
Tomáš Chvátal
2019-12-09 09:18:40 +00:00
5c33841fa4
Accepting request 730532 from devel:languages:python
Ludwig Nussel
2019-09-13 13:02:44 +00:00
908b2d1a84
- Update to 2.2.0: * Update Python support to 3.5-3.7, as 3.4 has reached its end of life. * C412 rule that complains about using list comprehension with in.
Tomáš Chvátal
2019-09-13 07:30:19 +00:00