14
0
forked from pool/python-pylint
Commit Graph

57 Commits

Author SHA256 Message Date
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Thomas Bechtold
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