Flake8-comprehensions

Latest version: v3.14.0

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

Scan your dependencies

Page 6 of 7

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.

1.2.1

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

* ``C407`` rule that complains about unnecessary list comprehensions inside
builtins that can work on generators.

1.2.0

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

* Split all rule codes by type. This allows granular selection of the rules in
flake8 configuration.

Page 6 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.