19 Commits

Author SHA256 Message Date
dd16c66037 Accepting request 1302173 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1302173
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=49
2025-09-01 15:18:30 +00:00
06e560f13f - Convert to libalternatives on SLE-16-based and newer systems
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=175
2025-08-25 09:57:18 +00:00
df48d2b05d Accepting request 1285157 from devel:languages:python
Fix .changes file, osc service runall source_validator

OBS-URL: https://build.opensuse.org/request/show/1285157
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=48
2025-06-12 14:47:00 +00:00
14cae5f678 Fix .changes file, osc service runall source_validator
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=173
2025-06-12 12:41:56 +00:00
7e614d86b1 Accepting request 1277673 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1277673
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=47
2025-05-15 15:02:25 +00:00
6a7765efd1 Accepting request 1277663 from home:glaubitz:branches:devel:languages:python
- Update to 3.3.7
  * Comparisons between two calls to `type()` won't raise an
    ``unidiomatic-typecheck`` warning anymore, consistent with
    the behavior applied only for ``==`` previously.
  * Fixed a crash when importing a class decorator that did not
    exist with the same name as a class attribute after the class
    definition.
  * Fix a crash caused by malformed format strings when using
    `.format` with keyword arguments.
  * Using a slice as a class decorator now raises a ``not-callable``
    message instead of crashing. A lot of checks that dealt with
    decorators (too many to list) are now shortcut if the decorator
    can't immediately be inferred to a function or class definition.
  * The algorithm used for ``no-member`` suggestions is now more
    efficient and cuts the calculation when the distance score is
    already above the threshold.

OBS-URL: https://build.opensuse.org/request/show/1277663
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=171
2025-05-15 09:40:12 +00:00
4a150cd47a Accepting request 1267802 from devel:languages:python
- Update to 3.3.6:
  * Fix a false positive for used-before-assignment when an inner function's
    return type * annotation is a class defined at module scope.
  * Fix false positives for use-implicit-booleaness-not-comparison,
    use-implicit-booleaness-not-comparison-to-string and
    use-implicit-booleaness-not-comparison-to-zero when chained comparisons
    are checked.
  * Fix a false positive for invalid-getnewargs-ex-returned when the tuple or
    dict has been assigned to a name.
  * Remove getopt and optparse from the list of deprecated modules.
  * Fixed conditional import x.y causing false positive
    possibly-used-before-assignment.
  * Fix a crash when something besides a class is found in an except handler.
  * Fixed raising invalid-name when using camelCase for private methods with
    two leading underscores.
  * Fixes "skipped files" count calculation; the previous method was
    displaying an arbitrary number.
  * Fixes a crash that occurred when pylint was run in a container on a host
    with cgroupsv2 and restrictions on CPU usage.
  * Relaxed the requirements for isort so pylint can benefit from isort 6.
  * Fix false positives for undefined-variable for classes using Python 3.12
    generic type syntax.
  * Fix a false positive for use-implicit-booleaness-not-len. No lint should
    be emitted for generators (len is not defined for generators).
  * Fix Unable to import 'collections.abc' (import-error) on Python 3.13.1.
  * Fix a false positive for potential-index-error when an indexed iterable
    contains a starred element that evaluates to more than one item.
  * Fixes the issue with --source-root option not working when the source
    files are in a subdirectory of the source root (e.g. when using a /src
    layout).

OBS-URL: https://build.opensuse.org/request/show/1267802
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=46
2025-04-16 18:39:15 +00:00
75c13e2f7b - Update to 3.3.6:
* Fix a false positive for used-before-assignment when an inner function's
    return type * annotation is a class defined at module scope.
  * Fix false positives for use-implicit-booleaness-not-comparison,
    use-implicit-booleaness-not-comparison-to-string and
    use-implicit-booleaness-not-comparison-to-zero when chained comparisons
    are checked.
  * Fix a false positive for invalid-getnewargs-ex-returned when the tuple or
    dict has been assigned to a name.
  * Remove getopt and optparse from the list of deprecated modules.
  * Fixed conditional import x.y causing false positive
    possibly-used-before-assignment.
  * Fix a crash when something besides a class is found in an except handler.
  * Fixed raising invalid-name when using camelCase for private methods with
    two leading underscores.
  * Fixes "skipped files" count calculation; the previous method was
    displaying an arbitrary number.
  * Fixes a crash that occurred when pylint was run in a container on a host
    with cgroupsv2 and restrictions on CPU usage.
  * Relaxed the requirements for isort so pylint can benefit from isort 6.
  * Fix false positives for undefined-variable for classes using Python 3.12
    generic type syntax.
  * Fix a false positive for use-implicit-booleaness-not-len. No lint should
    be emitted for generators (len is not defined for generators).
  * Fix Unable to import 'collections.abc' (import-error) on Python 3.13.1.
  * Fix a false positive for potential-index-error when an indexed iterable
    contains a starred element that evaluates to more than one item.
  * Fixes the issue with --source-root option not working when the source
    files are in a subdirectory of the source root (e.g. when using a /src
    layout).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=169
2025-04-08 03:29:42 +00:00
04e33226b0 Accepting request 1203869 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1203869
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=45
2024-09-26 16:54:18 +00:00
cec1b07cde Accepting request 1203781 from home:bnavigator:branches:devel:languages:python:numeric
- Revert restriction to python3.

If the aithor of previous "fix" actually had thought about the error to be fixed ...

OBS-URL: https://build.opensuse.org/request/show/1203781
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=167
2024-09-26 11:52:10 +00:00
c7196b1adb Accepting request 1203565 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1203565
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=44
2024-09-25 19:54:19 +00:00
b3d8ed65d1 Accepting request 1203563 from home:ecsos:python
- Fix build error under Leap.

OBS-URL: https://build.opensuse.org/request/show/1203563
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=165
2024-09-25 12:26:24 +00:00
81b6729751 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=164 2024-09-24 13:51:54 +00:00
913c3fc320 - update to 3.3.1:
* Fix regression causing some f-strings to not be inferred as
    strings.
- update to 3.3.0:
  * We migrated ``symilar`` to argparse, from getopt, so the
    error and help output changed (for the better).
    We exit with 2 instead of sometime 1, sometime 2.
    The error output is not captured by the runner anymore.
    It's not possible to use a value for the boolean options
    anymore (``--ignore-comments 1`` should become
    ``--ignore-comments``).
  * Add new `declare-non-slot` error which reports when a class
    has a `__slots__` member and a type hint on the class is not
    present in `__slots__`.
  * Added `too-many-positional-arguments` to allow distinguishing
    the configuration for too many total arguments
    (with keyword-only params specified after `*`) from the
    configuration for too many positional-or-keyword or
    positional-only arguments.
  * Add `using-exception-group-in-unsupported-version` and
    `using-generic-type-syntax-in-unsupported-version` for uses
    of Python 3.11+ or 3.12+ features on lower supported versions
    provided with `--py-version`.
  * Add `using-assignment-expression-in-unsupported-version` for
    uses of `:=` (walrus operator) on Python versions below 3.8
    provided with `--py-version`.
  * Add `using-positional-only-args-in-unsupported-version` for
    uses of positional-only args on Python versions below 3.8
    provided with `--py-version`.
  * Add ``unnecessary-default-type-args`` to the ``typing``

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=163
2024-09-24 13:50:18 +00:00
ca9a8b853f Accepting request 1193321 from devel:languages:python
- Update to 3.2.6:
  * Quiet false positives for unexpected-keyword-arg when pylint cannot
    determine which of two or more dynamically defined classes is being
    instantiated.
  * Fix a false positive for missing-param-doc where a method which is
    decorated with typing.overload was expected to have a docstring
    specifying its parameters.
  * Fix a regression that raised invalid-name on class attributes merely
    overriding invalid names from an ancestor.
  * Treat assert_never() the same way when imported from typing_extensions.
  * Fix a false positive for consider-using-min-max-builtin when the
    assignment target is an attribute.
  * Fix an AssertionError arising from properties that return partial
    functions.
  * Fix a crash when a subclass extends __slots__.
- Refresh pytest-8.patch.
- Add patch support-astroid-3.3.patch:
  * Support astroid >= 3.3.0.

OBS-URL: https://build.opensuse.org/request/show/1193321
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=43
2024-08-12 10:32:01 +00:00
a99e707c54 - Update to 3.2.6:
* Quiet false positives for unexpected-keyword-arg when pylint cannot
    determine which of two or more dynamically defined classes is being
    instantiated.
  * Fix a false positive for missing-param-doc where a method which is
    decorated with typing.overload was expected to have a docstring
    specifying its parameters.
  * Fix a regression that raised invalid-name on class attributes merely
    overriding invalid names from an ancestor.
  * Treat assert_never() the same way when imported from typing_extensions.
  * Fix a false positive for consider-using-min-max-builtin when the
    assignment target is an attribute.
  * Fix an AssertionError arising from properties that return partial
    functions.
  * Fix a crash when a subclass extends __slots__.
- Refresh pytest-8.patch.
- Add patch support-astroid-3.3.patch:
  * Support astroid >= 3.3.0.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=161
2024-08-12 06:14:59 +00:00
1edf41372d Accepting request 1186384 from devel:languages:python
- Add new patch to fix failing tests with pytest 8, pytest-8.patch
  gh#pylint-dev/pylint#9576
- Skip some tests that still are failing with pytest 8,
  gh#pylint-dev/pylint#9545
- update to 3.2.5:
  * Fixed a false positive ``unreachable-code`` when using
    ``typing.Any`` as return type in python 3.8, the
    ``typing.NoReturn`` are not taken into account
    anymore for python 3.8 however.
  * Prevent emitting ``possibly-used-before-assignment`` when
    relying on names only potentially not defined in conditional
    blocks guarded by functions annotated with ``typing.Never``
    or ``typing.NoReturn``.
- update to 3.2.3:
  * Classes with only an Ellipsis (``...``) in their body do not
    trigger 'multiple-statements' anymore if they are inlined
  * Fix a false positive for ``redefined-outer-name`` when there
    is a name defined in an exception-handling block which shares
    the same name as a local variable that has been defined in a
    function body.
  * Fix a false positive for ``use-yield-from`` when using the
    return value from the ``yield`` atom.
- update to 3.2.2:
  * Fix multiple false positives for generic class syntax added
    in Python 3.12 (PEP 695).
  * Exclude context manager without cleanup from
    ``contextmanager-generator-missing-cleanup`` checks.
- update to 3.2.1:
  * Exclude if/else branches containing terminating functions
    (e.g. `sys.exit()`) from `possibly-used-before-assignment`
    checks.
  * Don't emit ``typevar-name-incorrect-variance`` warnings for
    PEP 695 style TypeVars.
  * The variance is inferred automatically by the type checker.
  * Adding ``_co`` or ``_contra`` suffix can help to reason about
    TypeVar.
- update to 3.2.0:
  * Understand `six.PY2` and `six.PY3` for conditional imports.
  * Github can use to automatically annotate code. Use it with
    `pylint --output-format=github` on your Github Workflows.
  * Add check ``possibly-used-before-assignment`` when relying on
    names after an ``if/else`` switch when one branch failed to
    define the name, raise, or return.
  * Checks for generators that use contextmanagers that don't
    handle cleanup properly.
  * Is meant to raise visibilty on the case that a generator is
    not fully exhausted and the contextmanager is not cleaned up
    properly.
  * A contextmanager must yield a non-constant value and not
    handle cleanup for GeneratorExit.
  * The using generator must attempt to use the yielded context
    value `with x() as y` and not just `with x()`.

OBS-URL: https://build.opensuse.org/request/show/1186384
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=42
2024-07-09 18:05:39 +00:00
773708ceb9 - Add new patch to fix failing tests with pytest 8, pytest-8.patch
gh#pylint-dev/pylint#9576
- Skip some tests that still are failing with pytest 8,
  gh#pylint-dev/pylint#9545

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=159
2024-07-09 12:16:59 +00:00
9f96db4e7f - update to 3.2.5:
* Fixed a false positive ``unreachable-code`` when using
    ``typing.Any`` as return type in python 3.8, the
    ``typing.NoReturn`` are not taken into account
    anymore for python 3.8 however.
  * Prevent emitting ``possibly-used-before-assignment`` when
    relying on names only potentially not defined in conditional
    blocks guarded by functions annotated with ``typing.Never``
    or ``typing.NoReturn``.
- update to 3.2.3:
  * Classes with only an Ellipsis (``...``) in their body do not
    trigger 'multiple-statements' anymore if they are inlined
  * Fix a false positive for ``redefined-outer-name`` when there
    is a name defined in an exception-handling block which shares
    the same name as a local variable that has been defined in a
    function body.
  * Fix a false positive for ``use-yield-from`` when using the
    return value from the ``yield`` atom.
- update to 3.2.2:
  * Fix multiple false positives for generic class syntax added
    in Python 3.12 (PEP 695).
  * Exclude context manager without cleanup from
    ``contextmanager-generator-missing-cleanup`` checks.
- update to 3.2.1:
  * Exclude if/else branches containing terminating functions
    (e.g. `sys.exit()`) from `possibly-used-before-assignment`
    checks.
  * Don't emit ``typevar-name-incorrect-variance`` warnings for
    PEP 695 style TypeVars.
  * The variance is inferred automatically by the type checker.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=158
2024-06-30 22:11:35 +00:00
2 changed files with 21 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Aug 25 09:53:38 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives on SLE-16-based and newer systems
-------------------------------------------------------------------
Thu May 15 08:56:07 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pylint
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,6 +17,11 @@
%bcond_without tests
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%{?sle15_python_module_pythons}
Name: python-pylint
Version: 3.3.7
@@ -38,6 +43,7 @@ Requires: python-tomlkit >= 0.10.1
Requires: (python-astroid >= 3.3.8 with python-astroid < 4.0.0~dev0)
Requires: (python-isort >= 4.2.5 with python-isort < 7)
Requires: (python-mccabe >= 0.6 with python-mccabe < 0.8)
BuildArch: noarch
%if 0%{?python_version_nodots} < 311
Requires: python-tomli >= 1.1.0
%endif
@@ -65,9 +71,13 @@ BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests}
# /SECTION
%endif
%if %{with libalternatives}
BuildRequires: alts
Requires: alts
%else
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%endif
%python_subpackages
%description
@@ -100,6 +110,7 @@ export LC_ALL="en_US.UTF-8"
for p in pylint pyreverse symilar pylint-config ; do
%python_clone -a %{buildroot}%{_bindir}/$p
done
%python_group_libalternatives pylint pyreverse symilar pylint-config
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with tests}
@@ -116,6 +127,9 @@ donttest+=" or test_functional"
%pytest -n auto --ignore tests/benchmark --reruns 5 -rsfER -k "not ($donttest)"
%endif
%pre
%python_libalternatives_reset_alternative pylint
%post
%python_install_alternative pylint pyreverse symilar pylint-config