- Update to 3.10.1
* Fix false positive in rules C402 and C404 for dict() calls with
keyword arguments.
- 3.10.0 (2022-05-19)
* Add rule C417 which recommends rewriting use of map() with lambda
to an equivalent generator expression or comprehension.
- 3.9.0 (2022-05-11)
* Support Python 3.11.
- 3.8.0 (2022-01-10)
* Drop Python 3.6 support.
* Remove upper bound on Flake8 version.
- 3.7.0 (2021-10-11)
* Support Flake8 4.
- 3.6.1 (2021-08-16)
* Fix type hint for tree argument.
- 3.6.0 (2021-08-13)
* Add type hints.
- 3.5.0 (2021-05-10)
* Support Python 3.10.
* Stop distributing tests to reduce package size. Tests are not
intended to be run outside of the tox setup in the repository.
Repackagers can use GitHub's tarballs per tag.
OBS-URL: https://build.opensuse.org/request/show/1071061
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-comprehensions?expand=0&rev=16
- 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).
OBS-URL: https://build.opensuse.org/request/show/879887
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-flake8-comprehensions?expand=0&rev=6
- 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).
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-comprehensions?expand=0&rev=12