Flake8-comprehensions

Latest version: v3.16.0

Safety actively analyzes 682404 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 6 of 7

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``.

2.1.0

------------------

* Add missing builtin ``enumerate`` to ``C407``.

2.0.0

------------------

* Drop Python 2 support, only Python 3.4+ is supported now.

1.4.1

------------------

* Fix false positives in ``C408`` for calls using ``*args`` or ``**kwargs``.

1.4.0

------------------

* Plugin now reserves the full ``C4XX`` code space rather than just ``C40X``
* ``C408`` rule that complains about using ``tuple()``, ``list()``, or
``dict()`` instead of a literal.
* ``C409`` and ``C410`` rules that complain about an unnecessary list or tuple
that could be rewritten as a literal.
* ``C411`` rule that complains about using list comprehension inside a
``list()`` call.

1.3.0

------------------

* Don't allow installation with Flake8 3.2.0 which doesn't enable the plugin.
This bug was fixed in Flake8 3.2.1.
* Prevent false positives of ``C402`` from generators of expressions that
aren't two-tuples.
* ``C405`` and ``C406`` now also complain about unnecessary tuple literals.

Page 6 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.