1
0
forked from pool/python-pylint

137 Commits

Author SHA256 Message Date
a3de6ac720 Accepting request 1318121 from devel:languages:python
- Update to 4.0.3:
  * Add Enum dunder methods _generate_next_value_, _missing_, _numeric_repr_,
    _add_alias_, and _add_value_alias_ to the list passed to
    --good-dunder-names.
  * Fixed false positive for invalid-name with typing.Annotated.
  * Fix false positive for f-string-without-interpolation with template
    strings when using format spec.
  * Fix a false positive when an UPPER_CASED class attribute was raising an
    invalid-name when typed with Final.
  * Fix a false positive for unbalanced-tuple-unpacking when a tuple is
    assigned to a function call and the structure of the function's return
    value is ambiguous.
  * Make 'ignore' option work as expected again.
  * Fix crash for consider-using-assignment-expr when a variable annotation
    without assignment is used as the if test expression.
  * Fix crash for prefer-typing-namedtuple and consider-math-not-float when
    a slice object is called.
  * Fix false positive for invalid-name on a partially uninferable
    module-level constant.
  * Fix a false positive for invalid-name on exclusive module-level
    assignments composed of three or more branches.
  * Fix false positive for invalid-name for TypedDict instances.
  * Fix false-positive for bare-name-capture-pattern if a case guard is used.
  * Check enums created with the Enum() functional syntax to pass against the
    --class-rgx for the  invalid-name check, like other enums.
  * Pylint now supports Python 3.14.
  * Pylint's inference engine (astroid) is now much more precise,
    understanding implicit booleanness and ternary expressions. The required
    astroid version is now 4.0.0.
  * Handling of invalid-name at the module level was patchy. Now,

OBS-URL: https://build.opensuse.org/request/show/1318121
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=51
2025-11-18 14:33:38 +00:00
e86f27dafe - Update to 4.0.3:
* Add Enum dunder methods _generate_next_value_, _missing_, _numeric_repr_,
    _add_alias_, and _add_value_alias_ to the list passed to
    --good-dunder-names.
  * Fixed false positive for invalid-name with typing.Annotated.
  * Fix false positive for f-string-without-interpolation with template
    strings when using format spec.
  * Fix a false positive when an UPPER_CASED class attribute was raising an
    invalid-name when typed with Final.
  * Fix a false positive for unbalanced-tuple-unpacking when a tuple is
    assigned to a function call and the structure of the function's return
    value is ambiguous.
  * Make 'ignore' option work as expected again.
  * Fix crash for consider-using-assignment-expr when a variable annotation
    without assignment is used as the if test expression.
  * Fix crash for prefer-typing-namedtuple and consider-math-not-float when
    a slice object is called.
  * Fix false positive for invalid-name on a partially uninferable
    module-level constant.
  * Fix a false positive for invalid-name on exclusive module-level
    assignments composed of three or more branches.
  * Fix false positive for invalid-name for TypedDict instances.
  * Fix false-positive for bare-name-capture-pattern if a case guard is used.
  * Check enums created with the Enum() functional syntax to pass against the
    --class-rgx for the  invalid-name check, like other enums.
  * Pylint now supports Python 3.14.
  * Pylint's inference engine (astroid) is now much more precise,
    understanding implicit booleanness and ternary expressions. The required
    astroid version is now 4.0.0.
  * Handling of invalid-name at the module level was patchy. Now,

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=179
2025-11-17 04:34:22 +00:00
dd5c9f277c Accepting request 1304654 from devel:languages:python
- update to 3.3.8:
  * Fix false positives for `possibly-used-before-assignment`
    when variables are exhaustively assigned within a `match` block.
  * Fix false positive for `missing-raises-doc` and `missing-
    yield-doc` when the method length is less than docstring-min-
    length.
  * Fix a false positive for ``unused-variable`` when multiple
    except handlers bind the same name under a try block.
  * Fix false-negative for ``used-before-assignment`` with ``from
    __future__ import annotations`` in function definitions.
  * Fix a bug in Pyreverse where aggregations and associations
    were included in diagrams regardless of the selected
    --filter-mode (such as PUB_ONLY, ALL, etc.).
  * Fix double underscores erroneously rendering as bold in
    pyreverse's Mermaid output.

OBS-URL: https://build.opensuse.org/request/show/1304654
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=50
2025-09-15 17:52:06 +00:00
47142cb9a1 - update to 3.3.8:
* Fix false positives for `possibly-used-before-assignment`
    when variables are exhaustively assigned within a `match` block.
  * Fix false positive for `missing-raises-doc` and `missing-
    yield-doc` when the method length is less than docstring-min-
    length.
  * Fix a false positive for ``unused-variable`` when multiple
    except handlers bind the same name under a try block.
  * Fix false-negative for ``used-before-assignment`` with ``from
    __future__ import annotations`` in function definitions.
  * Fix a bug in Pyreverse where aggregations and associations
    were included in diagrams regardless of the selected
    --filter-mode (such as PUB_ONLY, ALL, etc.).
  * Fix double underscores erroneously rendering as bold in
    pyreverse's Mermaid output.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=177
2025-09-14 18:18:33 +00:00
81c1d0998d 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
b9f15d3b52 - 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
7bda9832a3 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
68125fbbf2 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
e09e013026 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
bd44e7f673 - 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/package/show/devel:languages:python/python-pylint?expand=0&rev=171
2025-05-15 09:40:12 +00:00
35e536ea68 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
334ede9612 - 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
073c74274e 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
2361d41a06 - 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/package/show/devel:languages:python/python-pylint?expand=0&rev=167
2024-09-26 11:52:10 +00:00
af411f4a00 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
9597abcbdc - Fix build error under Leap.
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
bcbbc76402 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
0d8b11f5f3 - 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
26765a348d 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
15f32f4981 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
5f2d8be937 - 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
0cddd8bd21 - 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
ab1399e0ef Accepting request 1160816 from devel:languages:python
- update to 3.1.0:
  * Two new checks--``use-yield-from``, ``deprecated-
    attribute``-- and a smattering of bug fixes.
  * Skip ``consider-using-join`` check for non-empty separators
    if an ``suggest-join-with-non-empty-separator`` option is set
    to ``no``.
  * Discover ``.pyi`` files when linting.
  * Check ``TypeAlias`` and ``TypeVar`` (PEP 695) nodes for
    ``invalid-name``.
  * Support for resolving external toml files named pylintrc.toml
    and .pylintrc.toml.
  * Check for `.clear`, `.discard`, `.pop` and `remove` methods
    being called on a set while it is being iterated over.
  * New message `use-yield-from` added to the refactoring
    checker. This message is emitted when yielding from a loop
    can be replaced by `yield from`.
  * Added a ``deprecated-attribute`` message to check deprecated
    attributes in the stdlib.
  * Exempt ``TypedDict`` from ``typing_extensions`` from ``too-
    many-ancestor`` checks.
  * Extend broad-exception-raised and broad-exception-caught to
    except*.
  * Fix a false-negative for unnecessary if blocks using a
    different than expected ordering of arguments.
  * For "import X", it will report "(standard/third party/first
    party/local) import X"
  * For "import X.Y" and "from X import Y", it will report
    "(standard/third party/first party/local) import X.Y"
  * The import category is specified to provide explanation as to
    why pylint has issued the message and guidence to the

OBS-URL: https://build.opensuse.org/request/show/1160816
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=41
2024-03-25 20:08:55 +00:00
5a4ffc10f1 - update to 3.1.0:
* Two new checks--``use-yield-from``, ``deprecated-
    attribute``-- and a smattering of bug fixes.
  * Skip ``consider-using-join`` check for non-empty separators
    if an ``suggest-join-with-non-empty-separator`` option is set
    to ``no``.
  * Discover ``.pyi`` files when linting.
  * Check ``TypeAlias`` and ``TypeVar`` (PEP 695) nodes for
    ``invalid-name``.
  * Support for resolving external toml files named pylintrc.toml
    and .pylintrc.toml.
  * Check for `.clear`, `.discard`, `.pop` and `remove` methods
    being called on a set while it is being iterated over.
  * New message `use-yield-from` added to the refactoring
    checker. This message is emitted when yielding from a loop
    can be replaced by `yield from`.
  * Added a ``deprecated-attribute`` message to check deprecated
    attributes in the stdlib.
  * Exempt ``TypedDict`` from ``typing_extensions`` from ``too-
    many-ancestor`` checks.
  * Extend broad-exception-raised and broad-exception-caught to
    except*.
  * Fix a false-negative for unnecessary if blocks using a
    different than expected ordering of arguments.
  * For "import X", it will report "(standard/third party/first
    party/local) import X"
  * For "import X.Y" and "from X import Y", it will report
    "(standard/third party/first party/local) import X.Y"
  * The import category is specified to provide explanation as to
    why pylint has issued the message and guidence to the

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=156
2024-03-22 20:03:15 +00:00
344051cd85 Accepting request 1133805 from devel:languages:python
- update to 3.0.3:
  * Fixed false positive for ``unnecessary-lambda`` when the call
    has keyword arguments but not the lambda.
  * Fixed incorrect suggestion for shallow copy in unnecessary-
    comprehension
  * After changing b = [x for x in a] to b = a based on the
    suggestion, the script now prints [0, 2, 3]. The correct
    suggestion should be use list(a) to preserve the original
    behavior.
  * Fix false positives for ``undefined-variable`` and ``unused-
    argument`` for classes and functions using Python 3.12 generic
    type syntax.
  * Fixed ``pointless-string-statement`` false positive for
    docstrings on Python 3.12 type aliases.
  * Fix false positive for ``invalid-exception-operation`` when
    concatenating tuples of exception types.
  * Fix a bug where pylint was unable to walk recursively through
    a directory if the directory has an `__init__.py` file.

OBS-URL: https://build.opensuse.org/request/show/1133805
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=40
2023-12-18 21:56:05 +00:00
15e85133d0 - update to 3.0.3:
* Fixed false positive for ``unnecessary-lambda`` when the call
    has keyword arguments but not the lambda.
  * Fixed incorrect suggestion for shallow copy in unnecessary-
    comprehension
  * After changing b = [x for x in a] to b = a based on the
    suggestion, the script now prints [0, 2, 3]. The correct
    suggestion should be use list(a) to preserve the original
    behavior.
  * Fix false positives for ``undefined-variable`` and ``unused-
    argument`` for classes and functions using Python 3.12 generic
    type syntax.
  * Fixed ``pointless-string-statement`` false positive for
    docstrings on Python 3.12 type aliases.
  * Fix false positive for ``invalid-exception-operation`` when
    concatenating tuples of exception types.
  * Fix a bug where pylint was unable to walk recursively through
    a directory if the directory has an `__init__.py` file.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=154
2023-12-18 08:24:37 +00:00
82080bda56 Accepting request 1129239 from devel:languages:python
- update to 3.0.2:
  * Fix ``used-before-assignment`` false positive for generic
    type syntax (PEP 695, Python 3.12).
  * Escape special symbols and newlines in messages.
  * Fixes suggestion for ``nested-min-max`` for expressions with
    additive operators, list and dict comprehensions.
  * Fixes ignoring conditional imports with ``ignore-imports=y``.
  * Emit ``inconsistent-quotes`` for f-strings with 3.12
    interpreter only if targeting pre-3.12 versions.

    names:
  * Fix false positive for undefined-loop-variable in for-else loops that
- Unpin mccabe and astroid in sitelib metadata.
  * ``unspecified-encoding`` now checks the encoding of
    ``pathlib.Path()`` correctly
  * The python3 porting mode checker and it's ``py3k`` option were
    removed. You can still find it in older pylints  versions.
  * ``raising-bad-type`` is now properly emitted when  raising a
    ``use-set-for-membership`` check: Emitted when using an
    in-place defined ``list`` or ``tuple`` to do a membership
  * ``CodeStyleChecker``
    flow (e. g. if-else clause).
  * Fix false positive for ``protected-access`` if a protected
  * Fix false positive ``dict-iter-missing-items`` for dictionaries
  * The ``unspecified-encoding`` checker now also checks calls to
  * Fix false positive ``superfluous-parens`` for tuples created
  * Fix false positive ``unused-private-member`` for accessing
  * Fix false positive ``unused-private-member`` for private
  * Extended ``consider-using-in`` check to work for attribute
  * Setting ``min-similarity-lines`` to 0 now makes the similarty

OBS-URL: https://build.opensuse.org/request/show/1129239
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=39
2023-11-27 21:45:06 +00:00
501b0677df - update to 3.0.2:
* Fix ``used-before-assignment`` false positive for generic
    type syntax (PEP 695, Python 3.12).
  * Escape special symbols and newlines in messages.
  * Fixes suggestion for ``nested-min-max`` for expressions with
    additive operators, list and dict comprehensions.
  * Fixes ignoring conditional imports with ``ignore-imports=y``.
  * Emit ``inconsistent-quotes`` for f-strings with 3.12
    interpreter only if targeting pre-3.12 versions.
    names:
  * Fix false positive for undefined-loop-variable in for-else loops that
- Unpin mccabe and astroid in sitelib metadata.
  * ``unspecified-encoding`` now checks the encoding of
    ``pathlib.Path()`` correctly
  * The python3 porting mode checker and it's ``py3k`` option were
    removed. You can still find it in older pylints  versions.
  * ``raising-bad-type`` is now properly emitted when  raising a
    ``use-set-for-membership`` check: Emitted when using an
    in-place defined ``list`` or ``tuple`` to do a membership
  * ``CodeStyleChecker``
    flow (e. g. if-else clause).
  * Fix false positive for ``protected-access`` if a protected
  * Fix false positive ``dict-iter-missing-items`` for dictionaries
  * The ``unspecified-encoding`` checker now also checks calls to
  * Fix false positive ``superfluous-parens`` for tuples created
  * Fix false positive ``unused-private-member`` for accessing
  * Fix false positive ``unused-private-member`` for private
  * Extended ``consider-using-in`` check to work for attribute
  * Setting ``min-similarity-lines`` to 0 now makes the similarty
  * Fix a bug where pylint complained if the cache's parent

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=152
2023-11-27 20:02:15 +00:00
39538cb775 Accepting request 1119283 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1119283
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=38
2023-10-22 19:01:49 +00:00
fb7b428764 Accepting request 1119232 from home:ecsos:python
- Update to 3.0.1:
  * False Positives Fixed
    - Fixed false positive for inherit-non-class for generic Protocols.
      Closes #9106
  * Other Changes
    - Fix a crash when an enum class which is also decorated with a dataclasses.dataclass decorator is defined.
      Closes #9100
- Update to 3.0.0:
  - Pylint now support python 3.12 officially.
  - The required astroid version is now 3.0.0
  For all chaanges see:
  https://github.com/pylint-dev/pylint/releases/tag/v3.0.0
- Changes from 2.17.7
  2.17.7 is the last release before we only support pylint 3.0.0 or superior and python 3.8 or superior.
  * False Positives Fixed
    - Fix a regression in pylint 2.17.6 / astroid 2.15.7 causing various
      messages for code involving TypeVar.
      Closes #9069
  * Other Bug Fixes
    - Fix crash in refactoring checker when unary operand used with variable in for
      loop.
      Closes #9074
- Changes from 2.17.6
  * Other Bug Fixes
    - When parsing comma-separated lists of regular expressions in the config,
      ignore commas that are inside braces since those indicate quantifiers, not
      delineation between expressions.
      Closes #7229
    - sys.argv is now always correctly considered as impossible to infer
      (instead of using the actual values given to pylint).
      Closes #9047
    - Don't show class fields more than once in Pyreverse diagrams.
      Closes #8189
    - Don't show arrows more than once in Pyreverse diagrams.
      Closes #8522
    - Don't show duplicate type annotations in Pyreverse diagrams.
      Closes #8888
    - Don't add Optional to | annotations with None in Pyreverse diagrams.
      Closes #9014
- Changes from 2.17.5
  * False Positives Fixed
    - Fix a false positive for unused-variable when there is an import in a
      if TYPE_CHECKING: block and allow-global-unused-variables is set to
      no in the configuration.
      Closes #8696
    - Fix false positives generated when supplying arguments as **kwargs to IO
      calls like open().
      Closes #8719
    - Fix a false positive where pylint was ignoring method calls annotated as
      NoReturn during the inconsistent-return-statements check.
      Closes #8747
    - Exempt parents with only type annotations from the invalid-enum-extension
      message.
      Closes #8830
  * Other Bug Fixes
    - Fixed crash when a call to super() was placed after an operator (e.g.
      not).
      Closes #8554
    - Fix crash for modified-while-iterating checker when deleting
      members of a dict returned from a call.
      Closes #8598
    - Fix crash in invalid-metaclass check when a metaclass had duplicate
      bases.
      Closes #8698
    - Avoid consider-using-f-string on modulos with brackets in template.
      Closes #8720.
    - Fix a crash when __all__ exists but cannot be inferred.
      Closes #8740
    - Fix crash when a variable is assigned to a class attribute of identical name.
      Closes #8754
    - Fixed a crash when calling copy.copy() without arguments.
      Closes #8774
  * Other Changes
    - Fix a crash when a nonlocal is defined at module-level.
      Closes #8735

OBS-URL: https://build.opensuse.org/request/show/1119232
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=150
2023-10-20 21:26:15 +00:00
723ac0e576 Accepting request 1090268 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1090268
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=37
2023-06-01 15:21:15 +00:00
2bfaab6a49 Accepting request 1090184 from home:bnavigator:branches:devel:languages:python
- Update test setup: rerun flaky pyreverse tests

OBS-URL: https://build.opensuse.org/request/show/1090184
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=148
2023-06-01 11:16:52 +00:00
bc9b6a6263 Accepting request 1087260 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1087260
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=36
2023-05-16 12:16:17 +00:00
17c61431f7 - update to 2.17.4:
* Fix a false positive for ``bad-dunder-name`` when there is a
    user-defined ``__index__`` method.
  * ``pyreverse``: added escaping of vertical bar character in
    annotation labels
  * produced by DOT printer to ensure it is not treated as field
    separator of record-based nodes.
  * Fixed a crash when generating a configuration file:
  * ``tomlkit.exceptions.TOMLKitError: Can't add a table to a
    dotted key`` caused by tomlkit ``v0.11.8``.

- update to 2.17.3:
  * Fix `unused-argument` false positive when `__new__` does not
    use all the arguments of `__init__`.
  * Fix ``unused-import`` false positive for usage of
    ``six.with_metaclass``.
  * `logging-not-lazy` is not longer emitted for explicitly
    concatenated string arguments.
  * Fix false positive for isinstance-second-argument-not-valid-
    type when union types contains None.
  * Fixed `unused-import` so that it observes the `dummy-
    variables-rgx` option.
  * `Union` typed variables without assignment are no longer
    treated as `TypeAlias`.
  * Fix false positive for ``positional-only-arguments-expected``
    when a function contains both a positional-only parameter
    that has a default value, and ``**kwargs``.
  * Fix false positive for ``keyword-arg-before-vararg`` when a
    positional-only parameter with a default value precedes ``*args``.
  * Improve output of ``consider-using-generator`` message for

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=146
2023-05-08 15:45:01 +00:00
7c9fb5774c Accepting request 1085542 from home:ojkastl_buildservice:Branch_devel_languages_python
add sle15_python_module_pythons

OBS-URL: https://build.opensuse.org/request/show/1085542
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=145
2023-05-08 15:29:57 +00:00
3d24770052 Accepting request 1080001 from devel:languages:python
- update to 2.17.2:
  * invalid-name now allows for integers in typealias
    names: 
    * now valid: Good2Name, GoodName2.
    * still invalid: _1BadName.
  * No longer consider Union as type annotation as type alias
    for naming checks.
  * unnecessary-lambda no longer warns on lambdas which use
    its parameters in their body (other than the final arguments),
    e.g. lambda foo: (bar if foo else baz)(foo).
  * Fix a crash in pyreverse when "/" characters are used in the
    output filename e.g pyreverse -o png -p name/ path/to/project.
  * Add new option (--show-stdlib, -L) to pyreverse.
  * This is similar to the behavior of --show-builtin in that
    standard library modules are now not included by default,
    and this option will include them.
  * Adds asyncSetUp to the default defining-attr-methods
    list to silence
    * attribute-defined-outside-init warning when using
    * unittest.IsolatedAsyncioTestCase.
  * invalid-name now allows for integers in typealias
    names:
    * now valid: Good2Name, GoodName2.
    * still invalid: _1BadName.
  * No longer consider Union as type annotation as type alias
    for naming checks.
  * unnecessary-lambda no longer warns on lambdas which use
    its parameters in their body (other than the final arguments),
    e.g. lambda foo: (bar if foo else baz)(foo).
  * --clear-cache-post-run now also clears LRU caches for

OBS-URL: https://build.opensuse.org/request/show/1080001
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=35
2023-04-20 14:49:02 +00:00
897ebbf491 - update to 2.17.2:
* invalid-name now allows for integers in typealias
    names: 
    * now valid: Good2Name, GoodName2.
    * still invalid: _1BadName.
  * No longer consider Union as type annotation as type alias
    for naming checks.
  * unnecessary-lambda no longer warns on lambdas which use
    its parameters in their body (other than the final arguments),
    e.g. lambda foo: (bar if foo else baz)(foo).
  * Fix a crash in pyreverse when "/" characters are used in the
    output filename e.g pyreverse -o png -p name/ path/to/project.
  * Add new option (--show-stdlib, -L) to pyreverse.
  * This is similar to the behavior of --show-builtin in that
    standard library modules are now not included by default,
    and this option will include them.
  * Adds asyncSetUp to the default defining-attr-methods
    list to silence
    * attribute-defined-outside-init warning when using
    * unittest.IsolatedAsyncioTestCase.
  * invalid-name now allows for integers in typealias
    names:
    * now valid: Good2Name, GoodName2.
    * still invalid: _1BadName.
  * No longer consider Union as type annotation as type alias
    for naming checks.
  * unnecessary-lambda no longer warns on lambdas which use
    its parameters in their body (other than the final arguments),
    e.g. lambda foo: (bar if foo else baz)(foo).
  * --clear-cache-post-run now also clears LRU caches for

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=143
2023-04-17 19:36:13 +00:00
820bad0993 Accepting request 1057060 from devel:languages:python
- update to v2.15.10:
  * Fix use-sequence-for-iteration when unpacking a set with *.
  * Fix false positive assigning-non-slot when a class attribute is
  * re-assigned.
  * Fixes used-before-assignment false positive when the walrus operator
  * is used in a ternary operator.
  * Prevent used-before-assignment when imports guarded by if TYPE_CHECKING
  * are guarded again when used.
  * Using custom braces in msg-template will now work properly.

OBS-URL: https://build.opensuse.org/request/show/1057060
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=34
2023-01-09 16:24:13 +00:00
3dd7606bde - update to v2.15.10:
* Fix use-sequence-for-iteration when unpacking a set with *.
  * Fix false positive assigning-non-slot when a class attribute is
  * re-assigned.
  * Fixes used-before-assignment false positive when the walrus operator
  * is used in a ternary operator.
  * Prevent used-before-assignment when imports guarded by if TYPE_CHECKING
  * are guarded again when used.
  * Using custom braces in msg-template will now work properly.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=141
2023-01-09 11:55:44 +00:00
4a2cc878fa Accepting request 1056749 from devel:languages:python
- update to v2.15.9:
  * Fix false-positive for used-before-assignment in pattern matching with a
    guard.
  * Pylint will no longer deadlock if a parallel job is killed but fail
    immediately instead.
  * When pylint exit due to bad arguments being provided the exit code will
    now be the expected 32.
  * Fixes a ModuleNotFound exception when running pylint on a Django project
    with the pylint_django plugin enabled.
  * Document a known false positive for useless-suppression when disabling
  * line-too-long in a module with only comments and no code.
  * Fix logging-fstring-interpolation false positive raised when logging and
    f-string with %s formatting.
  * Fixes false positive abstract-method on Protocol classes.
  * Fix missing-param-doc false positive when function parameter has an
    escaped underscore.
  * multiple-statements no longer triggers for function stubs using inlined
    ....
  * Fix deprecated-method false positive when alias for method is similar to
  * name of deprecated method.
  * Fix a false positive for used-before-assignment for imports guarded by
  * typing.TYPE_CHECKING later used in variable annotations.
  * Other Bug Fixes
  * Pylint will now filter duplicates given to it before linting. The output
  * should be the same whether a file is given/discovered multiple times or
    not.
  * Fixes a crash in stop-iteration-return when the next builtin is
  * called without arguments.
  * Fix false positive for unhashable-member when subclassing dict and
  * using the subclass as a dictionary key.

OBS-URL: https://build.opensuse.org/request/show/1056749
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=33
2023-01-07 16:19:50 +00:00
ffea532656 - update to v2.15.9:
* Fix false-positive for used-before-assignment in pattern matching with a
    guard.
  * Pylint will no longer deadlock if a parallel job is killed but fail
    immediately instead.
  * When pylint exit due to bad arguments being provided the exit code will
    now be the expected 32.
  * Fixes a ModuleNotFound exception when running pylint on a Django project
    with the pylint_django plugin enabled.
  * Document a known false positive for useless-suppression when disabling
  * line-too-long in a module with only comments and no code.
  * Fix logging-fstring-interpolation false positive raised when logging and
    f-string with %s formatting.
  * Fixes false positive abstract-method on Protocol classes.
  * Fix missing-param-doc false positive when function parameter has an
    escaped underscore.
  * multiple-statements no longer triggers for function stubs using inlined
    ....
  * Fix deprecated-method false positive when alias for method is similar to
  * name of deprecated method.
  * Fix a false positive for used-before-assignment for imports guarded by
  * typing.TYPE_CHECKING later used in variable annotations.
  * Other Bug Fixes
  * Pylint will now filter duplicates given to it before linting. The output
  * should be the same whether a file is given/discovered multiple times or
    not.
  * Fixes a crash in stop-iteration-return when the next builtin is
  * called without arguments.
  * Fix false positive for unhashable-member when subclassing dict and
  * using the subclass as a dictionary key.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=139
2023-01-07 09:14:06 +00:00
ab6be66f78 Accepting request 1012118 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1012118
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=32
2022-10-18 10:45:00 +00:00
2cbcf87f84 Accepting request 1012069 from home:stroeder:python
update to 2.15.4

OBS-URL: https://build.opensuse.org/request/show/1012069
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=137
2022-10-17 13:11:43 +00:00
fe9763e012 Accepting request 1005711 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1005711
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=31
2022-09-26 16:47:55 +00:00
ff643d183a Accepting request 1005669 from home:bnavigator:branches:devel:languages:python
- Fix astroid requirement.

OBS-URL: https://build.opensuse.org/request/show/1005669
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=135
2022-09-24 06:35:15 +00:00
f2a54ca184 Accepting request 1005486 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1005486
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=30
2022-09-23 12:15:17 +00:00
1aafb1252d Accepting request 1005407 from home:stroeder:python
update to 2.15.3

OBS-URL: https://build.opensuse.org/request/show/1005407
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=133
2022-09-22 19:44:09 +00:00
0ce8ac8c4e Accepting request 1003053 from devel:languages:python
- update to 2.15.2:
  * Fixed a case where custom plugins specified by command line could silently fail.
  * Fix ``used-before-assignment`` for functions/classes defined in type checking guard.
  * Update ``modified_iterating`` checker to fix a crash with ``for`` loops on empty list.
  * The ``docparams`` extension now considers typing in Numpy style docstrings
  * Fix false positive for ``unused-variable`` and ``unused-import`` when a name is only used in a string literal type annotation.
  * Fix false positive for ``too-many-function-args`` when a function call is assigned to a class attribute inside the class where the function is defined.
  * Fix ``used-before-assignment`` for functions/classes defined in type checking guard.
  * Fix ignored files being linted when passed on stdin.
  * ``missing-return-doc``, ``missing-raises-doc`` and ``missing-yields-doc`` now respect
  * Don't crash on ``OSError`` in config file discovery.
  * ``disable-next`` is now correctly scoped to only the succeeding line.
  * Update ``modified_iterating`` checker to fix a crash with ``for`` loops on empty list.

OBS-URL: https://build.opensuse.org/request/show/1003053
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=29
2022-09-13 13:09:38 +00:00
9debae03a4 - update to 2.15.2:
* Fixed a case where custom plugins specified by command line could silently fail.
  * Fix ``used-before-assignment`` for functions/classes defined in type checking guard.
  * Update ``modified_iterating`` checker to fix a crash with ``for`` loops on empty list.
  * The ``docparams`` extension now considers typing in Numpy style docstrings
  * Fix false positive for ``unused-variable`` and ``unused-import`` when a name is only used in a string literal type annotation.
  * Fix false positive for ``too-many-function-args`` when a function call is assigned to a class attribute inside the class where the function is defined.
  * Fix ``used-before-assignment`` for functions/classes defined in type checking guard.
  * Fix ignored files being linted when passed on stdin.
  * ``missing-return-doc``, ``missing-raises-doc`` and ``missing-yields-doc`` now respect
  * Don't crash on ``OSError`` in config file discovery.
  * ``disable-next`` is now correctly scoped to only the succeeding line.
  * Update ``modified_iterating`` checker to fix a crash with ``for`` loops on empty list.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=131
2022-09-12 20:30:46 +00:00
42362528de Accepting request 1001087 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1001087
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=28
2022-09-04 20:11:46 +00:00
f63e1b4b88 Accepting request 999571 from home:bnavigator:branches:devel:languages:python
- Update to version 2.15.0
  * In pylint 2.15.0, we added a new check missing-timeout to warn
    of default timeout values that could cause a program to be
    hanging indefinitely.
  * We improved pylint's handling of namespace packages. More
    packages should be linted without resorting to using the
    --recursive=y option.
- Release highlights from 2.14
  * With 2.14 pylint only supports Python version 3.7.2 and above.
  * We introduced several new checks among which duplicate-value
    for sets, comparison-of-constants, and checks related to
    lambdas. We removed no-init and made no-self-use optional as
    they were too opinionated. We also added an option to generate
    a toml configuration: --generate-toml-config.
  * We migrated to argparse from optparse and refactored the
    configuration handling thanks to Daniël van Noord. On the user
    side it should change the output of the --help command, and
    some inconsistencies and bugs should disappear. The behavior
    between options set in a config file versus on the command line
    will be more consistent. For us, it will permit to maintain
    this part of the code easily in the future and anticipate
    optparse's removal in Python 3.12.
  * As a result of the refactor there are a lot of internal
    deprecations. If you're a library maintainer that depends on
    pylint, please verify that you're ready for pylint 3.0 by
    activating deprecation warnings.
  * We continued the integration of pylint-error and are now at
    33%!. We still welcome any community effort to help review,
    integrate, and add good/bad examples
    <https://github.com/PyCQA/pylint/issues/5953>`_. This should be
    doable without any pylint or astroid knowledge, so this is the
    perfect entrypoint if you want to contribute to pylint or open
    source without any experience with our code!
- Release highlights from 2.13
  * In 2.13, we introduced a new check to deal with unicode
    security issues. On top of that a lot of work was done inside
    the unicode checker by @CarliJoy. We also introduced a new
    check when importing private name and for unnecessary ellipsis
    among other.
  * We fixed long standing issues related to duplicate code that
    could not be disabled, line numbers that were not accurate some
    of the time, and added the ability to lint all files in a
    directory without specifying each one. One of the most
    anticipated issue from the repository. Thank you @matusvalo !
  * A lot of undefined-variables and used-before-assignment issues
    were resolved thanks to @jacobtylerwalls.
  * We started integrating pylint-error the documentation created
    by @vald-phoenix a developer from Hlyniane, Ukraine. We hope
    he's doing well despite the current situation. The deployment
    is set up but there's still a lot to do so we welcome any
    community effort help to review, integrate, and add good/bad
    examples. This should be doable without any pylint or astroid
    knowledge, so this is the perfect entrypoint if you want to
    contribute to pylint without investing any time learning the
    internals.
  * This release is the last one to support interpreter below
    3.7.2, 3.6 end of life was reached in december 2021.
- Add pylint-pr7367-pythonpathtest.patch
  * gh#PyCQA/pylint#7367

OBS-URL: https://build.opensuse.org/request/show/999571
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=129
2022-09-04 08:48:58 +00:00
78840d2cad Accepting request 940014 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/940014
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=27
2021-12-25 19:16:24 +00:00
c205dc705d Accepting request 939910 from home:bnavigator:branches:devel:languages:python
Update and unpin

OBS-URL: https://build.opensuse.org/request/show/939910
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=128
2021-12-11 23:52:16 +00:00
09372c4e13 Accepting request 925644 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/925644
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=26
2021-10-20 18:23:23 +00:00
0e0f3b8099 Accepting request 925619 from home:bnavigator:branches:devel:languages:python
- Dropped pylint-pr4816-astroid27.patch
- Update to 2.11.1
  * ``unspecified-encoding`` now checks the encoding of 
    ``pathlib.Path()`` correctly 
  * The python3 porting mode checker and it's ``py3k`` option were 
    removed. You can still find it in older pylints  versions.  
  * ``raising-bad-type`` is now properly emitted when  raising a 
    string
  * Added new extension ``SetMembershipChecker`` with
    ``use-set-for-membership`` check: Emitted when using an 
    in-place defined ``list`` or ``tuple`` to do a membership 
    test. ``sets`` are better optimized for that.
  * Added ``py-version`` config key (if ``[MASTER]`` section). Used
    for version dependant checks.
    Will default to whatever Python version pylint is executed
    with.
  * ``CodeStyleChecker``  
    Added ``consider-using-assignment-expr``: Emitted when an
    assignment is directly followed by an if statement and both can
    be combined by using an assignment expression ``:=``. Requires
    Python 3.8
  * Added ``consider-using-f-string``: Emitted when .format() or '%'
    is being used to format a string.
  * Fix false positive for ``consider-using-with`` if a context
    manager is assigned to a variable in different paths of control
    flow (e. g. if-else clause).  
  * https is now prefered in the documentation and
    http://pylint.pycqa.org correctly redirect to
    https://pylint.pycqa.org
  * Fix false positive for ``function-redefined`` for simple type
    annotations
  * Fix false positive for ``protected-access`` if a protected 
    member is used in type hints of function definitions
  * Fix false positive ``dict-iter-missing-items`` for dictionaries 
    only using tuples as keys
  * The ``unspecified-encoding`` checker now also checks calls to 
    ``pathlib.Path().read_text()`` and
    ``pathlib.Path().write_text()``
  * Fix false positive ``superfluous-parens`` for tuples created 
    with inner tuples
  * Fix false positive ``unused-private-member`` for accessing 
    attributes in a class using ``cls``
  * Fix false positive ``unused-private-member`` for private 
    staticmethods accessed in classmethods.
  * Extended ``consider-using-in`` check to work for attribute 
    access.
  * Setting ``min-similarity-lines`` to 0 now makes the similarty 
    checker stop checking for duplicate code
  * Fix a bug where pylint complained if the cache's parent 
    directory does not exist
  * The ``global-variable-not-assigned`` checker now catches global 
    variables that are never reassigned in a
    local scope and catches (reassigned) functions
  * Fix false positives for invalid-all-format that are lists or 
    tuples at runtime
  * Fix ``no-self-use`` and ``docparams extension`` for async 
    functions and methods.
  * Add documentation for ``pyreverse`` and ``symilar``
  * Non symbolic messages with the wrong capitalisation now 
    correctly trigger ``use-symbolic-message-instead``
  * The ``consider-iterating-dictionary`` checker now also
    considers membership checks
  * The ``invalid-name`` message is now more detailed when using 
    multiple naming style regexes.
- Release 2.10.2
  * We now use platformdirs instead of appdirs since the latter is 
    not maintained.
  * Fix a crash in the checker raising ``shallow-copy-environ`` 
    when failing to infer on ``copy.copy``
- Release 2.10.1
  * pylint does not crash when PYLINT_HOME does not exist.
- Release 2.10.0
  * pyreverse: add option to produce colored output.
  * pyreverse: add output in PlantUML format.
  * ``consider-using-with`` is no longer triggered if a context 
    manager is returned from a function.
  * pylint does not crash with a traceback anymore when a file is 
    problematic. It creates a template text file for opening an 
    issue on the bug tracker instead.
    The linting can go on for other non problematic files instead 
    of being impossible.
  * pyreverse: Show class has-a relationships inferred from the 
    type-hint
  * Fixed a crash when importing beyond the top level package 
    during ``import-error`` message creation
  * Added ``ignored-parents`` option to the design checker to 
    ignore specific classes from the ``too-many-ancestors`` check 
    (R0901).
  * Added ``unspecified-encoding``: Emitted when open() is called 
    without specifying an encoding
  * Improved the Similarity checker performance. Fix issue with 
    ``--min-similarity-lines`` used with ``--jobs``.
  * Don't emit ``no-member`` error if guarded behind if statement.
  * The default for ``PYLINTHOME`` is now the standard 
    ``XDG_CACHE_HOME``, and pylint now uses ``appdirs``.
  * Added ``use-list-literal``: Emitted when ``list()`` is called 
    with no arguments instead of using ``[]``
  * Added ``use-dict-literal``: Emitted when ``dict()`` is called 
    with no arguments instead of using ``{}``
  * Added optional extension ``consider-ternary-expression``: 
    Emitted whenever a variable is assigned in both branches of an 
    if/else block.
  * Added optional extension ``while-used``: Emitted whenever a 
    ``while`` loop is used.
  * Added ``forgotten-debug-statement``: Emitted when 
    ``breakpoint``, ``pdb.set_trace`` or ``sys.breakpointhook`` 
    calls are found
  * Fix false-positive of ``unused-private-member`` when using 
    nested functions in a class
  * Fix crash for ``unused-private-member`` that occurred with 
    nested attributes.
  * Fix a false positive for ``unused-private-member`` with class 
    names
  * Fix false positives for ``superfluous-parens`` with walrus 
    operator, ternary operator and inside list comprehension.
  * Added ``format-string-without-interpolation`` checker: Emitted 
    when formatting is applied to a string without any variables to 
    be replaced
  * Refactor of ``--list-msgs`` & ``--list-msgs-enabled``: both 
    options now show whether messages are emittable with the 
    current interpreter.
  * Fix false negative for ``used-before-assignment`` when the 
    variable is assigned in an exception handler, but used outside 
    of the handler.
  * Added ``disable-next`` option: allows using `# pylint: 
    disable-next=msgid` to disable a message for the following line
  * Added ``redundant-u-string-prefix`` checker: Emitted when the u 
    prefix is added to a string
  * Fixed ``cell-var-from-loop`` checker: handle cell variables in 
    comprehensions within functions, and function default argument 
    expressions. Also handle basic variable shadowing.
  * Fixed bug with ``cell-var-from-loop`` checker: it no longer has 
    false negatives when both ``unused-variable`` and 
    ``used-before-assignment`` are disabled.
  * Fix false postive for ``invalid-all-format`` if the list or 
    tuple builtin functions are used
  * Config files can now contain environment variables
  * Fix false-positive ``used-before-assignment`` with an 
    assignment expression in a ``Return`` node
  * Added ``use-sequence-for-iteration``: Emitted when iterating 
    over an in-place defined ``set``.
  * ``CodeStyleChecker``
    * Limit ``consider-using-tuple`` to be emitted only for 
    in-place defined ``lists``.
    * Emit ``consider-using-tuple`` even if list contains a 
    ``starred`` expression.
  * Ignore decorators lines by similarities checker when ignore 
    signatures flag enabled
  * Allow ``true`` and ``false`` values in ``pylintrc`` for better 
    compatibility with ``toml`` config.
  * Class methods' signatures are ignored the same way as 
    functions' with similarities "ignore-signatures" option enabled
  * Improve performance when inferring ``Call`` nodes, by utilizing 
    caching.
  * Improve error message for invalid-metaclass when the node is an 
    Instance.
   
- Unskip the numpy inference tests. Note: always check with a clean
  environment (osc build --clean) -- gh#PyCQA/pylint#4877

OBS-URL: https://build.opensuse.org/request/show/925619
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=127
2021-10-16 09:40:35 +00:00
bf4d4a8242 Accepting request 913352 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/913352
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=25
2021-08-24 08:54:04 +00:00
c5965e1f08 Accepting request 913328 from home:bnavigator:branches:devel:languages:python
- Update to 2.9.6
  * Fix a false positive undefined-variable when variable name in
    decoration matches function argument
- Many more release notes from 2.9.0 to 2.9.5:
  * https://github.com/PyCQA/pylint/releases
  * Added time.clock to deprecated functions/methods for python 3.3
  * No longer emit consider-using-with for ThreadPoolExecutor and
    ProcessPoolExecutor as they have legitimate use cases without a
    with block.
  * The similarity checker no longer add three trailing whitespaces
    for empty lines in its report.
  * Python 3.10 is now supported.
  * Added various deprecated functions/methods for python 3.10,
    3.7, 3.6 and 3.3
  * setuptools_scm has been removed and replaced by tbump in order
    to not have hidden runtime dependencies to setuptools
- Drop pylint-pr4450-import-init.patch
- Add pylint-pr4816-astroid27.patch
  * gh#PyCQA/pylint#4816
  * remove astroid upper bound -- the previous pin broke a lot of
    packages through the pkg_resources check

OBS-URL: https://build.opensuse.org/request/show/913328
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=126
2021-08-20 13:19:59 +00:00
df599c0b93 Accepting request 897841 from devel:languages:python
- update to 2.8.3:
  * pin astroid to 2.5.6

OBS-URL: https://build.opensuse.org/request/show/897841
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=24
2021-06-11 20:30:15 +00:00
b26a14df86 - update to 2.8.3:
* pin astroid to 2.5.6

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=124
2021-06-06 12:11:54 +00:00
7d6fbd06d7 Accepting request 891395 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/891395
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=23
2021-05-12 17:31:16 +00:00
33e9865385 Accepting request 891349 from home:bnavigator:branches:devel:languages:python
-----------------------------------------------------------------
- Update to 2.8.2
  * Keep ``__pkginfo__.numversion`` a tuple to avoid breaking 
    pylint-django.
  * scm_setuptools has been added to the packaging.
  * Pylint's tags are now the standard form ``vX.Y.Z`` and not
    ``pylint-X.Y.Z`` anymore.
  * New warning message ``deprecated-class``. This message is
    emitted if import or call deprecated class of the standard
    library (like ``collections.Iterable`` that will be removed 
    Python 3.10).
  * Add numversion back (temporarily) in __pkginfo__ because it 
    broke Pylama and revert the unnecessary pylint.version   
    beaking change.
- Release 2.8.0
  * New refactoring message ``consider-using-with``. This message
    is emitted if resource-allocating functions or methods of the
    standard library (like ``open()`` or
    ``threading.Lock.acquire()  ``) that can be used as a context
    manager are called without a ``with`` block.
  * Resolve false positives on unused variables in decorator
    functions
  * Add new extension ``ConfusingConsecutiveElifChecker``. This
    optional checker emits a refactoring message (R5601
    ``confusing-consecutive-elif``) if if/elif statements with 
    different indentation levels follow   directly one after the
    other.  
  * New option ``--output=<file>`` to output result to a file 
    rather   than printing to stdout.
  * Use a prescriptive message for ``unidiomatic-typecheck``
  * Apply ``const-naming-style`` to module constants annotated with
    ``typing.Final``
  * The packaging is now done via setuptools exclusively. 
    ``doc``,   ``tests``, ``man``, ``elisp`` and ``Changelog`` are
    not packaged anymore - reducing the size of the package by 75%.
  * Debian packaging is now  (officially) done in https://salsa.  
    debian.org/python-team/packages/pylint.
  * The 'doc' extra-require has been removed.
  * ``__pkginfo__`` now only contain ``__version__`` (also   
    accessible with ``pylint.__version__``), other 
    meta-information   are still
    accessible with ``from importlib import metadata;metadata.  
    metadata('pylint')``.
  * COPYING has been renamed to LICENSE for standardization.
  * Fix false-positive ``used-before-assignment`` in function   
    returns.
  * Updated ``astroid`` to 2.5.3
  * Add ``consider-using-min-max-builtin`` check for if 
    statement   which could be replaced by Python builtin min or 
    max
  * Don't auto-enable postponed evaluation of type annotations 
    with Python 3.10
  * Update ``astroid`` to 2.5.4
  * Add new extension ``TypingChecker``. This optional checker 
    can   detect the use of deprecated typing aliases
    and can suggest the use of the alternative union syntax 
    where   possible.
    (For example, 'typing.Dict' can be replaced by 'dict', and   
    'typing.Unions' by '|', etc.)
    Make sure to check the config options if you plan on using it!
  * Reactivates old counts in report mode.
  * During detection of ``inconsistent-return-statements`` 
    consider   that ``assert False`` is a return node.
  * Run will not fail if score exactly equals ``config.
    fail_under``.
  * Functions that never returns may declare ``NoReturn`` as
    type hints, so that
    ``inconsistent-return-statements`` is not emitted.
  * Improved protected access checks to allow access inside 
    class   methods
  * Fix issue with PEP 585 syntax and the use of ``collections.
    abc.  Set``
  * Fix issue that caused class variables annotated with 
    ``typing.  ClassVar`` to be  
    identified as class constants. Now, class variables nnotated   
    with ``typing.Final`` are identified as such.
  * Continuous integration with read the doc has been added.
  * Don't show ``DuplicateBasesError`` for attribute access
  * Fix crash when checking ``setup.cfg`` for pylint config when   
    there are non-ascii characters in there 
  * Allow code flanked in backticks to be skipped by spellchecker
  * Allow Python tool directives (for black, flake8, zimports,   
    isort, mypy, bandit, pycharm) at beginning of comments to be   
    skipped by spellchecker
  * Fix issue that caused emacs pylint to fail when used with tramp
  * Improve check for invalid PEP 585 syntax inside functions
    if postponed evaluation of type annotations is enabled
    * Improve check for invalid PEP 585 syntax as default
      function arguments
- Release 2.7.4
  * Fix a problem with disabled msgid not being ignored
  * Fix issue with annotated class constants
- Release 2.7.3
  * Introduce logic for checking deprecated attributes in   
    DeprecationMixin.
  * Reduce usage of blacklist/whitelist terminology. Notably,   
    ``extension-pkg-allow-list`` is an alternative to
    ``extension-pkg-whitelist`` and the message
    ``blacklisted-name`` is now emitted as
    ``disallowed-name``. The previous names are accepted to
    maintain   backward compatibility.
  * Move deprecated checker to ``DeprecatedMixin``
  * Bump ``astroid`` version to ``2.5.2``
  * Fix false positive for ``method-hidden`` when using private   
    attribute and method
  * ``use-symbolic-message-instead`` now also works on legacy   
    messages like ``C0111`` (``missing-docstring``).
  * Remove unwanted print to stdout from ``_emit_no_member``
  * Introduce a command-line option to specify pyreverse output
    directory
  * Fix issue with Enums and
    ``class-attribute-naming-style=snake_case``
  * Add ``allowed-redefined-builtins`` option for fine tuning 
    ``redefined-builtin`` check.
  * Fix issue when executing with ``python -m pylint``
  * Exempt ``typing.TypedDict`` from ``too-few-public-methods``
    check.
  * Fix false-positive ``no-member`` for typed annotations without
    default value.
  * Add ``--class-const-naming-style`` for Enum constants and
    class variables annotated with ``typing.ClassVar``
   * Fix astroid.Inference error for undefined-variables with
    ``len()```
  * Fix column index on FIXME warning messages
  * Improve handling of assignment expressions, better edge case
    handling
  * Improve check if class is subscriptable PEP585
  * Fix documentation and filename handling of --import-graph
  * Fix false-positive for ``unused-import`` on class keyword
    arguments
  * Fix regression with plugins on PYTHONPATH if latter is cwd
- Add pylint-pr4450-import-init.patch
  gh#PyCQA/pylint#4450 fix broken tests

OBS-URL: https://build.opensuse.org/request/show/891349
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=122
2021-05-07 21:05:34 +00:00
Richard Brown
2718906818 Accepting request 880752 from devel:languages:python
- Update to 2.7.2
  * Fix False Positive on ``Enum.__members__.items()``,
  ``Enum.__members__.values``, and ``Enum.__members__.keys``
  * Properly strip dangerous sys.path entries (not just the first
    one)
  * Workflow and packaging improvements
- Release 2.7.1
  * Expose ``UnittestLinter`` in pylint.testutils
  * Don't check directories starting with '.' when using
    register_plugins
- Release 2.7.0
  * Introduce DeprecationMixin for reusable deprecation checks.
  * Fix false positive for ``builtin-not-iterating`` when ``map``
    receives iterable
  * Python 3.6+ is now required.
  * Fix false positive for ``builtin-not-iterating`` when ``zip``
    receives iterable
  * Add ``nan-comparison`` check for NaN comparisons
  * Bug fix for empty-comment message line number.
  * Only emit ``bad-reversed-sequence`` on dictionaries if below
    py3.8
  * Handle class decorators applied to function.
  * Add check for empty comments
  * Fix minor documentation issue in contribute.rst
  * Enums are now required to be named in UPPER_CASE by
    ``invalid-name``.
  * Add missing checks for deprecated functions.
  * Postponed evaluation of annotations are now recognized by
    default if python version is above 3.10
  * Fix column metadata for anomalous backslash lints
  * Drop support for Python 3.5
  * Add support for pep585 with postponed evaluation
  * Check alternative union syntax - PEP 604
  * Fix multiple false positives with assignment expressions
  * Fix TypedDict inherit-non-class false-positive Python 3.9+
  * Fix issue with nested PEP 585 syntax
  * Fix issue with nested PEP 604 syntax
  * Fix a crash in ``undefined-variable`` caused by chained
    attributes in metaclass
  * Fix false positive for ``not-async-context-manager`` when
    ``contextlib.asynccontextmanager`` is used
  * Fix linter multiprocessing pool shutdown (triggered warnings
    when runned in parallels with other pytest plugins)
  * Fix a false-positive emission of ``no-self-use`` and
    ``unused-argument`` for methods of generic structural types
    (`Protocol[T]`)
  * Fix bug that lead to duplicate messages when using
    ``--jobs 2`` or more.
  * Adds option ``check-protected-access-in-special-methods`` in
    the ClassChecker to activate/deactivate
    ``protected-access`` message emission for single underscore
      prefixed attribute in special methods.
  * Fix vulnerable regular expressions in ``pyreverse``
  * ``inconsistent-return-statements`` message is now emitted if
    one of ``try/except`` statement is not returning explicitly
    while the other do.
  * Fix ``useless-super-delegation`` false positive when default
    keyword argument is a dictionnary.
  * Fix a crash when a specified config file does not exist
  * Add support to ``ignored-argument-names`` in
    DocstringParameterChecker and adds ``useless-param-doc`` and
    ``useless-type-doc`` messages.
  * Enforce docparams consistently when docstring is not present
  * Fix ``duplicate-code`` false positive when lines only contain
    whitespace and non-alphanumeric characters (e.g. parentheses,
    bracket, comman, etc.)
  * Improve lint message for ``singleton-comparison`` with bools
  * Fix spell-checker crash on indented docstring lines that look
    like # comments
  * Fix AttributeError in checkers/refactoring.py
  * Improve sphinx directives spelling filter
  * Fix a bug with postponed evaluation when using aliases for
    annotations.
  * Fix minor documentation issues
  * Improve the performance of the line length check.
  * Removed incorrect deprecation of ``inspect.getfullargspec``
  * Fix ``signature-differs`` false positive for functions with
    variadics
  * Fix a crash in ``consider-using-enumerate`` when encountering
   ``range()`` without arguments
  * ``len-as-conditions`` is now triggered only for classes that
    are inheriting directly from list, dict, or set and not
    implementing the ``__bool__`` function, or from generators
    like range or list/dict/set comprehension. This should reduce
    the false positives for other classes, like pandas's DataFrame
    or numpy's Array.
  * Fixes duplicate-errors not working with -j2+
  * ``generated-members`` now matches the qualified name of members
  * Add check for bool function to ``len-as-condition``
  * Add ``simplifiable-condition`` check for extraneous constants
    in conditionals using and/or.
  * Add ``condition-evals-to-constant`` check for conditionals
    using and/or that evaluate to a constant.
  * Changed setup.py to work with distlib
  * New check: ``consider-using-generator``
    This check warns when a comprehension is used inside an
    ``any`` or ``all`` function, since it is unnecessary and
    should be replaced by a generator instead. Using a generator
    would be less code and way faster.   
  * Add Github Actions to replace Travis and AppVeyor in the 
    future

OBS-URL: https://build.opensuse.org/request/show/880752
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=22
2021-04-01 12:15:50 +00:00
0b1dc83cde Accepting request 880524 from home:bnavigator:branches:devel:languages:python
- Update to 2.7.2
  * Fix False Positive on ``Enum.__members__.items()``,
  ``Enum.__members__.values``, and ``Enum.__members__.keys``
  * Properly strip dangerous sys.path entries (not just the first
    one)
  * Workflow and packaging improvements
- Release 2.7.1
  * Expose ``UnittestLinter`` in pylint.testutils
  * Don't check directories starting with '.' when using
    register_plugins
- Release 2.7.0
  * Introduce DeprecationMixin for reusable deprecation checks.
  * Fix false positive for ``builtin-not-iterating`` when ``map``
    receives iterable
  * Python 3.6+ is now required.
  * Fix false positive for ``builtin-not-iterating`` when ``zip``
    receives iterable
  * Add ``nan-comparison`` check for NaN comparisons
  * Bug fix for empty-comment message line number.
  * Only emit ``bad-reversed-sequence`` on dictionaries if below
    py3.8
  * Handle class decorators applied to function.
  * Add check for empty comments
  * Fix minor documentation issue in contribute.rst
  * Enums are now required to be named in UPPER_CASE by
    ``invalid-name``.
  * Add missing checks for deprecated functions.
  * Postponed evaluation of annotations are now recognized by
    default if python version is above 3.10
  * Fix column metadata for anomalous backslash lints
  * Drop support for Python 3.5
  * Add support for pep585 with postponed evaluation
  * Check alternative union syntax - PEP 604
  * Fix multiple false positives with assignment expressions
  * Fix TypedDict inherit-non-class false-positive Python 3.9+
  * Fix issue with nested PEP 585 syntax
  * Fix issue with nested PEP 604 syntax
  * Fix a crash in ``undefined-variable`` caused by chained
    attributes in metaclass
  * Fix false positive for ``not-async-context-manager`` when
    ``contextlib.asynccontextmanager`` is used
  * Fix linter multiprocessing pool shutdown (triggered warnings
    when runned in parallels with other pytest plugins)
  * Fix a false-positive emission of ``no-self-use`` and
    ``unused-argument`` for methods of generic structural types
    (`Protocol[T]`)
  * Fix bug that lead to duplicate messages when using
    ``--jobs 2`` or more.
  * Adds option ``check-protected-access-in-special-methods`` in
    the ClassChecker to activate/deactivate
    ``protected-access`` message emission for single underscore
      prefixed attribute in special methods.
  * Fix vulnerable regular expressions in ``pyreverse``
  * ``inconsistent-return-statements`` message is now emitted if
    one of ``try/except`` statement is not returning explicitly
    while the other do.
  * Fix ``useless-super-delegation`` false positive when default
    keyword argument is a dictionnary.
  * Fix a crash when a specified config file does not exist
  * Add support to ``ignored-argument-names`` in
    DocstringParameterChecker and adds ``useless-param-doc`` and
    ``useless-type-doc`` messages.
  * Enforce docparams consistently when docstring is not present
  * Fix ``duplicate-code`` false positive when lines only contain
    whitespace and non-alphanumeric characters (e.g. parentheses,
    bracket, comman, etc.)
  * Improve lint message for ``singleton-comparison`` with bools
  * Fix spell-checker crash on indented docstring lines that look
    like # comments
  * Fix AttributeError in checkers/refactoring.py
  * Improve sphinx directives spelling filter
  * Fix a bug with postponed evaluation when using aliases for
    annotations.
  * Fix minor documentation issues
  * Improve the performance of the line length check.
  * Removed incorrect deprecation of ``inspect.getfullargspec``
  * Fix ``signature-differs`` false positive for functions with
    variadics
  * Fix a crash in ``consider-using-enumerate`` when encountering
   ``range()`` without arguments
  * ``len-as-conditions`` is now triggered only for classes that
    are inheriting directly from list, dict, or set and not
    implementing the ``__bool__`` function, or from generators
    like range or list/dict/set comprehension. This should reduce
    the false positives for other classes, like pandas's DataFrame
    or numpy's Array.
  * Fixes duplicate-errors not working with -j2+
  * ``generated-members`` now matches the qualified name of members
  * Add check for bool function to ``len-as-condition``
  * Add ``simplifiable-condition`` check for extraneous constants
    in conditionals using and/or.
  * Add ``condition-evals-to-constant`` check for conditionals
    using and/or that evaluate to a constant.
  * Changed setup.py to work with distlib
  * New check: ``consider-using-generator``
    This check warns when a comprehension is used inside an
    ``any`` or ``all`` function, since it is unnecessary and
    should be replaced by a generator instead. Using a generator
    would be less code and way faster.   
  * Add Github Actions to replace Travis and AppVeyor in the 
    future

OBS-URL: https://build.opensuse.org/request/show/880524
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=120
2021-03-22 22:11:38 +00:00
b6c7a26889 Accepting request 872839 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/872839
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=21
2021-02-16 21:34:40 +00:00
3aa3779e6a Accepting request 872810 from home:stroeder:branches:devel:languages:python
- Update to 2.6.2 (no ChangeLog entry for this version)
- Update to 2.6.1
  * Astroid version has been set as < 2.5 (#4093)

OBS-URL: https://build.opensuse.org/request/show/872810
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=118
2021-02-16 13:39:45 +00:00
fd9ac93b7c Accepting request 856770 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/856770
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=20
2020-12-21 11:35:08 +00:00
40ef7a0581 Accepting request 856768 from home:bnavigator:branches:devel:languages:python
- Skip the failing test for unused imports on python36 flavor
  gh#openSUSE/python-rpm-macros#66

OBS-URL: https://build.opensuse.org/request/show/856768
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=116
2020-12-17 22:17:13 +00:00
5247227788 Accepting request 829032 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/829032
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=19
2020-09-04 08:57:16 +00:00
Tomáš Chvátal
ddb1e8240f Accepting request 828459 from home:stroeder:branches:devel:languages:python
Update to 2.6.0

OBS-URL: https://build.opensuse.org/request/show/828459
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=114
2020-08-24 18:47:24 +00:00
b637b57257 Accepting request 820769 from devel:languages:python
- Added both_isort_4_5.patch (gh#PyCQA/pylint#3725) allowing
  work with both versions of isort.

OBS-URL: https://build.opensuse.org/request/show/820769
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=18
2020-07-15 10:14:01 +00:00
59ee9776a7 - Added both_isort_4_5.patch (gh#PyCQA/pylint#3725) allowing
work with both versions of isort.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=112
2020-07-13 22:42:29 +00:00
e8130b4e6b Accepting request 816633 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/816633
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=17
2020-06-29 19:14:24 +00:00
Tomáš Chvátal
66f75d15ab Accepting request 816629 from home:bnavigator:branches:devel:languages:python
- test import workarounds need rework
  gh#openSUSE/python-rpm-macros#48
  gh#PyCQA/pylint#3636 
- do not benchmark, just run the tests once

OBS-URL: https://build.opensuse.org/request/show/816629
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=110
2020-06-23 16:45:24 +00:00
19b32c20ba Accepting request 812777 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/812777
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=16
2020-06-11 12:45:11 +00:00
Tomáš Chvátal
5d172578f1 Accepting request 812727 from home:stroeder:branches:devel:languages:python
- Update to 2.5.3
  * Fix a regression where disable comments that have checker names with numbers in them are not parsed correctly
    Close #3666
  * `property-with-parameters` properly handles abstract properties
    Close #3600
  * `continue-in-finally` no longer emitted on Python 3.8 where it's now valid
    Close #3612
  * Fix a regression where messages with dash are not fully parsed
    Close #3604
  * In a TOML configuration file, it's now possible to use rich (non-string) types, such as list, integer or boolean instead of strings. For example, one can now define a *list* of message identifiers to enable like this::
      enable = [
          "use-symbolic-message-instead",
          "useless-suppression",
      ]
    Close #3538
  * Fix a regression where the score was not reported with multiple jobs
    Close #3547
  * Protect against `AttributeError` when checking `cell-var-from-loop`
    Close #3646

OBS-URL: https://build.opensuse.org/request/show/812727
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=108
2020-06-09 06:47:59 +00:00
ae844fe91b Accepting request 807165 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/807165
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=15
2020-05-28 07:07:49 +00:00
Tomáš Chvátal
f40b064547 Accepting request 807072 from home:bnavigator:branches:devel:languages:python
- Update to 2.5.2 
[...]
- needs python-toml now
- remove python2 compatibility requirements
- remove PYTHONDONTWRITEBYTECODE=1 -- its included in %pytest macro
- two tests need special treatment:
  * test_functional[undefined_variable] gh#PyCQA/pylint#3635
  * test_do_not_import_files_from_local_directory gh#PyCQA/pylint#3636

OBS-URL: https://build.opensuse.org/request/show/807072
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=106
2020-05-19 08:55:26 +00:00
7597e6d0bd Accepting request 788345 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/788345
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=14
2020-03-26 23:29:40 +00:00
7029327144 - set locale during build/test to fix build on older releases (bsc#1124989)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=104
2020-03-18 19:38:24 +00:00
6e6d2f4a4d Accepting request 750019 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/750019
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=13
2019-11-22 09:26:16 +00:00
34144c630f - Update to 2.4.4:
- Exempt all the names found in type annotations from ``unused-import``
    The previous code was assuming that only ``typing`` names need to be
    exempted, but we need to do that for the rest of the type comment
    names as well. Close #3112
  - Relax type import detection for names that do not come from
    the ``typing`` module Close #3191

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=102
2019-11-13 22:54:37 +00:00
863b0775ab - test_types_redefined enabled again, because
gh#PyCQA/pylint#3171 has been fixed.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=101
2019-11-08 23:16:08 +00:00
efdecb84ae Accepting request 743455 from devel:languages:python
- Update to 2.4.3:
  * Fix an issue with ``unnecessary-comprehension`` in comprehensions with additional repacking of elements.
  * ``import-outside-toplevel`` is emitted for ``ImportFrom`` nodes as well.
  * Do not emit ``no-method-argument`` for functions using positional only args.
  * ``consider-using-sys-exit`` is no longer emitted when `exit` is imported in the local scope.
  * `invalid-overridden-method` takes `abc.abstractproperty` in account
  * Fixed ``missing-yield-type-doc`` getting incorrectly raised when
  a generator does not document a yield type but has a type annotation.
  * ``typing.overload`` functions are exempted from ``too-many-function-args``

OBS-URL: https://build.opensuse.org/request/show/743455
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=12
2019-11-04 16:09:10 +00:00
f85563fedd - Update to 2.4.3:
* Fix an issue with ``unnecessary-comprehension`` in comprehensions with additional repacking of elements.
  * ``import-outside-toplevel`` is emitted for ``ImportFrom`` nodes as well.
  * Do not emit ``no-method-argument`` for functions using positional only args.
  * ``consider-using-sys-exit`` is no longer emitted when `exit` is imported in the local scope.
  * `invalid-overridden-method` takes `abc.abstractproperty` in account
  * Fixed ``missing-yield-type-doc`` getting incorrectly raised when
  a generator does not document a yield type but has a type annotation.
  * ``typing.overload`` functions are exempted from ``too-many-function-args``

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=99
2019-10-28 10:27:30 +00:00
7cec580844 Accepting request 743298 from home:stroeder:branches:devel:languages:python
- Update to 2.4.3

OBS-URL: https://build.opensuse.org/request/show/743298
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=98
2019-10-28 10:25:34 +00:00
ae71d143a4 Accepting request 736468 from devel:languages:python
- Update to 2.4.2:
  * Various bugfixes and compat with newer releases of astroid

- Skip pylint/test/extensions/test_redefined.py::test_types_redefined
  (gh#PyCQA/pylint#3171)

OBS-URL: https://build.opensuse.org/request/show/736468
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=11
2019-10-10 09:52:45 +00:00
Tomáš Chvátal
309b4b6000 - Update to 2.4.2:
* Various bugfixes and compat with newer releases of astroid

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=96
2019-10-09 11:36:29 +00:00
86ea9e502c - Skip pylint/test/extensions/test_redefined.py::test_types_redefined
(gh#PyCQA/pylint#3171)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=95
2019-10-08 01:01:46 +00:00
ec57c04538 Accepting request 720100 from devel:languages:python
- Do not install tests on system

OBS-URL: https://build.opensuse.org/request/show/720100
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=10
2019-08-07 11:54:31 +00:00
Tomáš Chvátal
30f807a735 - Do not install tests on system
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=93
2019-07-31 18:44:52 +00:00
6a9a10b5b9 Accepting request 708745 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/708745
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=9
2019-06-13 21:00:19 +00:00
Tomáš Chvátal
dd60ce74b6 Accepting request 708744 from home:stroeder:branches:devel:languages:python
- Added missing dependency on package python-typed-ast

OBS-URL: https://build.opensuse.org/request/show/708744
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=91
2019-06-08 09:18:19 +00:00
a2ef2f0747 Accepting request 682155 from devel:languages:python
- Update to 2.3.1:
  * Compat with astroid 2.2

OBS-URL: https://build.opensuse.org/request/show/682155
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=8
2019-03-08 10:01:26 +00:00
Tomáš Chvátal
9387ccad02 - Update to 2.3.1:
* Compat with astroid 2.2

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=89
2019-03-06 13:16:33 +00:00
33e0e005fa Accepting request 662457 from devel:languages:python
- Fix build on SLE12

OBS-URL: https://build.opensuse.org/request/show/662457
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=7
2019-01-08 11:17:00 +00:00
Tomáš Chvátal
8081fdc826 - Fix build on SLE12
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=87
2019-01-02 13:20:31 +00:00
f79b78668e Accepting request 655711 from devel:languages:python
- Update to 2.2.2:
  * Black is more used
  * Many bugfixes
  * For details see Changelog

- Fix fdupes call

OBS-URL: https://build.opensuse.org/request/show/655711
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=6
2018-12-14 19:46:34 +00:00
Tomáš Chvátal
b54ff2f4b0 - Update to 2.2.2:
* Black is more used
  * Many bugfixes
  * For details see Changelog

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=85
2018-12-06 14:47:31 +00:00
Tomáš Chvátal
853b184107 - Fix fdupes call
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=84
2018-12-06 14:35:47 +00:00
d6a2ba8aea Accepting request 636828 from devel:languages:python
- Depend on typed-ast as it is used in testsuite

- Version update to 2.1.1:
  * latest release supports only python3
  * Require 2.0 series astroid

OBS-URL: https://build.opensuse.org/request/show/636828
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=5
2018-09-26 12:53:42 +00:00
Tomáš Chvátal
8629de120c - Depend on typed-ast as it is used in testsuite
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=82
2018-09-20 07:31:22 +00:00
Tomáš Chvátal
64d8ddd5dd OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=81 2018-09-19 09:34:10 +00:00
Tomáš Chvátal
4a8b394c8b - Version update to 2.1.1:
* latest release supports only python3
  * Require 2.0 series astroid

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=80
2018-09-18 10:12:19 +00:00
f53d82eb4a Accepting request 623129 from devel:languages:python
- Enable tests and make sure they pass

- Update to 1.9.2:
  * New Python 3 checkers
  * Added two new Python 3 porting checks
  * Added a new deprecated-sys-function check
  * Added xreadlines-attribute check

- Update to 1.8.2:

OBS-URL: https://build.opensuse.org/request/show/623129
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=4
2018-07-21 08:07:44 +00:00
Tomáš Chvátal
576c1ce4a8 - Enable tests and make sure they pass
- Update to 1.8.2:

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=78
2018-07-16 12:50:03 +00:00
Tomáš Chvátal
34be894cbd Accepting request 622918 from home:stroeder:branches:devel:languages:python
- Update to 1.9.2:
  * New Python 3 checkers
  * Added two new Python 3 porting checks
  * Added a new deprecated-sys-function check
  * Added xreadlines-attribute check

OBS-URL: https://build.opensuse.org/request/show/622918
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=77
2018-07-16 11:31:44 +00:00
492acf0b07 Accepting request 568903 from devel:languages:python
- Switch to regular releases again
- Update to 1.8.3:
  * Various false positives were fixed
  * Many additional python3 tweaks
  * For more see ChangeLog
- Drop test conditional as it is always on
- Add py2 and py3 bconds to allow building in the respective
  enviroments
- Run only python3 tests it takes ages to finish and we should focus
  only on one variant
  * Also few tests currently fail and upstream is aware so put there
    ||:
    https://github.com/PyCQA/pylint/issues/1847

OBS-URL: https://build.opensuse.org/request/show/568903
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=3
2018-01-25 11:37:30 +00:00
Tomáš Chvátal
9f5250464b - Switch to regular releases again
- Update to 1.8.3:
  * Various false positives were fixed
  * Many additional python3 tweaks
  * For more see ChangeLog
- Drop test conditional as it is always on
- Add py2 and py3 bconds to allow building in the respective
  enviroments
- Run only python3 tests it takes ages to finish and we should focus
  only on one variant
  * Also few tests currently fail and upstream is aware so put there
    ||:
    https://github.com/PyCQA/pylint/issues/1847

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=75
2018-01-24 13:02:51 +00:00
7b1ca260d9 Accepting request 483385 from devel:languages:python
- uninstall alternatives in %postun
- add update-alternatives requires

- update for singlespec
- enable test suite for all pythons
- update to 1.7.0 git pre-release, for python 3.6 support
  (boo#1026174)
  * multitude of new checkers
  * support for namespace packages
  * dropped pylint-gui
  * see changes in /usr/share/doc/packages/python-pylint/ChangeLog

- Update to version 1.6.5
  see changes in /usr/share/doc/packages/python-pylint/ChangeLog

OBS-URL: https://build.opensuse.org/request/show/483385
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=2
2017-04-20 18:49:22 +00:00
Jan Matejek
0f1a293c08 - uninstall alternatives in %postun
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=73
2017-03-29 14:03:31 +00:00
Jan Matejek
d8e651dcb7 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=72 2017-03-22 14:34:00 +00:00
Jan Matejek
6ec4034e6d Accepting request 479733 from devel:languages:python:singlespec
- update for singlespec
- enable test suite for all pythons
- update to 1.7.0 git pre-release, for python 3.6 support
  (boo#1026174)
  * multitude of new checkers
  * support for namespace packages
  * dropped pylint-gui
  * see changes in /usr/share/doc/packages/python-pylint/ChangeLog

OBS-URL: https://build.opensuse.org/request/show/479733
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=71
2017-03-15 15:33:32 +00:00
f8866b17a8 Accepting request 449881 from devel:languages:python
Package for certbot. The Letsencrypt client.

OBS-URL: https://build.opensuse.org/request/show/449881
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pylint?expand=0&rev=1
2017-02-06 14:03:38 +00:00
a5ec8efde5 Accepting request 453820 from home:stroeder:branches:devel:languages:python
update to 1.6.5

OBS-URL: https://build.opensuse.org/request/show/453820
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=69
2017-02-01 17:41:51 +00:00
56105d0f03 Accepting request 449761 from home:ecsos
update source url. 
Please accepted it fast so i can submit it to factory. Need for other package.

OBS-URL: https://build.opensuse.org/request/show/449761
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=68
2017-01-12 12:21:38 +00:00
d0413f6d58 Accepting request 419366 from home:stroeder:branches:devel:languages:python
update to 1.6.4

OBS-URL: https://build.opensuse.org/request/show/419366
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=67
2016-08-19 06:13:38 +00:00
c6988b2751 Accepting request 407173 from home:stroeder:branches:devel:languages:python
update to 1.6.1

OBS-URL: https://build.opensuse.org/request/show/407173
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=66
2016-07-08 08:45:46 +00:00
586db1324c Accepting request 394206 from home:stroeder:branches:devel:languages:python
update to 1.5.5

OBS-URL: https://build.opensuse.org/request/show/394206
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=65
2016-05-09 11:25:08 +00:00
894a5af986 Accepting request 358962 from home:weberho:branches:devel:languages:python
* Update to version 1.5.4

Please forward it to factory: Could not submit 1.5.3 as the sources have been disappeared

OBS-URL: https://build.opensuse.org/request/show/358962
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=64
2016-02-15 20:18:39 +00:00
Todd R
034dc6cf30 Accepting request 353383 from home:TheBlackCat:branches:devel:languages:python
Update to version 1.5.3

OBS-URL: https://build.opensuse.org/request/show/353383
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=63
2016-01-13 10:21:11 +00:00
Michal Čihař
d02d259c2e Accepting request 328669 from home:Nijel:branches:devel:languages:python
- Update to 1.4.4:
    * Avoid breaking pylint when using logilab.common >= 1.0.

OBS-URL: https://build.opensuse.org/request/show/328669
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=62
2015-09-02 14:28:49 +00:00
Michal Čihař
e0299a12f8 Accepting request 290987 from home:Nijel:branches:devel:languages:python
- Update to 1.4.3:
    * Remove three warnings: star-args, abstract-class-little-used,
      abstract-class-not-used. These warnings don't add any real value
      and they don't imply errors or problems in the code.
    * Added a new option for controlling the peephole optimizer in astroid.
      The option ``--optimize-ast`` will control the peephole optimizer,
      which is used to optimize a couple of AST subtrees. The current problem
      solved by the peephole optimizer is when multiple joined strings,
      with the addition operator, are encountered. If the numbers of such
      strings is high enough, Pylint will then fail with a maximum recursion
      depth exceeded error, due to its visitor architecture. The peephole
      just transforms such calls, if it can, into the final resulting string
      and this exhibit a problem, because the visit_binop method stops being
      called (in the optimized AST it will be a Const node).

OBS-URL: https://build.opensuse.org/request/show/290987
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=61
2015-03-16 12:58:28 +00:00
Michal Čihař
d634419257 Accepting request 290392 from home:Nijel:branches:devel:languages:python
- Update to 1.4.2:
    * Don't require a docstring for empty modules. Closes issue #261.
    * Fix a false positive with `too-few-format-args` string warning,
      emitted when the string format contained a normal positional
      argument ('{0}'), mixed with a positional argument which did
      an attribute access ('{0.__class__}').
      Closes issue #463.
    * Take in account all the methods from the ancestors
      when checking for too-few-public-methods. Closes issue #471.
    * Catch enchant errors and emit 'invalid-characters-in-docstring'
      when checking for spelling errors. Closes issue #469.
    * Use all the inferred statements for the super-init-not-called
      check. Closes issue #389.
    * Add a new warning, 'unichr-builtin', emitted by the Python 3
      porting checker, when the unichr builtin is found. Closes issue #472.
    * Add a new warning, 'intern-builtin', emitted by the Python 3
      porting checker, when the intern builtin is found. Closes issue #473.
    * Add support for editable installations.
    * The HTML output accepts the `--msg-template` option. Patch by
      Dan Goldsmith.
    * Add 'map-builtin-not-iterating' (replacing 'implicit-map-evaluation'),
      'zip-builtin-not-iterating', 'range-builtin-not-iterating', and
      'filter-builtin-not-iterating' which are emitted by `--py3k` when the
      appropriate built-in is not used in an iterating context (semantics
      taken from 2to3).
    * Add a new warning, 'unidiomatic-typecheck', emitted when an explicit
      typecheck uses type() instead of isinstance(). For example,
      `type(x) == Y` instead of `isinstance(x, Y)`. Patch by Chris Rebert.
      Closes issue #299.
    * Add support for combining the Python 3 checker mode with the --jobs

OBS-URL: https://build.opensuse.org/request/show/290392
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=60
2015-03-12 09:26:01 +00:00
Michal Čihař
f7265cea79 Accepting request 286614 from home:Nijel:branches:devel:languages:python
- Update to 1.4.1:
    * Look only in the current function's scope for bad-super-call.
      Closes issue #403.
    * Check the return of properties when checking for not-callable.
      Closes issue #406.
    * Warn about using the input() or round() built-ins for Python 3.
      Closes issue #411.
    * Proper abstract method lookup while checking for
      abstract-class-instantiated. Closes issue #401.
    * Use a mro traversal for finding abstract methods. Closes issue #415.
    * Fix a false positive with catching-non-exception and tuples of
      exceptions.
    * Fix a false negative with raising-non-exception, when the raise used
      an uninferrable exception context.
    * Fix a false positive on Python 2 for raising-bad-type, when
      raising tuples in the form 'raise (ZeroDivisionError, None)'.
    * Fix a false positive with invalid-slots-objects, where the slot entry
      was an unicode string on Python 2. Closes issue #421.
    * Add a new warning, 'redundant-unittest-assert', emitted when using
      unittest's methods assertTrue and assertFalse with constant value
      as argument. Patch by Vlad Temian.
    * Add a new JSON reporter, usable through -f flag.
    * Add the method names for the 'signature-differs' and 'argument-differs'
      warnings. Closes issue #433.
    * Don't compile test files when installing.
    * Fix a crash which occurred when using multiple jobs and the files
      given as argument didn't exist at all.

OBS-URL: https://build.opensuse.org/request/show/286614
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=59
2015-02-18 12:26:53 +00:00
Michal Čihař
74b4f7bbbe Accepting request 264382 from home:Nijel:branches:devel:languages:python
- Lower tk dependency to Recommends as it's only needed for optional GUI

- Update to 1.4.0:
    * Added new options for controlling the loading of C extensions.
      By default, only C extensions from the stdlib will be loaded
      into the active Python interpreter for inspection, because they
      can run arbitrary code on import. The option 
      `--extension-pkg-whitelist` can be used to specify modules
      or packages that are safe to load.
    * Change default max-line-length to 100 rather than 80
    * Drop BaseRawChecker class which were only there for backward
      compat for a while now
    * Don't try to analyze string formatting with objects coming from
      function arguments. Closes issue #373.
    * Port source code to be Python 2/3 compatible. This drops the
      need for 2to3, but does drop support for Python 2.5.
    * Each message now comes with a confidence level attached, and
      can be filtered base on this level. This allows to filter out
      all messages that were emitted even though an inference failure
      happened during checking.
    * Improved presenting unused-import message. Closes issue #293.
    * Add new checker for finding spelling errors. New messages:
      wrong-spelling-in-comment, wrong-spelling-in-docstring.
      New options: spelling-dict, spelling-ignore-words.
    * Add new '-j' option for running checks in sub-processes.
    * Added new checks for line endings if they are mixed (LF vs CRLF)
      or if they are not as expected. New messages: mixed-line-endings,
      unexpected-line-ending-format. New option: expected-line-ending-format.
    * 'dangerous-default-value' no longer evaluates the value of the arguments,
      which could result in long error messages or sensitive data being leaked.

OBS-URL: https://build.opensuse.org/request/show/264382
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=58
2014-12-08 10:30:09 +00:00
Michal Čihař
a58715e83f Accepting request 259680 from home:Nijel:branches:devel:languages:python
- Update to 1.3.1:
    * Fix a false positive with string formatting checker, when
      encountering a string which uses only position-based arguments.
      Closes issue #285.
    * Fix a false positive with string formatting checker, when using
      keyword argument packing. Closes issue #288.    
    * Handle 'too-few-format-args' or 'too-many-format-args' for format
      strings with both named and positional fields. Closes issue #286.
    * Analyze only strings by the string format checker. Closes issue #287.
    * Properly handle nested format string fields. Closes issue #294.
    * Properly handle unicode format strings for Python 2.
      Closes issue #296.
    * Fix a false positive with 'too-few-format-args', when the format
      strings contains duplicate manual position arguments.
      Closes issue #310.
    * fixme regex handles comments without spaces after the hash.
      Closes issue #311.
    * Fix a crash encountered when looking for attribute docstrings.
    * Fix a crash which ocurred while checking for 'method-hidden',
      when the parent frame was something different than a function.

OBS-URL: https://build.opensuse.org/request/show/259680
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=57
2014-11-04 16:46:14 +00:00
Michal Čihař
0660d6a5cf Accepting request 244311 from home:Nijel:branches:devel:languages:python
- Use zip from pypi as this now the only distribution channel
- Add unzip to BuildRequires to above
- Adjusted dependencies as pylint 1.3.0 needs atroid 1.2.0 or newer
- Update to version 1.3.0
    * Allow hanging continued indentation for implicitly concatenated
      strings. Closes issue #232.
    * PyLint works under Python 2.5 again, and its test suite passes.
    * Fix some false positives for the cellvar-from-loop warnings.
      Closes issue #233.
    * Return new astroid class nodes when the inferencer can detect that
      that result of a function invocation on a type (like `type` or 
      `abc.ABCMeta`) is requested. Closes #205.
    * Emit 'undefined-variable' for undefined names when using the
      Python 3 `metaclass=` argument.
    * Checkers respect priority now. Close issue #229.
    * Fix a false positive regarding W0511. Closes issue #149.
    * Fix unused-import false positive with Python 3 metaclasses (#143).
    * Don't warn with 'bad-format-character' when encountering
      the 'a' format on Python 3.
    * Add multiple checks for PEP 3101 advanced string formatting:
     'bad-format-string', 'missing-format-argument-key',
     'unused-format-string-argument', 'format-combined-specification',
     'missing-format-attribute' and 'invalid-format-index'.
    * Issue broad-except and bare-except even if the number
      of except handlers is different than 1. Fixes issue #113.
    * Issue attribute-defined-outside-init for all cases, not just
      for the last assignment. Closes issue #262.
    * Emit 'not-callable' when calling properties. Closes issue #268.
    * Fix a false positive with unbalanced iterable unpacking,
      when encountering starred nodes. Closes issue #273.
    * Add new checks, 'invalid-slice-index' and 'invalid-sequence-index'

OBS-URL: https://build.opensuse.org/request/show/244311
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=56
2014-08-12 13:50:15 +00:00
Todd R
84dcb40a7d Accepting request 240187 from home:TheBlackCat:branches:devel:languages:python
Update to version 1.2.1

OBS-URL: https://build.opensuse.org/request/show/240187
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=55
2014-07-10 13:06:24 +00:00
Denisart Benjamin
abacb84f44 Accepting request 231234 from home:Nijel:branches:devel:languages:python
- update to version 1.2.0
    * Pass the current python paths to pylint process when invoked via
      epylint.  Fixes BitBucket issue #133.
    * Add -i / --include-ids and -s / --symbols back as completely ignored
      options. Fixes BitBucket issue #180.
    * Extend the number of cases in which logging calls are detected. Fixes
      bitbucket issue #182.
    * Improve pragma handling to not detect pylint:* strings in non-comments.
      Fixes BitBucket issue #79.
    * Do not crash with UnknownMessage if an unknown message ID/name appears
      in disable or enable in the configuration. Patch by Cole Robinson.
      Fixes bitbucket issue #170.
    * Add new warning 'eval-used', checking that the builtin function `eval`
      was used.
    * Make it possible to show a naming hint for invalid name by setting
      include-naming-hint. Also make the naming hints configurable. Fixes
      BitBucket issue #138.
    * Added support for enforcing multiple, but consistent name styles for
      different name types inside a single module; based on a patch written
      by morbo@google.com.
    * Also warn about empty docstrings on overridden methods; contributed
      by sebastianu@google.com.
    * Also inspect arguments to constructor calls, and emit relevant
      warnings; contributed by sebastianu@google.com.
    * Added a new configuration option logging-modules to make the list
      of module names that can be checked for 'logging-not-lazy' et. al.
      configurable; contributed by morbo@google.com.
    * ensure init-hooks is evaluated before other options, notably load-plugins
      (#166)
    * Python 2.5 support restored: fixed small issues preventing pylint to run
      on python 2.5. Bitbucket issues #50 and #62.
    * bitbucket #128: pylint doesn't crash when looking
      for used-before-assignment in context manager
      assignments.
    * Add new warning, 'bad-reversed-sequence', for checking that the
      reversed() builtin receive a sequence (implements __getitem__ and __len__,
      without being a dict or a dict subclass) or an instance which implements

OBS-URL: https://build.opensuse.org/request/show/231234
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=54
2014-04-24 19:25:29 +00:00
Denisart Benjamin
bef5c4faf8 Accepting request 224686 from home:apersaud:branches:devel:languages:python
update to latest version.

There are quite a few rpm-warnings that I don't know how to fix, but they have been present in the earlier warning too. (I submitted a patch to fix the FSF adress upstream, so those should be gone in the next version).

Seems like two *.orig files are present in the tar.gz file, removing them in %setup solved this issue.

OBS-URL: https://build.opensuse.org/request/show/224686
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=53
2014-03-05 10:06:55 +00:00
Sascha Peilicke
fd5a8b452d Drop _link after Factory removal
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=52
2014-02-24 02:22:25 +00:00
d33a936048 remove TODO
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=6
2009-12-19 11:02:34 +00:00
9c0029ba80 - update to 0.19.0 (bnc#555993):
* include James Lingard string format checker
   * include simple message (ids) listing by Vincent Férotin (#9791)
   * --errors-only does not hide fatal error anymore
   * include james Lingard patches for ++/-- and duplicate key in dicts
   * include James Lingard patches for function call arguments checker
   * improved flymake code and doc provided by Derek Harland
   * refactor and fix the imports checker
   * fix #18862: E0601 false positive with lambda functions
   * fix #8764: More than one statement on a single line false positive with
     try/except/finally
   * fix #9215: false undefined variable error in lambda function
   * fix for w0108 false positive (Nathaniel)
   * fix test/fulltest.sh
   * #5821 added a utility function to run pylint in another process (patch provide by Vincent Férotin)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=5
2009-12-18 20:20:17 +00:00
Peter Poeml
f994cbb786 - fix build on SLE10 by not including %{py_sitedir}/*egg-info in
the filelist there

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=4
2009-09-16 20:48:20 +00:00
8222dc8f48 fix rename provides
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=3
2009-09-09 19:18:16 +00:00
8f81b9a62d - update to 0.18.1:
* improved flymake code and doc provided by Derek Harland
  * refactor & fix the imports checker
  * fix #8764: More than one statement on a single line false positive with
    try/except/finally
  * Nathaniel's fix for w0108 false positive
  * fix 9215: false undefined variable error in lambda function

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=2
2009-09-09 19:16:54 +00:00
3d98fa2943 osc copypac from project:home:frispete:branches:devel:languages:python package:python-pylint revision:2
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=1
2009-09-09 16:57:28 +00:00
7 changed files with 329 additions and 271 deletions

View File

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

View File

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

3
pylint-4.0.3-gh.tar.gz Normal file
View File

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

View File

@@ -1,206 +0,0 @@
Index: pylint-3.2.6/pylint/testutils/configuration_test.py
===================================================================
--- pylint-3.2.6.orig/pylint/testutils/configuration_test.py
+++ pylint-3.2.6/pylint/testutils/configuration_test.py
@@ -12,7 +12,6 @@ import logging
import unittest
from pathlib import Path
from typing import Any, Dict
-from unittest.mock import Mock
from pylint.lint import Run
@@ -135,18 +134,15 @@ def get_expected_output(
def run_using_a_configuration_file(
configuration_path: Path | str, file_to_lint: str = __file__
-) -> tuple[Mock, Mock, Run]:
+) -> Run:
"""Simulate a run with a configuration without really launching the checks."""
configuration_path = str(configuration_path)
args = ["--rcfile", configuration_path, file_to_lint]
- # We do not capture the `SystemExit` as then the `runner` variable
- # would not be accessible outside the `with` block.
- with unittest.mock.patch("sys.exit") as mocked_exit:
- # Do not actually run checks, that could be slow. We don't mock
- # `PyLinter.check`: it calls `PyLinter.initialize` which is
- # needed to properly set up messages inclusion/exclusion
- # in `_msg_states`, used by `is_message_enabled`.
- check = "pylint.lint.pylinter.check_parallel"
- with unittest.mock.patch(check) as mocked_check_parallel:
- runner = Run(args)
- return mocked_exit, mocked_check_parallel, runner
+ # Do not actually run checks, that could be slow. We don't mock
+ # `PyLinter.check`: it calls `PyLinter.initialize` which is
+ # needed to properly set up messages inclusion/exclusion
+ # in `_msg_states`, used by `is_message_enabled`.
+ check = "pylint.lint.pylinter.check_parallel"
+ with unittest.mock.patch(check):
+ runner = Run(args, exit=False)
+ return runner
Index: pylint-3.2.6/requirements_test_min.txt
===================================================================
--- pylint-3.2.6.orig/requirements_test_min.txt
+++ pylint-3.2.6/requirements_test_min.txt
@@ -3,7 +3,7 @@
astroid==3.2.4 # Pinned to a specific version for tests
typing-extensions~=4.11
py~=1.11.0
-pytest~=7.4
+pytest~=8.2
pytest-benchmark~=4.0
pytest-timeout~=2.3
towncrier~=23.11
Index: pylint-3.2.6/tests/config/test_config.py
===================================================================
--- pylint-3.2.6.orig/tests/config/test_config.py
+++ pylint-3.2.6/tests/config/test_config.py
@@ -55,10 +55,8 @@ reports = "yes"
)
env_var = "tmp_path_env"
os.environ[env_var] = str(config_file)
- mock_exit, _, runner = run_using_a_configuration_file(
- f"${env_var}", file_to_lint_path
- )
- mock_exit.assert_called_once_with(0)
+ runner = run_using_a_configuration_file(f"${env_var}", file_to_lint_path)
+ assert runner.linter.msg_status == 0
check_configuration_file_reader(runner)
@@ -226,7 +224,7 @@ def test_disable_before_enable_all_takes
runner = Run(["--disable=fixme", "--enable=all", str(FIXME_MODULE)], exit=False)
assert not runner.linter.stats.by_msg
- _, _, toml_runner = run_using_a_configuration_file(
+ toml_runner = run_using_a_configuration_file(
HERE
/ "functional"
/ "toml"
@@ -239,7 +237,7 @@ def test_enable_before_disable_all_takes
runner = Run(["--enable=fixme", "--disable=all", str(FIXME_MODULE)], exit=False)
assert runner.linter.stats.by_msg
- _, _, toml_runner = run_using_a_configuration_file(
+ toml_runner = run_using_a_configuration_file(
HERE
/ "functional"
/ "toml"
Index: pylint-3.2.6/tests/config/test_functional_config_loading.py
===================================================================
--- pylint-3.2.6.orig/tests/config/test_functional_config_loading.py
+++ pylint-3.2.6/tests/config/test_functional_config_loading.py
@@ -57,10 +57,8 @@ def default_configuration(
) -> PylintConfiguration:
empty_pylintrc = tmp_path / "pylintrc"
empty_pylintrc.write_text("")
- mock_exit, _, runner = run_using_a_configuration_file(
- str(empty_pylintrc), file_to_lint_path
- )
- mock_exit.assert_called_once_with(0)
+ runner = run_using_a_configuration_file(str(empty_pylintrc), file_to_lint_path)
+ assert runner.linter.msg_status == 0
return runner.linter.config.__dict__
@@ -88,10 +86,8 @@ def test_functional_config_loading(
warnings.filterwarnings(
"ignore", message="The use of 'MASTER'.*", category=UserWarning
)
- mock_exit, _, runner = run_using_a_configuration_file(
- configuration_path, file_to_lint_path
- )
- mock_exit.assert_called_once_with(expected_code)
+ runner = run_using_a_configuration_file(configuration_path, file_to_lint_path)
+ assert runner.linter.msg_status == expected_code
out, err = capsys.readouterr()
# 'rstrip()' applied, so we can have a final newline in the expected test file
assert expected_output.rstrip() == out.rstrip(), msg
Index: pylint-3.2.6/tests/lint/unittest_lint.py
===================================================================
--- pylint-3.2.6.orig/tests/lint/unittest_lint.py
+++ pylint-3.2.6/tests/lint/unittest_lint.py
@@ -20,6 +20,7 @@ from pathlib import Path
from shutil import copy, rmtree
from unittest import mock
+import astroid
import platformdirs
import pytest
from astroid import nodes
@@ -1053,7 +1054,9 @@ def test_finds_pyi_file() -> None:
exit=False,
)
assert run.linter.current_file is not None
- assert run.linter.current_file.endswith("foo.pyi")
+ assert run.linter.current_file.endswith(
+ "a_module_that_we_definitely_dont_use_in_the_functional_tests.pyi"
+ )
def test_recursive_finds_pyi_file() -> None:
@@ -1068,7 +1071,9 @@ def test_recursive_finds_pyi_file() -> N
exit=False,
)
assert run.linter.current_file is not None
- assert run.linter.current_file.endswith("foo.pyi")
+ assert run.linter.current_file.endswith(
+ "a_module_that_we_definitely_dont_use_in_the_functional_tests.pyi"
+ )
def test_no_false_positive_from_pyi_stub() -> None:
@@ -1126,6 +1131,9 @@ def test_recursive_ignore(ignore_paramet
):
module = os.path.abspath(join(REGRTEST_DATA_DIR, *regrtest_data_module))
assert module in linted_file_paths
+ # We lint the modules in `regrtest` in other tests as well. Prevent test pollution by
+ # explicitly clearing the astroid caches.
+ astroid.MANAGER.clear_cache()
def test_source_roots_globbing() -> None:
Index: pylint-3.2.6/tests/regrtest_data/pyi/a_module_that_we_definitely_dont_use_in_the_functional_tests.pyi
===================================================================
--- /dev/null
+++ pylint-3.2.6/tests/regrtest_data/pyi/a_module_that_we_definitely_dont_use_in_the_functional_tests.pyi
@@ -0,0 +1,5 @@
+# This module is named in a particular way to prevent test pollution. It was previously named 'foo' and
+# all mentions of 'foo' were wrongly resolved to this stub file.
+foo = 1
+
+def three_item_iterable(): ...
Index: pylint-3.2.6/tests/regrtest_data/pyi/foo.pyi
===================================================================
--- pylint-3.2.6.orig/tests/regrtest_data/pyi/foo.pyi
+++ /dev/null
@@ -1,4 +0,0 @@
-foo = 1
-
-def three_item_iterable():
- ...
Index: pylint-3.2.6/tests/regrtest_data/uses_module_with_stub.py
===================================================================
--- pylint-3.2.6.orig/tests/regrtest_data/uses_module_with_stub.py
+++ pylint-3.2.6/tests/regrtest_data/uses_module_with_stub.py
@@ -1,5 +1,5 @@
"""If the stub is preferred over the .py, this might emit not-an-iterable"""
-from pyi.foo import three_item_iterable
+from pyi.a_module_that_we_definitely_dont_use_in_the_functional_tests import three_item_iterable
for val in three_item_iterable():
print(val)
Index: pylint-3.2.6/tests/regrtest_data/pyi/a_module_that_we_definitely_dont_use_in_the_functional_tests.py
===================================================================
--- /dev/null
+++ pylint-3.2.6/tests/regrtest_data/pyi/a_module_that_we_definitely_dont_use_in_the_functional_tests.py
@@ -0,0 +1,2 @@
+def three_item_iterable():
+ return [1, 2, 3]
Index: pylint-3.2.6/tests/regrtest_data/pyi/foo.py
===================================================================
--- pylint-3.2.6.orig/tests/regrtest_data/pyi/foo.py
+++ /dev/null
@@ -1,2 +0,0 @@
-def three_item_iterable():
- return [1, 2, 3]

View File

@@ -1,3 +1,297 @@
-------------------------------------------------------------------
Mon Nov 17 04:33:49 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 4.0.3:
* Add Enum dunder methods _generate_next_value_, _missing_, _numeric_repr_,
_add_alias_, and _add_value_alias_ to the list passed to
--good-dunder-names.
* Fixed false positive for invalid-name with typing.Annotated.
* Fix false positive for f-string-without-interpolation with template
strings when using format spec.
* Fix a false positive when an UPPER_CASED class attribute was raising an
invalid-name when typed with Final.
* Fix a false positive for unbalanced-tuple-unpacking when a tuple is
assigned to a function call and the structure of the function's return
value is ambiguous.
* Make 'ignore' option work as expected again.
* Fix crash for consider-using-assignment-expr when a variable annotation
without assignment is used as the if test expression.
* Fix crash for prefer-typing-namedtuple and consider-math-not-float when
a slice object is called.
* Fix false positive for invalid-name on a partially uninferable
module-level constant.
* Fix a false positive for invalid-name on exclusive module-level
assignments composed of three or more branches.
* Fix false positive for invalid-name for TypedDict instances.
* Fix false-positive for bare-name-capture-pattern if a case guard is used.
* Check enums created with the Enum() functional syntax to pass against the
--class-rgx for the invalid-name check, like other enums.
* Pylint now supports Python 3.14.
* Pylint's inference engine (astroid) is now much more precise,
understanding implicit booleanness and ternary expressions. The required
astroid version is now 4.0.0.
* Handling of invalid-name at the module level was patchy. Now,
module-level constants that are reassigned are treated as variables and
checked against --variable-rgx rather than --const-rgx. Module-level
lists, sets, and objects can pass against either regex.
* invalid-name now distinguishes module-level constants that are assigned
only once from those that are reassigned and now applies --variable-rgx
to the latter.
* The unused pylintrc argument to PyLinter.__init__() is deprecated and
will be removed.
* pyreverse Run was changed to no longer call sys.exit() in its __init__.
* The suggestion-mode option was removed, as pylint now always emits
user-friendly hints instead of false-positive error messages.
* The async.py checker module has been renamed to async_checker.py since
async is a Python keyword and cannot be imported directly. This allows
for better testing and extensibility of the async checker functionality.
* The message-id of continue-in-finally was changed from E0116 to W0136.
The warning is now emitted for every Python version since it will raise a
syntax warning in Python 3.14.
* Removed support for nmp.NaN alias for numpy.NaN being recognized in
nan-comparison.
* Version requirement for isort has been bumped to >=5.0.0.
* comparison-of-constants now uses the unicode from the ast instead of
reformatting from the node's values preventing some bad formatting due to
utf-8 limitation.
* The use-implicit-booleaness-not-x checks now distinguish between
comparisons used in boolean contexts and those that are not, enabling
them to provide more accurate refactoring suggestions.
* The verbose option now outputs the filenames of the files that have been
checked.
* colorized reporter now colorizes messages/categories that have been
configured as fail-on in red inverse.
* Enhanced support for @property decorator in pyreverse to correctly
display return types of annotated properties when generating class
diagrams.
* Handle deferred evaluation of annotations in Python 3.14.
* pyreverse: add support for colorized output when using output format mmd
(MermaidJS) and html.
* pypy 3.11 is now officially supported.
* Add support for Python 3.14.
* Add naming styles for ParamSpec and TypeVarTuple that align with the
TypeVar style.
* Add match-statements checker and the following message:
bare-name-capture-pattern.
* Add new check async-context-manager-with-regular-with to detect async
context managers used with regular with statements instead of async with.
* Add break-in-finally warning. Using break inside the finally clause will
raise a syntax warning in Python 3.14.
* Add new checks for invalid uses of class patterns in match.
* Add additional checks for suboptimal uses of class patterns in match.
* Add a consider-math-not-float message. float("nan") and float("inf") are
slower than their counterpart math.inf and math.nan by a factor of 4
(notwithstanding the initial import of math) and they are also not well
typed when using mypy.
* Fix a false positive for used-before-assignment when a variable defined
under an if and via a named expression (walrus operator) is used later
when guarded under the same if test.
* Fix no-name-in-module for members of concurrent.futures with Python 3.14.
* Fix false negative for used-before-assignment when a TYPE_CHECKING import
is used as a type annotation prior to erroneous usage.
* Match cases are now counted as edges in the McCabe graph and will
increase the complexity accordingly.
* Check module-level constants with type annotations for invalid-name.
* Fix false negative where function-redefined (E0102) was not reported for
functions with a leading underscore.
* We now raise a logging-too-few-args for format string with no
interpolation arguments at all.
* Fix false negative for used-before-assignment when a function is defined
inside a TYPE_CHECKING guard block and used later.
* Fix a false negative for possibly-used-before-assignment when a variable
is conditionally defined and later assigned to a type-annotated variable.
* Fix false negative for deprecated-module when a __import__ method is used
instead of import sentence.
* Remove support for launching pylint with Python 3.9.
* Fix used-before-assignment for PEP 695 type aliases and parameters.
* No longer flag undeprecated functions in importlib.resources as
deprecated.
* Fix false positive inconsistent-return-statements when using quit() or
exit() functions.
* Fix false positive undefined-variable (E0602) for for-loop variable
shadowing patterns like for item in item: when the variable was
previously defined.
* Fixed crash in 'unnecessary-list-index-lookup' when starting an
enumeration using minus the length of an iterable inside a dict
comprehension when the len call was only made in this dict comprehension,
and not elsewhere.
-------------------------------------------------------------------
Sun Sep 14 18:17:44 UTC 2025 - Dirk Müller <dmueller@suse.com>
- update to 3.3.8:
* Fix false positives for `possibly-used-before-assignment`
when variables are exhaustively assigned within a `match` block.
* Fix false positive for `missing-raises-doc` and `missing-
yield-doc` when the method length is less than docstring-min-
length.
* Fix a false positive for ``unused-variable`` when multiple
except handlers bind the same name under a try block.
* Fix false-negative for ``used-before-assignment`` with ``from
__future__ import annotations`` in function definitions.
* Fix a bug in Pyreverse where aggregations and associations
were included in diagrams regardless of the selected
--filter-mode (such as PUB_ONLY, ALL, etc.).
* Fix double underscores erroneously rendering as bold in
pyreverse's Mermaid output.
-------------------------------------------------------------------
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>
- 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.
-------------------------------------------------------------------
Tue Apr 8 03:29:21 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- 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).
-------------------------------------------------------------------
Thu Sep 26 09:24:16 UTC 2024 - Ben Greiner <code@bnavigator.de>
- Revert restriction to python3.
-------------------------------------------------------------------
Wed Sep 25 11:52:49 UTC 2024 - ecsos <ecsos@opensuse.org>
- Fix build error under Leap.
-------------------------------------------------------------------
Tue Sep 24 13:46:18 UTC 2024 - Dirk Müller <dmueller@suse.com>
- 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``
extension to detect the use of unnecessary default type args
for ``typing.Generator`` and ``typing.AsyncGenerator``.
* Fix computation of never-returning function: `Never` is
handled in addition to `NoReturn`, and priority is given to
the explicit `--never-returning-functions` option.
* Fix a false negative for `await-outside-async` when await is
inside Lambda.
* Fix a false negative for ``duplicate-argument-name`` by
including ``positional-only``, ``*args`` and ``**kwargs``
arguments in the check.
* Fix false negative for `multiple-statements` when multiple
statements are present on `else` and `finally` lines of
`try`.
* Fix false negatives when `isinstance` does not have exactly
two arguments.
* pylint now emits a `too-many-function-args` or `no-value-for-
parameter` appropriately for `isinstance` calls.
* `--enable` with `--disable=all` now produces an error, when
an unknown msg code is used. Internal `pylint` messages are
no longer affected by `--disable=all`.
* Impossible to compile regexes for paths in the configuration
or argument given to pylint won't crash anymore but raise an
argparse error and display the error message from
``re.compile`` instead.
* Fix a bug where a ``tox.ini`` file with pylint configuration
was ignored and it exists in the current directory.
* ``.cfg`` and ``.ini`` files containing a ``Pylint``
configuration may now use a section named ``[pylint]``. This
enhancement impacts the scenario where these file types are
used as defaults when they are present and have not been
explicitly referred to, using the ``--rcfile`` option.
* Improve file discovery for directories that are not python
packages.
* Remove support for launching pylint with Python 3.8.
* Code that supports Python 3.8 can still be linted with the
``--py-version=3.8`` setting.
* Add support for Python 3.13.
* All variables, classes, functions and file names containing
the word 'similar', when it was, in fact, referring to
'symilar' (the standalone program for the duplicate-code
check) were renamed to 'symilar'.
* Remove old-style classes (Python 2) code and remove check for
new-style class since everything is new-style in Python 3.
Updated doc for exception checker to remove reference to new
style class.
- update to 3.2.7:
* Fixed a false positive `unreachable` for `NoReturn` coroutine
functions.
* Fix crash in refactoring checker when calling a lambda bound
as a method.
* Fix a crash in ``undefined-loop-variable`` when providing the
``iterable`` argument to ``enumerate()``.
* Fix to address indeterminacy of error message in case a
module name is same as another in a separate namespace.
- drop support-astroid-3.3.patch pytest-8.patch: upstream
-------------------------------------------------------------------
Mon Aug 12 06:12:36 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
@@ -2615,4 +2909,3 @@ Sun Jul 17 15:17:57 CEST 2005 - garloff@suse.de
- Initial creation of package pylint-0.7.0.
-------------------------------------------------------------------

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pylint
#
# Copyright (c) 2024 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
@@ -16,46 +16,51 @@
#
%{?sle15_python_module_pythons}
%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.2.6
Version: 4.0.3
Release: 0
Summary: Syntax and style checker for Python code
License: GPL-2.0-or-later
URL: https://github.com/pylint-dev/pylint
# Tests are no longer packaged in the PyPI sdist, use GitHub archive
Source: https://github.com/pylint-dev/pylint/archive/refs/tags/v%{version}.tar.gz#/pylint-%{version}-gh.tar.gz
# PATCH-FIX-UPSTREAM pytest-8.patch gh#pylint-dev/pylint#9576
Patch0: pytest-8.patch
# PATCH-FIX-UPSTREAM One commit of gh#pylint-dev/pylint#9851
Patch1: support-astroid-3.3.patch
BuildRequires: %{python_module base >= 3.7.2}
BuildRequires: %{python_module base >= 3.10}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-dill >= 0.3.6
Requires: python-dill >= 0.3.7
Requires: python-platformdirs >= 2.2
Requires: python-tomlkit >= 0.10.1
Requires: (python-astroid >= 3.3.0 with python-astroid < 3.4.0~dev0)
Requires: (python-isort >= 4.2.5 with python-isort < 6)
Requires: (python-astroid >= 4.0.2 with python-astroid < 4.1.0~dev0)
Requires: (python-isort >= 5 with python-isort < 8)
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
Requires: python-typing-extensions >= 4.9
%if 0%{?python_version_nodots} < 310
Requires: python-typing-extensions >= 3.10
%endif
%if %{with tests}
# SECTION pylint deps
BuildRequires: %{python_module astroid >= 3.3.0 with %python-astroid < 3.4.0~dev0}
BuildRequires: %{python_module dill >= 0.3.6}
BuildRequires: %{python_module isort >= 4.2.5 with %python-isort < 6}
BuildRequires: %{python_module astroid >= 4.0.2 with %python-astroid < 4.1.0~dev0}
BuildRequires: %{python_module dill >= 0.3.7}
BuildRequires: %{python_module enchant}
BuildRequires: %{python_module isort >= 5 with %python-isort < 8}
BuildRequires: %{python_module mccabe >= 0.6 with %python-mccabe < 0.8}
BuildRequires: %{python_module platformdirs >= 2.2}
BuildRequires: %{python_module tomli >= 1.1.0 if %python-base < 3.11}
BuildRequires: %{python_module tomlkit >= 0.10.1}
BuildRequires: %{python_module typing-extensions >= 4.9}
BuildRequires: %{python_module typing-extensions >= 3.10 if %python-base < 3.10}
# /SECTION
# SECTION test deps
BuildRequires: %{python_module GitPython > 3}
@@ -66,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
@@ -101,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}
@@ -108,15 +118,14 @@ done
export LC_ALL="en_US.UTF-8"
# reruns: tests/pyreverse is incredibly non-deterministic in failures
donttest="test_linter_with_unpickleable_plugins_is_pickleable"
# Fails with pytest-8 gh#pylint-dev/pylint#9545
donttest+=" or recursion_error_3159"
# Fails with python 3.12
donttest+=" or test_functional_relation_extraction"
# Broken upstream
donttest+=" or test_functional"
%pytest -n auto --ignore tests/benchmark --reruns 5 -rsfER -k "not ($donttest)"
donttest+=" or test_functional or test_progress_reporting"
%pytest -vv -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

View File

@@ -1,35 +0,0 @@
From 8afd218a922b9b572c508ada228b7ed27a607014 Mon Sep 17 00:00:00 2001
From: Jacob Walls <jacobtylerwalls@gmail.com>
Date: Sun, 4 Aug 2024 11:46:21 -0400
Subject: [PATCH 2/4] Bump astroid to 3.3.0
---
pyproject.toml | 2 +-
requirements_test_min.txt | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
Index: pylint-3.2.6/pyproject.toml
===================================================================
--- pylint-3.2.6.orig/pyproject.toml
+++ pylint-3.2.6/pyproject.toml
@@ -41,7 +41,7 @@ dependencies = [
# Also upgrade requirements_test_min.txt.
# Pinned to dev of second minor update to allow editable installs and fix primer issues,
# see https://github.com/pylint-dev/astroid/issues/1341
- "astroid>=3.2.4,<=3.3.0-dev0",
+ "astroid>=3.3.0,<=3.4.0-dev0",
"isort>=4.2.5,<6,!=5.13.0",
"mccabe>=0.6,<0.8",
"tomli>=1.1.0;python_version<'3.11'",
Index: pylint-3.2.6/requirements_test_min.txt
===================================================================
--- pylint-3.2.6.orig/requirements_test_min.txt
+++ pylint-3.2.6/requirements_test_min.txt
@@ -1,6 +1,6 @@
.[testutils,spelling]
# astroid dependency is also defined in pyproject.toml
-astroid==3.2.4 # Pinned to a specific version for tests
+astroid==3.3.0 # Pinned to a specific version for tests
typing-extensions~=4.11
py~=1.11.0
pytest~=8.2