11 Commits

Author SHA256 Message Date
5d256b290d Accepting request 1300300 from devel:languages:python
- Convert to libalternatives on SLE-16-based and newer systems only

OBS-URL: https://build.opensuse.org/request/show/1300300
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-flake8?expand=0&rev=50
2025-08-20 11:24:48 +00:00
eed053d537 - Convert to libalternatives on SLE-16-based and newer systems only
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8?expand=0&rev=104
2025-08-19 13:36:10 +00:00
89658a2bf7 Accepting request 1293763 from devel:languages:python
- update to 7.3.0:
  * pycodestyle has been updated to >= 2.4.0, < 2.5.0
  * Pyflakes has been updated to >= 2.0.0, < 2.1.0
  * Add ``paths`` to allow local plugins to exist outside of
    ``sys.path`` (See also :issue:`1067`, :issue:`1237`)
  * Copy ``setup.cfg`` files to the temporary git hook execution
    directory (See also :issue:`1299`)
  * Only skip a file if ``# flake8: noqa`` is on a line by itself
  * Provide a better user experience for broken plugins
  * Report ``E902`` when a file passed on the command line does
    not exist (See also :issue:`645`, :issue:`878`)
  * Add ``--extend-ignore`` for extending the default ``ignore``
    instead of overriding it (See also :issue:`1061`, :issue:`1180`)
  * Respect a formatter's newline setting when printing
  * Fix leaking of processes in the legacy api
  * Fix a ``SyntaxWarning`` for an invalid escape sequence
  * Fix ``DeprecationWarning`` due to import of ``abc`` classes
  * Defer ``setuptools`` import to improve flake8 startup time
  * Fix inconsistent line endings in ``FileProcessor.lines``
    when running under python 3.x

OBS-URL: https://build.opensuse.org/request/show/1293763
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-flake8?expand=0&rev=49
2025-07-17 15:17:06 +00:00
8d5c16da25 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8?expand=0&rev=102 2025-07-16 10:49:13 +00:00
c6d029b42c - update to 7.3.0:
* pycodestyle has been updated to >= 2.4.0, < 2.5.0
  * Pyflakes has been updated to >= 2.0.0, < 2.1.0
  * Add ``paths`` to allow local plugins to exist outside of
    ``sys.path`` (See also :issue:`1067`, :issue:`1237`)
  * Copy ``setup.cfg`` files to the temporary git hook execution
    directory (See also :issue:`1299`)
  * Only skip a file if ``# flake8: noqa`` is on a line by itself
  * Provide a better user experience for broken plugins
  * Report ``E902`` when a file passed on the command line does
    not exist (See also :issue:`645`, :issue:`878`)
  * Add ``--extend-ignore`` for extending the default ``ignore``
    instead of overriding it (See also :issue:`1061`, :issue:`1180`)
  * Respect a formatter's newline setting when printing
  * Fix leaking of processes in the legacy api
  * Fix a ``SyntaxWarning`` for an invalid escape sequence
  * Fix ``DeprecationWarning`` due to import of ``abc`` classes
  * Defer ``setuptools`` import to improve flake8 startup time
  * Fix inconsistent line endings in ``FileProcessor.lines``
    when running under python 3.x

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8?expand=0&rev=101
2025-07-13 12:35:04 +00:00
29db44ffc8 Accepting request 1291284 from devel:languages:python
- Convert to libalternatives

OBS-URL: https://build.opensuse.org/request/show/1291284
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-flake8?expand=0&rev=48
2025-07-09 15:26:15 +00:00
0a24adb3fa - Convert to libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8?expand=0&rev=99
2025-07-08 13:28:42 +00:00
084d6d39ff Accepting request 1269469 from devel:languages:python
- update to 7.2.0:
  * pycodestyle has been updated to >= 2.13.0, < 2.14.0
  * pyflakes has been updated to >= 3.3.0, < 3.4.0
  * Require python >= 3.9 (See also :pull:`1973`).

OBS-URL: https://build.opensuse.org/request/show/1269469
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-flake8?expand=0&rev=47
2025-05-20 07:30:56 +00:00
5e5b5b8c2c - update to 7.2.0:
* pycodestyle has been updated to >= 2.13.0, < 2.14.0
  * pyflakes has been updated to >= 3.3.0, < 3.4.0
  * Require python >= 3.9 (See also :pull:`1973`).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8?expand=0&rev=97
2025-04-15 07:55:11 +00:00
1f443cbc10 Accepting request 1195178 from devel:languages:python
- update to 7.1.1:
  * Properly preserve escaped `{` and `}` in fstrings in logical
    lines in 3.12+.

OBS-URL: https://build.opensuse.org/request/show/1195178
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-flake8?expand=0&rev=46
2024-08-22 16:10:35 +00:00
ccf92b50ec - update to 7.1.1:
* Properly preserve escaped `{` and `}` in fstrings in logical
    lines in 3.12+.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8?expand=0&rev=95
2024-08-21 17:52:56 +00:00
5 changed files with 81 additions and 19 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:af2223f8d6476097ac0bf58a08910fa19b4c045d37f6c8e26532d3f4076b78ba
size 138600

3
flake8-7.3.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:71a7d2ec4166f83c6fc66e6465a45c49b4565ee29b69f27b335366ce101d8c2b
size 139555

View File

@@ -3,9 +3,9 @@ from __future__ import annotations
import inspect import inspect
import os.path import os.path
from collections.abc import Generator
from typing import Any from typing import Any
from typing import Callable from typing import Callable
from typing import Generator
from typing import NamedTuple from typing import NamedTuple
import pycodestyle import pycodestyle
@@ -42,7 +42,7 @@ class Call(NamedTuple):
return cls(func.__name__, inspect.isgeneratorfunction(func), params) return cls(func.__name__, inspect.isgeneratorfunction(func), params)
def lines() -> Generator[str, None, None]: def lines() -> Generator[str]:
logical = [] logical = []
physical = [] physical = []
@@ -58,8 +58,8 @@ def lines() -> Generator[str, None, None]:
yield "# fmt: off" yield "# fmt: off"
yield "from __future__ import annotations" yield "from __future__ import annotations"
yield "" yield ""
yield "from collections.abc import Generator"
yield "from typing import Any" yield "from typing import Any"
yield "from typing import Generator"
yield "" yield ""
imports = sorted(call.name for call in logical + physical) imports = sorted(call.name for call in logical + physical)
for name in imports: for name in imports:
@@ -71,7 +71,7 @@ def lines() -> Generator[str, None, None]:
logical_params = {param for call in logical for param in call.params} logical_params = {param for call in logical for param in call.params}
for param in sorted(logical_params): for param in sorted(logical_params):
yield f" {param}: Any," yield f" {param}: Any,"
yield ") -> Generator[tuple[int, str], None, None]:" yield ") -> Generator[tuple[int, str]]:"
yield ' """Run pycodestyle logical checks."""' yield ' """Run pycodestyle logical checks."""'
for call in sorted(logical): for call in sorted(logical):
yield call.to_src() yield call.to_src()
@@ -82,7 +82,7 @@ def lines() -> Generator[str, None, None]:
physical_params = {param for call in physical for param in call.params} physical_params = {param for call in physical for param in call.params}
for param in sorted(physical_params): for param in sorted(physical_params):
yield f" {param}: Any," yield f" {param}: Any,"
yield ") -> Generator[tuple[int, str], None, None]:" yield ") -> Generator[tuple[int, str]]:"
yield ' """Run pycodestyle physical checks."""' yield ' """Run pycodestyle physical checks."""'
for call in sorted(physical): for call in sorted(physical):
yield call.to_src() yield call.to_src()

View File

@@ -1,3 +1,52 @@
-------------------------------------------------------------------
Tue Aug 19 13:33:42 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives on SLE-16-based and newer systems only
-------------------------------------------------------------------
Sun Jul 13 12:32:48 UTC 2025 - Dirk Müller <dmueller@suse.com>
- update to 7.3.0:
* pycodestyle has been updated to >= 2.4.0, < 2.5.0
* Pyflakes has been updated to >= 2.0.0, < 2.1.0
* Add ``paths`` to allow local plugins to exist outside of
``sys.path`` (See also :issue:`1067`, :issue:`1237`)
* Copy ``setup.cfg`` files to the temporary git hook execution
directory (See also :issue:`1299`)
* Only skip a file if ``# flake8: noqa`` is on a line by itself
* Provide a better user experience for broken plugins
* Report ``E902`` when a file passed on the command line does
not exist (See also :issue:`645`, :issue:`878`)
* Add ``--extend-ignore`` for extending the default ``ignore``
instead of overriding it (See also :issue:`1061`, :issue:`1180`)
* Respect a formatter's newline setting when printing
* Fix leaking of processes in the legacy api
* Fix a ``SyntaxWarning`` for an invalid escape sequence
* Fix ``DeprecationWarning`` due to import of ``abc`` classes
* Defer ``setuptools`` import to improve flake8 startup time
* Fix inconsistent line endings in ``FileProcessor.lines``
when running under python 3.x
-------------------------------------------------------------------
Tue Jul 8 13:27:59 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Tue Apr 15 07:54:43 UTC 2025 - Dirk Müller <dmueller@suse.com>
- update to 7.2.0:
* pycodestyle has been updated to >= 2.13.0, < 2.14.0
* pyflakes has been updated to >= 3.3.0, < 3.4.0
* Require python >= 3.9 (See also :pull:`1973`).
-------------------------------------------------------------------
Wed Aug 21 17:52:22 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 7.1.1:
* Properly preserve escaped `{` and `}` in fstrings in logical
lines in 3.12+.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jun 17 06:31:31 UTC 2024 - Dirk Müller <dmueller@suse.com> Mon Jun 17 06:31:31 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-flake8 # spec file for package python-flake8
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,9 +16,14 @@
# #
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-flake8 Name: python-flake8
Version: 7.1.0 Version: 7.3.0
Release: 0 Release: 0
Summary: Modular source code checker: pep8, pyflakes and co Summary: Modular source code checker: pep8, pyflakes and co
License: MIT License: MIT
@@ -32,19 +37,24 @@ BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel} BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module mccabe >= 0.7.0 with %python-mccabe < 0.8.0}
BuildRequires: %{python_module pycodestyle >= 2.12.0 with %python-pycodestyle < 2.13.0}
BuildRequires: %{python_module pyflakes >= 3.2.0 with %python-pyflakes < 3.3.0}
BuildRequires: %{python_module pytest}
# /SECTION
BuildArch: noarch
# https://flake8.pycqa.org/en/latest/faq.html#why-does-flake8-use-ranges-for-its-dependencies # https://flake8.pycqa.org/en/latest/faq.html#why-does-flake8-use-ranges-for-its-dependencies
Requires: (python-mccabe >= 0.7.0 with python-mccabe < 0.8.0) Requires: (python-mccabe >= 0.7.0 with python-mccabe < 0.8.0)
Requires: (python-pycodestyle >= 2.12.0 with python-pycodestyle < 2.13.0) Requires: (python-pycodestyle >= 2.14.0 with python-pycodestyle < 2.15.0)
Requires: (python-pyflakes >= 3.2.0 with python-pyflakes < 3.3.0) Requires: (python-pyflakes >= 3.4.0 with python-pyflakes < 3.5.0)
%if %{with libalternatives}
BuildRequires: alts
Requires: alts
%else
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(postun): update-alternatives Requires(postun): update-alternatives
%endif
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module mccabe >= 0.7.0 with %python-mccabe < 0.8.0}
BuildRequires: %{python_module pycodestyle >= 2.14.0 with %python-pycodestyle < 2.15.0}
BuildRequires: %{python_module pyflakes >= 3.4.0 with %python-pyflakes < 3.5.0}
BuildRequires: %{python_module pytest}
# /SECTION
%python_subpackages %python_subpackages
%description %description
@@ -78,6 +88,9 @@ install -m 0755 -D %{SOURCE2} bin/gen-pycodestyle-plugin
%python_clone -a %{buildroot}%{_bindir}/flake8 %python_clone -a %{buildroot}%{_bindir}/flake8
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%pre
%python_libalternatives_reset_alternative flake8
%post %post
%python_install_alternative flake8 %python_install_alternative flake8