11 Commits

Author SHA256 Message Date
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()``.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-comprehensions?expand=0&rev=20
2023-04-13 12:27:19 +00:00
00311cfbf6 - update to 3.11.1:
* Fix false positives in C406 “unnecessary dict literal”.
  * Expand C416 to ``dict`` comprehensions.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-comprehensions?expand=0&rev=18
2023-03-21 15:42:45 +00:00
f90f874ae7 Accepting request 1071061 from home:dgarcia:branches:devel:languages:python
- 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
2023-03-13 23:12:48 +00:00
a80d527aee Accepting request 880053 from home:mcepl:branches:devel:languages:python:pytest
- Don't skip test_C416_fail_1_list, because it has been fixed in
  python-pytest-flake8dir.

OBS-URL: https://build.opensuse.org/request/show/880053
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-comprehensions?expand=0&rev=14
2021-03-19 08:44:07 +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).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-comprehensions?expand=0&rev=12
2021-03-18 13:05:37 +00:00
Tomáš Chvátal
ee654c2c50 Accepting request 820449 from home:apersaud:branches:devel:languages:python
update to latest version

OBS-URL: https://build.opensuse.org/request/show/820449
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-comprehensions?expand=0&rev=10
2020-07-12 06:37:01 +00:00
Tomáš Chvátal
366dcb1e00 Accepting request 772518 from home:apersaud:branches:devel:languages:python
update to latest version

OBS-URL: https://build.opensuse.org/request/show/772518
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-comprehensions?expand=0&rev=8
2020-02-09 18:32:44 +00:00
Tomáš Chvátal
5ddf72836a Accepting request 754979 from home:apersaud:branches:devel:languages:python
update to latest version

OBS-URL: https://build.opensuse.org/request/show/754979
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-comprehensions?expand=0&rev=6
2019-12-09 09:18:40 +00:00
Tomáš Chvátal
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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-comprehensions?expand=0&rev=4
2019-09-13 07:30:19 +00:00
Tomáš Chvátal
5a964713e2 - Format with spec-cleaner
- Switch to github tarball
- Run tests

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-comprehensions?expand=0&rev=2
2019-08-03 06:52:27 +00:00
Tomáš Chvátal
9782891573 Accepting request 715819 from home:a_faerber:ros
flake8-comprehensions 2.1.0, dependency of colcon

OBS-URL: https://build.opensuse.org/request/show/715819
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-comprehensions?expand=0&rev=1
2019-08-03 06:38:33 +00:00