commit python-flake8-comprehensions for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-flake8-comprehensions for openSUSE:Factory checked in at 2024-07-01 11:22:14 Comparing /work/SRC/openSUSE:Factory/python-flake8-comprehensions (Old) and /work/SRC/openSUSE:Factory/.python-flake8-comprehensions.new.18349 (New) Package is "python-flake8-comprehensions" Mon Jul 1 11:22:14 2024 rev:15 rq:1184214 version:3.15.0 Changes: --- /work/SRC/openSUSE:Factory/python-flake8-comprehensions/python-flake8-comprehensions.changes 2024-02-29 21:50:37.278575809 +0100 +++ /work/SRC/openSUSE:Factory/.python-flake8-comprehensions.new.18349/python-flake8-comprehensions.changes 2024-07-01 11:23:05.448994367 +0200 @@ -1,0 +2,7 @@ +Mon Jul 1 07:37:44 UTC 2024 - Dirk Müller + +- update to 3.15.0: + * Add rule C420 to check for dict comprehensions with constant +values, encouraging replacement with dict.fromkeys(). + +--- Old: flake8-comprehensions-3.14.0-gh.tar.gz New: flake8-comprehensions-3.15.0-gh.tar.gz Other differences: -- ++ python-flake8-comprehensions.spec ++ --- /var/tmp/diff_new_pack.OUf7wb/_old 2024-07-01 11:23:05.957012753 +0200 +++ /var/tmp/diff_new_pack.OUf7wb/_new 2024-07-01 11:23:05.957012753 +0200 @@ -17,7 +17,7 @@ Name: python-flake8-comprehensions -Version:3.14.0 +Version:3.15.0 Release:0 Summary:A flake8 plugin to help you write better list/set/dict comprehensions License:ISC ++ flake8-comprehensions-3.14.0-gh.tar.gz -> flake8-comprehensions-3.15.0-gh.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-comprehensions-3.14.0/.github/FUNDING.yml new/flake8-comprehensions-3.15.0/.github/FUNDING.yml --- old/flake8-comprehensions-3.14.0/.github/FUNDING.yml1970-01-01 01:00:00.0 +0100 +++ new/flake8-comprehensions-3.15.0/.github/FUNDING.yml2024-06-30 00:29:44.0 +0200 @@ -0,0 +1,3 @@ +tidelift: pypi/flake8-comprehensions +custom: +- "https://adamj.eu/books/; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-comprehensions-3.14.0/.github/dependabot.yml new/flake8-comprehensions-3.15.0/.github/dependabot.yml --- old/flake8-comprehensions-3.14.0/.github/dependabot.yml 2023-07-10 14:46:03.0 +0200 +++ new/flake8-comprehensions-3.15.0/.github/dependabot.yml 2024-06-30 00:29:44.0 +0200 @@ -2,5 +2,9 @@ updates: - package-ecosystem: github-actions directory: "/" + groups: +"GitHub Actions": + patterns: + - "*" schedule: interval: weekly diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-comprehensions-3.14.0/.github/workflows/main.yml new/flake8-comprehensions-3.15.0/.github/workflows/main.yml --- old/flake8-comprehensions-3.14.0/.github/workflows/main.yml 2023-07-10 14:46:03.0 +0200 +++ new/flake8-comprehensions-3.15.0/.github/workflows/main.yml 2024-06-30 00:29:44.0 +0200 @@ -25,9 +25,9 @@ - '3.12' steps: -- uses: actions/checkout@v3 +- uses: actions/checkout@v4 -- uses: actions/setup-python@v4 +- uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} allow-prereleases: true diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-comprehensions-3.14.0/.pre-commit-config.yaml new/flake8-comprehensions-3.15.0/.pre-commit-config.yaml --- old/flake8-comprehensions-3.14.0/.pre-commit-config.yaml2023-07-10 14:46:03.0 +0200 +++ new/flake8-comprehensions-3.15.0/.pre-commit-config.yaml2024-06-30 00:29:44.0 +0200 @@ -1,9 +1,9 @@ default_language_version: - python: python3.11 + python: python3.12 repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.6.0 hooks: - id: check-added-large-files - id: check-case-conflict @@ -14,62 +14,49 @@ - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/tox-dev/pyproject-fmt - rev: 0.12.1 + rev: 2.1.3 hooks: - id: pyproject-fmt -- repo: https://github.com/asottile/setup-cfg-fmt - rev: v2.4.0 - hooks: - - id: setup-cfg-fmt -args: -- --include-version-classifiers -- --max-py-version -- '3.12' - repo: https://github.com/tox-dev/tox-ini-fmt rev: 1.3.1 hooks: - id: tox-ini-fmt - repo: https://github.com/rstcheck/rstcheck - rev: v6.1.2 + rev: v6.2.0 hooks: - id: rstcheck additional_dependencies: -
commit python-flake8-comprehensions for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-flake8-comprehensions for openSUSE:Factory checked in at 2024-02-29 21:50:18 Comparing /work/SRC/openSUSE:Factory/python-flake8-comprehensions (Old) and /work/SRC/openSUSE:Factory/.python-flake8-comprehensions.new.1770 (New) Package is "python-flake8-comprehensions" Thu Feb 29 21:50:18 2024 rev:14 rq:1153128 version:3.14.0 Changes: --- /work/SRC/openSUSE:Factory/python-flake8-comprehensions/python-flake8-comprehensions.changes 2023-07-12 17:27:34.522595853 +0200 +++ /work/SRC/openSUSE:Factory/.python-flake8-comprehensions.new.1770/python-flake8-comprehensions.changes 2024-02-29 21:50:37.278575809 +0100 @@ -1,0 +2,6 @@ +Tue Feb 27 19:41:44 UTC 2024 - Ben Greiner + +- Add flake8-comprehensions-pr559-notnormalized.patch + gh#adamchainz/flake8-comprehensions#559 + +--- Old: 3.14.0.tar.gz New: flake8-comprehensions-3.14.0-gh.tar.gz flake8-comprehensions-pr559-notnormalized.patch BETA DEBUG BEGIN: New: - Add flake8-comprehensions-pr559-notnormalized.patch gh#adamchainz/flake8-comprehensions#559 BETA DEBUG END: Other differences: -- ++ python-flake8-comprehensions.spec ++ --- /var/tmp/diff_new_pack.IVkvvQ/_old 2024-02-29 21:50:37.906598961 +0100 +++ /var/tmp/diff_new_pack.IVkvvQ/_new 2024-02-29 21:50:37.910599109 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-flake8-comprehensions # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,7 +16,6 @@ # -%define skip_python2 1 Name: python-flake8-comprehensions Version:3.14.0 Release:0 @@ -24,7 +23,9 @@ License:ISC Group: Development/Languages/Python URL:https://github.com/adamchainz/flake8-comprehensions -Source: https://github.com/adamchainz/flake8-comprehensions/archive/%{version}.tar.gz +Source: https://github.com/adamchainz/flake8-comprehensions/archive/%{version}.tar.gz#/flake8-comprehensions-%{version}-gh.tar.gz +# PATCH-FIX-UPSTREAM flake8-comprehensions-pr559-notnormalized.patch gh#adamchainz/flake8-comprehensions#559 +Patch0: flake8-comprehensions-pr559-notnormalized.patch BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} @@ -45,7 +46,7 @@ A flake8 plugin that helps you write better list/set/dict comprehensions. %prep -%setup -q -n flake8-comprehensions-%{version} +%autosetup -p1 -n flake8-comprehensions-%{version} %build %pyproject_wheel @@ -61,5 +62,5 @@ %license LICENSE %doc README.rst %{python_sitelib}/flake8_comprehensions -%{python_sitelib}/flake8_comprehensions-%{version}*-info +%{python_sitelib}/flake8_comprehensions-%{version}.dist-info ++ flake8-comprehensions-pr559-notnormalized.patch ++ diff -ur flake8-comprehensions-3.14.0.orig/tests/test_flake8_comprehensions.py flake8-comprehensions-3.14.0/tests/test_flake8_comprehensions.py --- flake8-comprehensions-3.14.0.orig/tests/test_flake8_comprehensions.py 2024-02-27 20:40:03.434499715 +0100 +++ flake8-comprehensions-3.14.0/tests/test_flake8_comprehensions.py 2024-02-27 20:40:14.791498740 +0100 @@ -22,7 +22,7 @@ def test_version(flake8_path): result = flake8_path.run_flake8(["--version"]) -version_regex = r"flake8-comprehensions:( )*" + version("flake8-comprehensions") +version_regex = r"flake8[-_]comprehensions:( )*" + version("flake8-comprehensions") unwrapped = "".join(result.out_lines) assert re.search(version_regex, unwrapped)
commit python-flake8-comprehensions for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-flake8-comprehensions for openSUSE:Factory checked in at 2023-07-12 17:27:09 Comparing /work/SRC/openSUSE:Factory/python-flake8-comprehensions (Old) and /work/SRC/openSUSE:Factory/.python-flake8-comprehensions.new.8922 (New) Package is "python-flake8-comprehensions" Wed Jul 12 17:27:09 2023 rev:13 rq:1098178 version:3.14.0 Changes: --- /work/SRC/openSUSE:Factory/python-flake8-comprehensions/python-flake8-comprehensions.changes 2023-06-21 22:39:44.814330635 +0200 +++ /work/SRC/openSUSE:Factory/.python-flake8-comprehensions.new.8922/python-flake8-comprehensions.changes 2023-07-12 17:27:34.522595853 +0200 @@ -1,0 +2,6 @@ +Tue Jul 11 13:33:29 UTC 2023 - Dirk Müller + +- update to 3.14.0: + * Drop Python 3.7 support. + +--- Old: 3.13.0.tar.gz New: 3.14.0.tar.gz Other differences: -- ++ python-flake8-comprehensions.spec ++ --- /var/tmp/diff_new_pack.3zXII1/_old 2023-07-12 17:27:35.614603412 +0200 +++ /var/tmp/diff_new_pack.3zXII1/_new 2023-07-12 17:27:35.618603439 +0200 @@ -18,7 +18,7 @@ %define skip_python2 1 Name: python-flake8-comprehensions -Version:3.13.0 +Version:3.14.0 Release:0 Summary:A flake8 plugin to help you write better list/set/dict comprehensions License:ISC ++ 3.13.0.tar.gz -> 3.14.0.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-comprehensions-3.13.0/.github/workflows/main.yml new/flake8-comprehensions-3.14.0/.github/workflows/main.yml --- old/flake8-comprehensions-3.13.0/.github/workflows/main.yml 2023-06-15 16:02:00.0 +0200 +++ new/flake8-comprehensions-3.14.0/.github/workflows/main.yml 2023-07-10 14:46:03.0 +0200 @@ -18,7 +18,6 @@ strategy: matrix: python-version: -- 3.7 - 3.8 - 3.9 - '3.10' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-comprehensions-3.13.0/.pre-commit-config.yaml new/flake8-comprehensions-3.14.0/.pre-commit-config.yaml --- old/flake8-comprehensions-3.13.0/.pre-commit-config.yaml2023-06-15 16:02:00.0 +0200 +++ new/flake8-comprehensions-3.14.0/.pre-commit-config.yaml2023-07-10 14:46:03.0 +0200 @@ -14,11 +14,11 @@ - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/tox-dev/pyproject-fmt - rev: 0.11.2 + rev: 0.12.1 hooks: - id: pyproject-fmt - repo: https://github.com/asottile/setup-cfg-fmt - rev: v2.3.0 + rev: v2.4.0 hooks: - id: setup-cfg-fmt args: @@ -26,7 +26,7 @@ - --max-py-version - '3.12' - repo: https://github.com/tox-dev/tox-ini-fmt - rev: 1.3.0 + rev: 1.3.1 hooks: - id: tox-ini-fmt - repo: https://github.com/rstcheck/rstcheck @@ -36,26 +36,26 @@ additional_dependencies: - tomli==2.0.1 - repo: https://github.com/asottile/pyupgrade - rev: v3.6.0 + rev: v3.8.0 hooks: - id: pyupgrade -args: [--py37-plus] +args: [--py38-plus] - repo: https://github.com/psf/black rev: 23.3.0 hooks: - id: black - repo: https://github.com/adamchainz/blacken-docs - rev: 1.13.0 + rev: 1.14.0 hooks: - id: blacken-docs additional_dependencies: - black==23.1.0 - repo: https://github.com/asottile/reorder-python-imports - rev: v3.9.0 + rev: v3.10.0 hooks: - id: reorder-python-imports args: -- --py37-plus +- --py38-plus - --application-directories - .:example:src - --add-import @@ -70,6 +70,6 @@ - flake8-tidy-imports - flake8-typing-imports - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.3.0 + rev: v1.4.1 hooks: - id: mypy diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-comprehensions-3.13.0/CHANGELOG.rst new/flake8-comprehensions-3.14.0/CHANGELOG.rst --- old/flake8-comprehensions-3.13.0/CHANGELOG.rst 2023-06-15 16:02:00.0 +0200 +++ new/flake8-comprehensions-3.14.0/CHANGELOG.rst 2023-07-10 14:46:03.0 +0200 @@ -2,6 +2,11 @@ Changelog = +3.14.0 (2023-07-10) +--- + +* Drop Python 3.7 support. + 3.13.0 (2023-06-15) --- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-comprehensions-3.13.0/MANIFEST.in new/flake8-comprehensions-3.14.0/MANIFEST.in --- old/flake8-comprehensions-3.13.0/MANIFEST.in2023-06-15 16:02:00.0 +0200 +++
commit python-flake8-comprehensions for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-flake8-comprehensions for openSUSE:Factory checked in at 2023-06-21 22:38:57 Comparing /work/SRC/openSUSE:Factory/python-flake8-comprehensions (Old) and /work/SRC/openSUSE:Factory/.python-flake8-comprehensions.new.15902 (New) Package is "python-flake8-comprehensions" Wed Jun 21 22:38:57 2023 rev:12 rq:1094121 version:3.13.0 Changes: --- /work/SRC/openSUSE:Factory/python-flake8-comprehensions/python-flake8-comprehensions.changes 2023-05-05 15:58:55.888651075 +0200 +++ /work/SRC/openSUSE:Factory/.python-flake8-comprehensions.new.15902/python-flake8-comprehensions.changes 2023-06-21 22:39:44.814330635 +0200 @@ -1,0 +2,6 @@ +Tue Jun 20 16:18:26 UTC 2023 - Dirk Müller + +- update to 3.13.0: + * Support Python 3.12. + +--- Old: 3.12.0.tar.gz New: 3.13.0.tar.gz Other differences: -- ++ python-flake8-comprehensions.spec ++ --- /var/tmp/diff_new_pack.nhEusE/_old 2023-06-21 22:39:45.310333620 +0200 +++ /var/tmp/diff_new_pack.nhEusE/_new 2023-06-21 22:39:45.310333620 +0200 @@ -18,7 +18,7 @@ %define skip_python2 1 Name: python-flake8-comprehensions -Version:3.12.0 +Version:3.13.0 Release:0 Summary:A flake8 plugin to help you write better list/set/dict comprehensions License:ISC ++ 3.12.0.tar.gz -> 3.13.0.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-comprehensions-3.12.0/.github/workflows/main.yml new/flake8-comprehensions-3.13.0/.github/workflows/main.yml --- old/flake8-comprehensions-3.12.0/.github/workflows/main.yml 2023-04-13 11:27:27.0 +0200 +++ new/flake8-comprehensions-3.13.0/.github/workflows/main.yml 2023-06-15 16:02:00.0 +0200 @@ -23,6 +23,7 @@ - 3.9 - '3.10' - '3.11' +- '3.12' steps: - uses: actions/checkout@v3 @@ -30,6 +31,7 @@ - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} +allow-prereleases: true cache: pip cache-dependency-path: 'requirements/*.txt' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-comprehensions-3.12.0/.pre-commit-config.yaml new/flake8-comprehensions-3.13.0/.pre-commit-config.yaml --- old/flake8-comprehensions-3.12.0/.pre-commit-config.yaml2023-04-13 11:27:27.0 +0200 +++ new/flake8-comprehensions-3.13.0/.pre-commit-config.yaml2023-06-15 16:02:00.0 +0200 @@ -14,15 +14,17 @@ - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/tox-dev/pyproject-fmt - rev: 0.9.2 + rev: 0.11.2 hooks: - id: pyproject-fmt - repo: https://github.com/asottile/setup-cfg-fmt - rev: v2.2.0 + rev: v2.3.0 hooks: - id: setup-cfg-fmt args: - --include-version-classifiers +- --max-py-version +- '3.12' - repo: https://github.com/tox-dev/tox-ini-fmt rev: 1.3.0 hooks: @@ -34,7 +36,7 @@ additional_dependencies: - tomli==2.0.1 - repo: https://github.com/asottile/pyupgrade - rev: v3.3.1 + rev: v3.6.0 hooks: - id: pyupgrade args: [--py37-plus] @@ -48,7 +50,7 @@ - id: blacken-docs additional_dependencies: - black==23.1.0 -- repo: https://github.com/asottile/reorder_python_imports +- repo: https://github.com/asottile/reorder-python-imports rev: v3.9.0 hooks: - id: reorder-python-imports @@ -68,6 +70,6 @@ - flake8-tidy-imports - flake8-typing-imports - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.2.0 + rev: v1.3.0 hooks: - id: mypy diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-comprehensions-3.12.0/CHANGELOG.rst new/flake8-comprehensions-3.13.0/CHANGELOG.rst --- old/flake8-comprehensions-3.12.0/CHANGELOG.rst 2023-04-13 11:27:27.0 +0200 +++ new/flake8-comprehensions-3.13.0/CHANGELOG.rst 2023-06-15 16:02:00.0 +0200 @@ -2,6 +2,11 @@ Changelog = +3.13.0 (2023-06-15) +--- + +* Support Python 3.12. + 3.12.0 (2023-04-13) --- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-comprehensions-3.12.0/README.rst new/flake8-comprehensions-3.13.0/README.rst --- old/flake8-comprehensions-3.12.0/README.rst 2023-04-13 11:27:27.0 +0200 +++ new/flake8-comprehensions-3.13.0/README.rst 2023-06-15 16:02:00.0 +0200 @@ -20,7 +20,7 @@ Requirements -Python 3.7 to 3.11
commit python-flake8-comprehensions for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-flake8-comprehensions for openSUSE:Factory checked in at 2023-05-05 15:58:32 Comparing /work/SRC/openSUSE:Factory/python-flake8-comprehensions (Old) and /work/SRC/openSUSE:Factory/.python-flake8-comprehensions.new.1533 (New) Package is "python-flake8-comprehensions" Fri May 5 15:58:32 2023 rev:11 rq:1084906 version:3.12.0 Changes: --- /work/SRC/openSUSE:Factory/python-flake8-comprehensions/python-flake8-comprehensions.changes 2023-04-13 15:30:49.775762514 +0200 +++ /work/SRC/openSUSE:Factory/.python-flake8-comprehensions.new.1533/python-flake8-comprehensions.changes 2023-05-05 15:58:55.888651075 +0200 @@ -1,0 +2,5 @@ +Thu May 4 23:19:48 UTC 2023 - Dirk Müller + +- drop unmaintained and unused pytest-flake8dir + +--- Other differences: -- ++ python-flake8-comprehensions.spec ++ --- /var/tmp/diff_new_pack.8F2Yo6/_old 2023-05-05 15:58:56.388653940 +0200 +++ /var/tmp/diff_new_pack.8F2Yo6/_new 2023-05-05 15:58:56.392653963 +0200 @@ -35,8 +35,8 @@ # SECTION test requirements BuildRequires: %{python_module flake8} BuildRequires: %{python_module pytest-flake8-path} -BuildRequires: %{python_module pytest-flake8dir} BuildRequires: %{python_module pytest-randomly} +BuildRequires: %{python_module pytest-xdist} BuildRequires: %{python_module pytest} # /SECTION %python_subpackages @@ -55,7 +55,7 @@ %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%pytest +%pytest %{?jobs: -n %jobs} %files %{python_files} %license LICENSE
commit python-flake8-comprehensions for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-flake8-comprehensions for openSUSE:Factory checked in at 2023-04-13 15:30:49 Comparing /work/SRC/openSUSE:Factory/python-flake8-comprehensions (Old) and /work/SRC/openSUSE:Factory/.python-flake8-comprehensions.new.19717 (New) Package is "python-flake8-comprehensions" Thu Apr 13 15:30:49 2023 rev:10 rq:1079170 version:3.12.0 Changes: --- /work/SRC/openSUSE:Factory/python-flake8-comprehensions/python-flake8-comprehensions.changes 2023-03-21 17:44:58.250817688 +0100 +++ /work/SRC/openSUSE:Factory/.python-flake8-comprehensions.new.19717/python-flake8-comprehensions.changes 2023-04-13 15:30:49.775762514 +0200 @@ -1,0 +2,9 @@ +Thu Apr 13 12:27:04 UTC 2023 - Dirk Müller + +- 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()``. + +--- Old: 3.11.1.tar.gz New: 3.12.0.tar.gz Other differences: -- ++ python-flake8-comprehensions.spec ++ --- /var/tmp/diff_new_pack.rmxl14/_old 2023-04-13 15:30:50.339765746 +0200 +++ /var/tmp/diff_new_pack.rmxl14/_new 2023-04-13 15:30:50.343765769 +0200 @@ -18,7 +18,7 @@ %define skip_python2 1 Name: python-flake8-comprehensions -Version:3.11.1 +Version:3.12.0 Release:0 Summary:A flake8 plugin to help you write better list/set/dict comprehensions License:ISC ++ 3.11.1.tar.gz -> 3.12.0.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-comprehensions-3.11.1/.pre-commit-config.yaml new/flake8-comprehensions-3.12.0/.pre-commit-config.yaml --- old/flake8-comprehensions-3.11.1/.pre-commit-config.yaml2023-03-21 15:28:53.0 +0100 +++ new/flake8-comprehensions-3.12.0/.pre-commit-config.yaml2023-04-13 11:27:27.0 +0200 @@ -23,6 +23,10 @@ - id: setup-cfg-fmt args: - --include-version-classifiers +- repo: https://github.com/tox-dev/tox-ini-fmt + rev: 1.3.0 + hooks: + - id: tox-ini-fmt - repo: https://github.com/rstcheck/rstcheck rev: v6.1.2 hooks: @@ -35,7 +39,7 @@ - id: pyupgrade args: [--py37-plus] - repo: https://github.com/psf/black - rev: 23.1.0 + rev: 23.3.0 hooks: - id: black - repo: https://github.com/adamchainz/blacken-docs @@ -64,6 +68,6 @@ - flake8-tidy-imports - flake8-typing-imports - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.1.1 + rev: v1.2.0 hooks: - id: mypy diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-comprehensions-3.11.1/CHANGELOG.rst new/flake8-comprehensions-3.12.0/CHANGELOG.rst --- old/flake8-comprehensions-3.11.1/CHANGELOG.rst 2023-03-21 15:28:53.0 +0100 +++ new/flake8-comprehensions-3.12.0/CHANGELOG.rst 2023-04-13 11:27:27.0 +0200 @@ -2,6 +2,13 @@ Changelog = +3.12.0 (2023-04-13) +--- + +* 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()``. + 3.11.1 (2023-03-21) --- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-comprehensions-3.11.1/README.rst new/flake8-comprehensions-3.12.0/README.rst --- old/flake8-comprehensions-3.11.1/README.rst 2023-03-21 15:28:53.0 +0100 +++ new/flake8-comprehensions-3.12.0/README.rst 2023-04-13 11:27:27.0 +0200 @@ -113,7 +113,7 @@ Rules: * C409 Unnecessary passed to tuple() - . -* C410 Unnecessary ``list passed to list() - . +* C410 Unnecessary list passed to list() - . Where is either: @@ -207,3 +207,23 @@ * Rewrite ``list(map(lambda num: num * 2, nums))`` to ``[num * 2 for num in nums]`` * Rewrite ``set(map(lambda num: num % 2 == 0, nums))`` to ``{num % 2 == 0 for num in nums}`` * Rewrite ``dict(map(lambda v: (v, v ** 2), values))`` to ``{v : v ** 2 for v in values}`` + +C418: Unnecessary passed to dict() - remove the outer call to dict() +-- + +It's unnecessary to use a ``dict`` around a dict literal or dict comprehension, since either syntax already constructs a dict. +For example: + +* Rewrite ``dict({})`` as ``{}`` +* Rewrite ``dict({"a": 1})`` as ``{"a": 1}`` + +C419 Unnecessary list comprehension in \() prevents
commit python-flake8-comprehensions for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-flake8-comprehensions for openSUSE:Factory checked in at 2023-03-21 17:44:46 Comparing /work/SRC/openSUSE:Factory/python-flake8-comprehensions (Old) and /work/SRC/openSUSE:Factory/.python-flake8-comprehensions.new.31432 (New) Package is "python-flake8-comprehensions" Tue Mar 21 17:44:46 2023 rev:9 rq:1073581 version:3.11.1 Changes: --- /work/SRC/openSUSE:Factory/python-flake8-comprehensions/python-flake8-comprehensions.changes 2023-03-14 18:17:10.763903296 +0100 +++ /work/SRC/openSUSE:Factory/.python-flake8-comprehensions.new.31432/python-flake8-comprehensions.changes 2023-03-21 17:44:58.250817688 +0100 @@ -1,0 +2,7 @@ +Tue Mar 21 15:37:43 UTC 2023 - Dirk Müller + +- update to 3.11.1: + * Fix false positives in C406 âunnecessary dict literalâ. + * Expand C416 to ``dict`` comprehensions. + +--- Old: 3.10.1.tar.gz New: 3.11.1.tar.gz Other differences: -- ++ python-flake8-comprehensions.spec ++ --- /var/tmp/diff_new_pack.3tw9jh/_old 2023-03-21 17:44:58.782820201 +0100 +++ /var/tmp/diff_new_pack.3tw9jh/_new 2023-03-21 17:44:58.790820239 +0100 @@ -18,7 +18,7 @@ %define skip_python2 1 Name: python-flake8-comprehensions -Version:3.10.1 +Version:3.11.1 Release:0 Summary:A flake8 plugin to help you write better list/set/dict comprehensions License:ISC ++ 3.10.1.tar.gz -> 3.11.1.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-comprehensions-3.10.1/.github/workflows/main.yml new/flake8-comprehensions-3.11.1/.github/workflows/main.yml --- old/flake8-comprehensions-3.10.1/.github/workflows/main.yml 2022-10-30 00:52:18.0 +0200 +++ new/flake8-comprehensions-3.11.1/.github/workflows/main.yml 2023-03-21 15:28:53.0 +0100 @@ -36,7 +36,7 @@ - name: Install dependencies run: | python -m pip install --upgrade pip setuptools wheel -python -m pip install --upgrade tox tox-py +python -m pip install --upgrade 'tox>=4.0.0rc3' - name: Run tox targets for ${{ matrix.python-version }} - run: tox --py current + run: tox run -f py$(echo ${{ matrix.python-version }} | tr -d .) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-comprehensions-3.10.1/.gitignore new/flake8-comprehensions-3.11.1/.gitignore --- old/flake8-comprehensions-3.10.1/.gitignore 2022-10-30 00:52:18.0 +0200 +++ new/flake8-comprehensions-3.11.1/.gitignore 2023-03-21 15:28:53.0 +0100 @@ -1,60 +1,7 @@ -# Byte-compiled / optimized / DLL files -__pycache__/ -*.py[cod] -*$py.class - -# C extensions -*.so - -# Distribution / packaging -.Python -env/ -build/ -develop-eggs/ -dist/ -downloads/ -eggs/ -.eggs/ -lib/ -lib64/ -parts/ -sdist/ -var/ *.egg-info/ -.installed.cfg -*.egg - -# PyInstaller -# Usually these files are written by a python script from a template -# before PyInstaller builds the exe, so as to inject date/other infos into it. -*.manifest -*.spec - -# Installer logs -pip-log.txt -pip-delete-this-directory.txt - -# Unit test / coverage reports -htmlcov/ -.tox/ -.coverage -.coverage.* -.cache -nosetests.xml -coverage.xml -*,cover -.hypothesis/ -.pytest_cache - -# Translations -*.mo -*.pot - -# Django stuff: -*.log - -# Sphinx documentation -docs/_build/ - -# PyBuilder -target/ +*.pyc +/.coverage +/.coverage.* +/.tox +/build/ +/dist/ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-comprehensions-3.10.1/.pre-commit-config.yaml new/flake8-comprehensions-3.11.1/.pre-commit-config.yaml --- old/flake8-comprehensions-3.10.1/.pre-commit-config.yaml2022-10-30 00:52:18.0 +0200 +++ new/flake8-comprehensions-3.11.1/.pre-commit-config.yaml2023-03-21 15:28:53.0 +0100 @@ -1,9 +1,9 @@ default_language_version: - python: python3.10 + python: python3.11 repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v4.4.0 hooks: - id: check-added-large-files - id: check-case-conflict @@ -13,27 +13,49 @@ - id: check-toml - id: end-of-file-fixer - id: trailing-whitespace +- repo: https://github.com/tox-dev/pyproject-fmt + rev: 0.9.2 + hooks: + - id: pyproject-fmt +- repo: https://github.com/asottile/setup-cfg-fmt + rev: v2.2.0 + hooks: + - id: setup-cfg-fmt +args: +- --include-version-classifiers +- repo: https://github.com/rstcheck/rstcheck + rev: v6.1.2 + hooks: + - id: rstcheck +
commit python-flake8-comprehensions for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-flake8-comprehensions for openSUSE:Factory checked in at 2023-03-14 18:17:02 Comparing /work/SRC/openSUSE:Factory/python-flake8-comprehensions (Old) and /work/SRC/openSUSE:Factory/.python-flake8-comprehensions.new.31432 (New) Package is "python-flake8-comprehensions" Tue Mar 14 18:17:02 2023 rev:8 rq:1071258 version:3.10.1 Changes: --- /work/SRC/openSUSE:Factory/python-flake8-comprehensions/python-flake8-comprehensions.changes 2021-03-20 21:25:43.437159029 +0100 +++ /work/SRC/openSUSE:Factory/.python-flake8-comprehensions.new.31432/python-flake8-comprehensions.changes 2023-03-14 18:17:10.763903296 +0100 @@ -1,0 +2,26 @@ +Thu Mar 9 09:48:27 UTC 2023 - Daniel Garcia + +- 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. + +--- Old: 3.4.0.tar.gz New: 3.10.1.tar.gz Other differences: -- ++ python-flake8-comprehensions.spec ++ --- /var/tmp/diff_new_pack.DHXBvj/_old 2023-03-14 18:17:11.607907807 +0100 +++ /var/tmp/diff_new_pack.DHXBvj/_new 2023-03-14 18:17:11.619907871 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-flake8-comprehensions # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,24 +16,27 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-flake8-comprehensions -Version:3.4.0 +Version:3.10.1 Release:0 Summary:A flake8 plugin to help you write better list/set/dict comprehensions License:ISC Group: Development/Languages/Python URL:https://github.com/adamchainz/flake8-comprehensions Source: https://github.com/adamchainz/flake8-comprehensions/archive/%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-flake8 BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module flake8} +BuildRequires: %{python_module pytest-flake8-path} BuildRequires: %{python_module pytest-flake8dir} +BuildRequires: %{python_module pytest-randomly} BuildRequires: %{python_module pytest} # /SECTION %python_subpackages @@ -45,10 +48,10 @@ %setup -q -n flake8-comprehensions-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -57,8 +60,7 @@ %files %{python_files} %license LICENSE %doc README.rst -%{python_sitelib}/flake8_comprehensions.py -%{python_sitelib}/flake8_comprehensions-%{version}-py*.egg-info -%pycache_only %{python_sitelib}/__pycache__ +%{python_sitelib}/flake8_comprehensions +%{python_sitelib}/flake8_comprehensions-%{version}*-info %changelog ++ 3.4.0.tar.gz -> 3.10.1.tar.gz ++ 3445 lines of diff (skipped)
commit python-flake8-comprehensions for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-flake8-comprehensions for openSUSE:Factory checked in at 2021-03-20 21:25:43 Comparing /work/SRC/openSUSE:Factory/python-flake8-comprehensions (Old) and /work/SRC/openSUSE:Factory/.python-flake8-comprehensions.new.2401 (New) Package is "python-flake8-comprehensions" Sat Mar 20 21:25:43 2021 rev:7 rq:880054 version:3.4.0 Changes: --- /work/SRC/openSUSE:Factory/python-flake8-comprehensions/python-flake8-comprehensions.changes 2021-03-18 22:55:22.287558768 +0100 +++ /work/SRC/openSUSE:Factory/.python-flake8-comprehensions.new.2401/python-flake8-comprehensions.changes 2021-03-20 21:25:43.437159029 +0100 @@ -1,0 +2,6 @@ +Fri Mar 19 08:36:26 UTC 2021 - Matej Cepl + +- Don't skip test_C416_fail_1_list, because it has been fixed in + python-pytest-flake8dir. + +--- Other differences: -- ++ python-flake8-comprehensions.spec ++ --- /var/tmp/diff_new_pack.mpUMS2/_old 2021-03-20 21:25:43.873159540 +0100 +++ /var/tmp/diff_new_pack.mpUMS2/_new 2021-03-20 21:25:43.877159545 +0100 @@ -52,8 +52,7 @@ %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -# gh#adamchainz/flake8-comprehensions#313 -%pytest -k 'not test_C416_fail_1_list' +%pytest %files %{python_files} %license LICENSE
commit python-flake8-comprehensions for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-flake8-comprehensions for openSUSE:Factory checked in at 2021-03-18 22:55:19 Comparing /work/SRC/openSUSE:Factory/python-flake8-comprehensions (Old) and /work/SRC/openSUSE:Factory/.python-flake8-comprehensions.new.2401 (New) Package is "python-flake8-comprehensions" Thu Mar 18 22:55:19 2021 rev:6 rq:879887 version:3.4.0 Changes: --- /work/SRC/openSUSE:Factory/python-flake8-comprehensions/python-flake8-comprehensions.changes 2020-07-14 07:59:30.341831616 +0200 +++ /work/SRC/openSUSE:Factory/.python-flake8-comprehensions.new.2401/python-flake8-comprehensions.changes 2021-03-18 22:55:22.287558768 +0100 @@ -1,0 +2,22 @@ +Thu Mar 18 12:59:11 UTC 2021 - Matej Cepl + +- Update to 3.4.0: + - Remove rules C407 (Unnecessary comprehension +- can take a generator) and C412 (Unnecessary + 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). + +--- Old: 3.2.3.tar.gz New: 3.4.0.tar.gz Other differences: -- ++ python-flake8-comprehensions.spec ++ --- /var/tmp/diff_new_pack.dQo364/_old 2021-03-18 22:55:22.915559446 +0100 +++ /var/tmp/diff_new_pack.dQo364/_new 2021-03-18 22:55:22.919559450 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-flake8-comprehensions # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-flake8-comprehensions -Version:3.2.3 +Version:3.4.0 Release:0 Summary:A flake8 plugin to help you write better list/set/dict comprehensions License:ISC @@ -52,7 +52,8 @@ %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%pytest +# gh#adamchainz/flake8-comprehensions#313 +%pytest -k 'not test_C416_fail_1_list' %files %{python_files} %license LICENSE ++ 3.2.3.tar.gz -> 3.4.0.tar.gz ++ 2607 lines of diff (skipped)