| 1 |
Full changelog |
| 2 |
============== |
| 3 |
|
| 4 |
What's New in Pylint 1.8.1? |
| 5 |
--------------------------- |
| 6 |
Release date: 2017-12-15 |
| 7 |
|
| 8 |
* Wrong version number in __pkginfo__. |
| 9 |
|
| 10 |
|
| 11 |
What's New in Pylint 1.8? |
| 12 |
------------------------- |
| 13 |
|
| 14 |
Release date: 2017-12-15 |
| 15 |
|
| 16 |
* Respect disable=... in config file when running with --py3k. |
| 17 |
|
| 18 |
* New warning ``shallow-copy-environ`` added |
| 19 |
|
| 20 |
Shallow copy of os.environ doesn't work as people may expect. os.environ |
| 21 |
is not a dict object but rather a proxy object, so any changes made |
| 22 |
on copy may have unexpected effects on os.environ |
| 23 |
|
| 24 |
Instead of copy.copy(os.environ) method os.environ.copy() should be |
| 25 |
used. |
| 26 |
|
| 27 |
See https://bugs.python.org/issue15373 for details. |
| 28 |
|
| 29 |
Closes #1301 |
| 30 |
|
| 31 |
* Do not display no-absolute-import warning multiple times per file. |
| 32 |
|
| 33 |
* ``trailing-comma-tuple`` refactor check now extends to assignment with |
| 34 |
more than one element (such as lists) |
| 35 |
|
| 36 |
Closes #1713 |
| 37 |
|
| 38 |
* Fixing u'' string in :ref:`superfluous-parens` message |
| 39 |
|
| 40 |
Closes #1420 |
| 41 |
|
| 42 |
* ``abstract-class-instantiated`` is now emitted for all inference paths. |
| 43 |
|
| 44 |
Closes #1673 |
| 45 |
|
| 46 |
* Add set of predefined naming style to ease configuration of checking |
| 47 |
naming conventions. |
| 48 |
|
| 49 |
Closes #1013 |
| 50 |
|
| 51 |
* Added a new check, ``keyword-arg-before-vararg`` |
| 52 |
|
| 53 |
This is emitted for function definitions |
| 54 |
in which keyword arguments are placed before variable |
| 55 |
positional arguments (\*args). |
| 56 |
|
| 57 |
This may lead to args list getting modified if keyword argument's value |
| 58 |
is not provided in the function call assuming it will take default value |
| 59 |
provided in the definition. |
| 60 |
|
| 61 |
* The ``invalid-name`` check contains the name of the template that caused the failure |
| 62 |
|
| 63 |
Closes #1176 |
| 64 |
|
| 65 |
* Using the -j flag won't start more child linters than needed. |
| 66 |
|
| 67 |
Closes #1614 |
| 68 |
|
| 69 |
* Fix a false positive with bad-python3-import on relative imports |
| 70 |
|
| 71 |
Closes #1608 |
| 72 |
|
| 73 |
* Added a new Python 3 check, ``non-ascii-bytes-literals`` |
| 74 |
|
| 75 |
Closes #1545 |
| 76 |
|
| 77 |
* Added a couple of new Python 3 checks for accessing dict methods in non-iterable context |
| 78 |
|
| 79 |
* Protocol checks (:ref:`not-a-mapping`, :ref:`not-an-iterable` and co.) aren't emitted on classes with dynamic getattr |
| 80 |
|
| 81 |
* Added a new warning, :ref:`bad-thread-instantiation`' |
| 82 |
|
| 83 |
This message is emitted when the threading.Thread class does not |
| 84 |
receive the target argument, but receives just one argument, which |
| 85 |
is by default the group parameter. |
| 86 |
|
| 87 |
Closes #1327 |
| 88 |
|
| 89 |
* In non-quiet mode, absolute path of used config file is logged to |
| 90 |
standard error. |
| 91 |
|
| 92 |
Closes #1519 |
| 93 |
|
| 94 |
* Raise meaningful exception for invalid reporter class being selected |
| 95 |
|
| 96 |
When unknown reporter class will be selected as Pylint reporter, |
| 97 |
meaningful error message would be raised instead of bare ``ImportError`` |
| 98 |
or ``AttributeError`` related to module or reporter class being not found. |
| 99 |
|
| 100 |
Closes #1388 |
| 101 |
|
| 102 |
* Added a new Python 3 check for accessing removed functions from itertools |
| 103 |
like ``izip`` or ``ifilterfalse`` |
| 104 |
|
| 105 |
* Added a new Python 3 check for accessing removed fields from the types |
| 106 |
module like ``UnicodeType`` or ``XRangeType`` |
| 107 |
|
| 108 |
* Added a new Python 3 check for declaring a method ``next`` that would have |
| 109 |
been treated as an iterator in Python 2 but a normal function in Python 3. |
| 110 |
|
| 111 |
* Added a new key-value pair in json output. The key is ``message-id`` |
| 112 |
and the value is the message id. |
| 113 |
|
| 114 |
Closes #1512 |
| 115 |
|
| 116 |
* Added a new Python 3.0 check for raising a StopIteration inside a generator. |
| 117 |
The check about raising a StopIteration inside a generator is also valid if the exception |
| 118 |
raised inherit from StopIteration. |
| 119 |
|
| 120 |
Closes #1385 |
| 121 |
|
| 122 |
* Added a new warning, ``raising-format-tuple``, to detect multi-argument |
| 123 |
exception construction instead of message string formatting. |
| 124 |
|
| 125 |
* Added a new check for method of logging module that concatenate string via + operator |
| 126 |
|
| 127 |
Closes #1479 |
| 128 |
|
| 129 |
* Added parameter for limiting number of suggestions in spellchecking checkers |
| 130 |
|
| 131 |
* Fix a corner-case in ``consider-using-ternary`` checker. |
| 132 |
|
| 133 |
When object ``A`` used in ``X and A or B`` was falsy in boolean context, |
| 134 |
Pylint incorrectly emitted non-equivalent ternary-based suggestion. |
| 135 |
After a change message is correctly not emitted for this case. |
| 136 |
|
| 137 |
Closes #1559 |
| 138 |
|
| 139 |
* Added ``suggestion-mode`` configuration flag. When flag is enabled, informational |
| 140 |
message is emitted instead of cryptic error message for attributes accessed on |
| 141 |
c-extensions. |
| 142 |
|
| 143 |
Closes #1466 |
| 144 |
|
| 145 |
* Fix a false positive ``useless-super-delegation`` message when |
| 146 |
parameters default values are different from those used in the base class. |
| 147 |
|
| 148 |
Closes #1085 |
| 149 |
|
| 150 |
* Disabling :ref:`wrong-import-order`', :ref:`wrong-import-position`', or |
| 151 |
:ref:`ungrouped-imports`' for a single line now prevents that line from |
| 152 |
triggering violations on subsequent lines. |
| 153 |
|
| 154 |
Closes #1336 |
| 155 |
|
| 156 |
* Added a new Python check for inconsistent return statements inside method or function. |
| 157 |
|
| 158 |
Closes #1267 |
| 159 |
|
| 160 |
* Fix ``superfluous-parens`` false positive related to handling logical statements |
| 161 |
involving ``in`` operator. |
| 162 |
|
| 163 |
Closes #574 |
| 164 |
|
| 165 |
* ``function-redefined`` message is no longer emitted for functions and |
| 166 |
methods which names matches dummy variable name regular expression. |
| 167 |
|
| 168 |
Closes #1369 |
| 169 |
|
| 170 |
* Fix ``missing-param-doc`` and ``missing-type-doc`` false positives when |
| 171 |
mixing ``Args`` and ``Keyword Args`` in Google docstring. |
| 172 |
|
| 173 |
Closes #1409 |
| 174 |
|
| 175 |
* Fix ``missing-docstring`` false negatives when modules, classes, or methods |
| 176 |
consist of compound statements that exceed the ``docstring-min-length`` |
| 177 |
|
| 178 |
* Fix ``useless-else-on-loop`` false positives when break statements are |
| 179 |
deeply nested inside loop. |
| 180 |
|
| 181 |
Closes #1661 |
| 182 |
|
| 183 |
* Fix no ``wrong-import-order`` message emitted on ordering of first and third party |
| 184 |
libraries. With this fix, pylint distinguishes third and first party |
| 185 |
modules when checking import order. |
| 186 |
|
| 187 |
Closes #1702 |
| 188 |
|
| 189 |
* Fix ``pylint disable=fixme`` directives ignored for comments following the |
| 190 |
last statement in a file. |
| 191 |
|
| 192 |
Closes #1681 |
| 193 |
|
| 194 |
* Fix ``line-too-long`` message deactivated by wrong disable directive. |
| 195 |
The directive ``disable=fixme`` doesn't deactivate anymore the emission |
| 196 |
of ``line-too-long`` message for long commented lines. |
| 197 |
|
| 198 |
Closes #1741 |
| 199 |
|
| 200 |
* If the rcfile specified on the command line doesn't exist, then an |
| 201 |
IOError exception is raised. |
| 202 |
|
| 203 |
Closes #1747 |
| 204 |
|
| 205 |
* Fix the wrong scope of the ``disable=`` directive after a commented line. |
| 206 |
For example when a ``disable=line-too-long`` directive is at the end of |
| 207 |
a long commented line, it no longer disables the emission of ``line-too-long`` |
| 208 |
message for lines that follow. |
| 209 |
|
| 210 |
Closes #1742 |