--- - branch: MAIN date: Tue Jul 17 10:08:42 UTC 2018 files: - new: '1.27' old: '1.26' path: pkgsrc/devel/py-pylint/Makefile pathrev: pkgsrc/devel/py-pylint/Makefile@1.27 type: modified - new: '1.11' old: '1.10' path: pkgsrc/devel/py-pylint/PLIST pathrev: pkgsrc/devel/py-pylint/PLIST@1.11 type: modified - new: '1.16' old: '1.15' path: pkgsrc/devel/py-pylint/distinfo pathrev: pkgsrc/devel/py-pylint/distinfo@1.16 type: modified id: 20180717T100842Z.db42f36b0071225f611e989b23069e6b2da375a3 log: | py-pylint: updated to 2.0.0 Pylint 2.0: * trailing-comma-tuple can be emitted for return statements as well. * Fix a false positive inconsistent-return-statements message when exception is raised inside an else statement. * ImportFrom nodes correctly use the full name for the import sorting checks. * [].extend and similar builtin operations don't emit dict-*-not-iterating with the Python 3 porting checker * Add a check consider-using-dict-comprehension which is emitted if for dict initialization the old style with list comprehensions is used. * Add a check consider-using-set-comprehension which is emitted if for set initialization the old style with list comprehensions is used. * logging-not-lazy is emitted whenever pylint infers that a string is built with addition * Add a check chained-comparison which is emitted if a boolean operation can be simplified by chaining some of its operations. e.g "a < b and b < c", can be simplified as "a < b < c". * Add a check consider-using-in for comparisons of a variable against multiple values with "==" and "or"s instead of checking if the variable is contained "in" a tuple of those values. * in is considered iterating context for some of the Python 3 porting checkers * Add --ignore-none flag to control if pylint should warn about no-member where the owner is None * Fix a false positive related to too-many-arguments and bounded __get__ methods * mcs as the first parameter of metaclass's __new__ method was replaced by cls * assignment-from-no-return considers methods as well. * Support typing.TYPE_CHECKING for *unused-import* errors * Inferred classes at a function level no longer emit invalid-name when they don't respect the variable regular expression * Added basic support for postponed evaluation of function annotations. * Fix a bug with missing-kwoa and variadics parameters * simplifiable-if-statement takes in account only when assigning to same targets * Make len-as-condition test more cases, such as len() < 1 or len <= 0' * Fix false-positive line-too-long message emission for commented line at the end of a module * Fix false-positive bad-continuation for with statements * Don't warn about stop-iteration-return when using next() over itertools.count * Add a check consider-using-get for unidiomatic usage of value/default-retrieval for a key from a dictionary * invalid-slice-index is not emitted when the slice is used as index for a complex object. We only use a handful of known objects (list, set and friends) to figure out if we should emit invalid-slice-index when the slice is used to subscript an object. * Don't emit unused-import anymore for typing imports used in type comments. * Add a new check 'useless-import-alias'. * Add comparison-with-callable to warn for comparison with bare callable, without calling it. * Don't warn for missing-type-doc and/or missing-return-type-doc, if type annotations exist on the function signature for a parameter and/or return type. * Add --exit-zero option for continuous integration scripts to more easily call Pylint in environments that abort when a program returns a non-zero (error) status code. * Warn if the first argument of an instance/ class method gets assigned * New check comparison-with-itself to check comparison between same value. * Add a new warning, 'logging-fstring-interpolation', emitted when f-string is used within logging function calls. * Don't show 'useless-super-delegation' if the subclass method has different type annotations. * Add unhashable-dict-key check. * Don't warn that a global variable is unused if it is defined by an import * Skip wildcard import check for __init__.py. * The Python 3 porting mode can now run with Python 3 as well. * too-few-public-methods is not emitted for dataclasses. * New verbose mode option, enabled with --verbose command line flag, to display of extra non-checker-related output. It is disabled by default. * undefined-loop-variable takes in consideration non-empty iterred objects before emitting * Add support for numpydoc optional return value names. * singleton-comparison accounts for negative checks * Add a check consider-using-in for comparisons of a variable against multiple values with "==" and "or"s instead of checking if the variable is contained "in" a tuple of those values. * defaultdict and subclasses of dict are now handled for dict-iter-* checks * logging-format-interpolation also emits when f-strings are used instead of % syntax. * Don't trigger misplaced-bare-raise when the raise is in a finally clause * Add a new check, possibly-unused-variable. This is similar to unused-variable, the only difference is that it is emitted when we detect a locals() call in the scope of the unused variable. The locals() call could potentially use the said variable, by consuming all values that are present up to the point of the call. This new check allows to disable this error when the user intentionally uses locals() to consume everything. * no-else-return accounts for multiple cases The check was a bit overrestrictive because we were checking for return nodes in the .orelse node. At that point though the if statement can be refactored to not have the orelse. This improves the detection of other cases, for instance it now detects TryExcept nodes that are part of the .else branch. * Added two new checks, invalid-envvar-value and invalid-envvar-default. The former is trigger whenever pylint detects that environment variable manipulation functions uses a different type than strings, while the latter is emitted whenever the said functions are using a default variable of different type than expected. * Add a check consider-using-join for concatenation of strings using str.join(sequence) * Add a check consider-swap-variables for swapping variables with tuple unpacking * Add new checker try-except-raise that warns the user if an except handler block has a raise statement as its first operator. The warning is shown when there is a bare raise statement, effectively re-raising the exception that was caught or the type of the exception being raised is the same as the one being handled. * Don't crash on invalid strings when checking for logging-format-interpolation * Exempt __doc__ from triggering a redefined-builtin __doc__ can be used to specify a docstring for a module without passing it as a first-statement string. * Fix false positive bad-whitespace from function arguments with default values and annotations * Fix stop-iteration-return false positive when next builtin has a default value in a generator * Fix emission of false positive no-member message for class with "private" attributes whose name is mangled. * Fixed a crash which occurred when Uninferable wasn't properly handled in stop-iteration-return * Use the proper node to get the name for redefined functions * Don't crash when encountering bare raises while checking inconsistent returns * Fix a false positive inconsistent-return-statements message when if statement is inside try/except. * Fix a false positive inconsistent-return-statements message when while loop are used. * Correct column number for whitespace conventions. Previously the column was stuck at 0 * Fix unused-argument false positives with overshadowed variable in dictionary comprehension. * Fix false positive inconsistent-return-statements message when never returning functions are used (i.e sys.exit for example). * Fix error when checking if function is exception, as in bad-exception-context. * Fix false positive inconsistent-return-statements message when a function is defined under an if statement. * New useless-return message when function or method ends with a "return" or "return None" statement and this is the only return statement in the body. * Fix false positive inconsistent-return-statements message by avoiding useless exception inference if the exception is not handled. * Fix bad thread instantiation check when target function is provided in args. * Fixed false positive when a numpy Attributes section follows a Parameters section * Fix incorrect file path when file absolute path contains multiple path_strip_prefix strings. * Fix false positive undefined-variable for lambda argument in class definitions * Add of a new checker that warns the user if some messages are enabled or disabled by id instead of symbol. * Suppress false-positive not-callable messages from certain staticmethod descriptors * Fix indentation handling with tabs * Fix false-positive bad-continuation error * Fix false positive unused-variable in lambda default arguments * Updated the default report format to include paths that can be clicked on in some terminals (e.g. iTerm). * Fix inline def behavior with too-many-statements checker * Fix KeyError raised when using docparams and NotImplementedError is documented. * Fix 'method-hidden' raised when assigning to a property or data descriptor. * Fix emitting useless-super-delegation when changing the default value of keyword arguments. * Expand ignored-argument-names include starred arguments and keyword arguments * Fix false-postive undefined-variable in nested lambda * Fix false-positive bad-whitespace message for typing annoatations with ellipses in them module: pkgsrc subject: 'CVS commit: pkgsrc/devel/py-pylint' unixtime: '1531822122' user: adam