Revisions of python-pylint
Ana Guerrero (anag+factory)
accepted
request 1160816
from
Dirk Mueller (dirkmueller)
(revision 41)
- 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
Ana Guerrero (anag+factory)
accepted
request 1133805
from
Dirk Mueller (dirkmueller)
(revision 40)
- 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.
Ana Guerrero (anag+factory)
accepted
request 1129239
from
Dirk Mueller (dirkmueller)
(revision 39)
- 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
Dominique Leuenberger (dimstar_suse)
accepted
request 1090268
from
Markéta Machová (mcalabkova)
(revision 37)
Dominique Leuenberger (dimstar_suse)
accepted
request 1087260
from
Factory Maintainer (factory-maintainer)
(revision 36)
Automatic submission by obs-autosubmit
Dominique Leuenberger (dimstar_suse)
accepted
request 1080001
from
Dirk Mueller (dirkmueller)
(revision 35)
- 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
Dominique Leuenberger (dimstar_suse)
accepted
request 1057060
from
Dirk Mueller (dirkmueller)
(revision 34)
- 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.
Dominique Leuenberger (dimstar_suse)
accepted
request 1056749
from
Dirk Mueller (dirkmueller)
(revision 33)
- 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.
Dominique Leuenberger (dimstar_suse)
accepted
request 1012118
from
Markéta Machová (mcalabkova)
(revision 32)
Dominique Leuenberger (dimstar_suse)
accepted
request 1005711
from
Dirk Mueller (dirkmueller)
(revision 31)
Dominique Leuenberger (dimstar_suse)
accepted
request 1005486
from
Dirk Mueller (dirkmueller)
(revision 30)
Dominique Leuenberger (dimstar_suse)
accepted
request 1003053
from
Dirk Mueller (dirkmueller)
(revision 29)
- 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.
Dominique Leuenberger (dimstar_suse)
accepted
request 1001087
from
Markéta Machová (mcalabkova)
(revision 28)
Dominique Leuenberger (dimstar_suse)
accepted
request 940014
from
Dirk Mueller (dirkmueller)
(revision 27)
Dominique Leuenberger (dimstar_suse)
accepted
request 925644
from
Dirk Mueller (dirkmueller)
(revision 26)
Dominique Leuenberger (dimstar_suse)
accepted
request 913352
from
Markéta Machová (mcalabkova)
(revision 25)
Dominique Leuenberger (dimstar_suse)
accepted
request 897841
from
Dirk Mueller (dirkmueller)
(revision 24)
- update to 2.8.3: * pin astroid to 2.5.6
Richard Brown (RBrownSUSE)
accepted
request 880752
from
Benjamin Greiner (bnavigator)
(revision 22)
- 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
Displaying revisions 1 - 20 of 41