Flake8-comprehensions

Latest version: v3.14.0

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

Scan your dependencies

Page 5 of 7

3.1.0

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

* Update Python support to 3.5-3.8.
* Fix false positives for C404 for list comprehensions not directly creating
tuples.
* Add ``C413`` rule that checks for unnecessary use of ``list()`` or
``reversed()`` around ``sorted()``.
* Add ``C414`` rule that checks for unnecessary use of the following:
* ``list()``, ``reversed()``, ``sorted()``, or ``tuple()`` within ``set``
or ``sorted()``
* ``list()`` or ``tuple()`` within ``list()`` or ``tuple()``
* ``set()`` within ``set``
* Add ``C415`` rule that checks for unnecessary reversal of an iterable via
subscript within ``reversed()``, ``set()``, or ``sorted()``.
* Add ``C416`` rule that checks for unnecessary list or set comprehensions that
can be rewritten using ``list()`` or ``set()``.

3.0.1

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

* Fix version display on ``flake8 --version`` (removing dependency on
``cached-property``). Thanks to Jon Dufresne.

3.0.0

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

* Update Flake8 support to 3.0+ only. 3.0.0 was released in 2016 and the plugin
hasn't been tested with it since.

2.3.0

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

* Converted setuptools metadata to configuration file. This meant removing the
``__version__`` attribute from the package. If you want to inspect the
installed version, use
``importlib.metadata.version("flake8-comprehensions")``
(`docs <https://docs.python.org/3.8/library/importlib.metadata.html#distribution-versions>`__ /
`backport <https://pypi.org/project/importlib-metadata/>`__).
* Add dependencies on ``cached-property`` and ``importlib-metadata``.
* Fix false negatives in ``C407`` for cases when ``enumerate`` and ``sum()``
are passed more than one argument.

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

Page 5 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.