| 1 |
************************** |
| 2 |
What's New In Pylint 1.2 |
| 3 |
************************** |
| 4 |
|
| 5 |
Release date: 2014-04-30 |
| 6 |
|
| 7 |
* Restore the ability to specify the init-hook option via the |
| 8 |
configuration file, which was accidentally broken in 1.2.0. |
| 9 |
|
| 10 |
* Add a new warning [bad-continuation] for badly indented continued |
| 11 |
lines. |
| 12 |
|
| 13 |
* Emit :ref:`assignment-from-none` when the function contains bare returns. |
| 14 |
|
| 15 |
Closes BitBucket #191 |
| 16 |
|
| 17 |
* Added a new warning for closing over variables that are |
| 18 |
defined in loops. |
| 19 |
|
| 20 |
Closes BitBucket #176 |
| 21 |
|
| 22 |
* Do not warn about \u escapes in string literals when Unicode literals |
| 23 |
are used for Python 2.*. |
| 24 |
|
| 25 |
Closes BitBucket #151 |
| 26 |
|
| 27 |
* Extend the checking for :ref:`unbalanced-tuple-unpacking` and |
| 28 |
:ref:`unpacking-non-sequence` to instance attribute unpacking as well. |
| 29 |
|
| 30 |
* Fix explicit checking of python script (1.2 regression) |
| 31 |
|
| 32 |
Closes #219 |
| 33 |
|
| 34 |
* Restore --init-hook, renamed accidentally into --init-hooks in 1.2.0 |
| 35 |
|
| 36 |
Closes #211 |
| 37 |
|
| 38 |
* Add 'indexing-exception' warning, which detects that indexing |
| 39 |
an exception occurs in Python 2 (behaviour removed in Python 3). |
| 40 |
|
| 41 |
|
| 42 |
What's New in Pylint 1.2.0? |
| 43 |
=========================== |
| 44 |
Release date: 2014-04-18 |
| 45 |
|
| 46 |
* Pass the current python paths to pylint process when invoked via |
| 47 |
epylint. |
| 48 |
|
| 49 |
Closes BitBucket #133. |
| 50 |
|
| 51 |
* Add -i / --include-ids and -s / --symbols back as completely ignored |
| 52 |
options. |
| 53 |
|
| 54 |
Closes BitBucket #180. |
| 55 |
|
| 56 |
* Extend the number of cases in which logging calls are detected. |
| 57 |
|
| 58 |
Closes BitBucket #182. |
| 59 |
|
| 60 |
* Improve pragma handling to not detect pylint:* strings in non-comments. |
| 61 |
|
| 62 |
Closes BitBucket #79. |
| 63 |
|
| 64 |
* Do not crash with UnknownMessage if an unknown message ID/name appears |
| 65 |
in disable or enable in the configuration. Patch by Cole Robinson. |
| 66 |
|
| 67 |
Closes BitBucket #170 |
| 68 |
|
| 69 |
* Add new warning :ref:`eval-used`, checking that the builtin function ``eval`` was used. |
| 70 |
|
| 71 |
* Make it possible to show a naming hint for invalid name by setting |
| 72 |
include-naming-hint. Also make the naming hints configurable. |
| 73 |
|
| 74 |
Closes BitBucket #138 |
| 75 |
|
| 76 |
* Added support for enforcing multiple, but consistent name styles for |
| 77 |
different name types inside a single module; based on a patch written |
| 78 |
by [email protected]. |
| 79 |
|
| 80 |
* Also warn about empty docstrings on overridden methods; contributed |
| 81 |
by [email protected]. |
| 82 |
|
| 83 |
* Also inspect arguments to constructor calls, and emit relevant |
| 84 |
warnings; contributed by [email protected]. |
| 85 |
|
| 86 |
* Added a new configuration option logging-modules to make the list |
| 87 |
of module names that can be checked for :ref:`logging-not-lazy` et. al. |
| 88 |
configurable; contributed by [email protected]. |
| 89 |
|
| 90 |
* ensure init-hooks is evaluated before other options, notably load-plugins |
| 91 |
|
| 92 |
Closes #166 |
| 93 |
|
| 94 |
* Python 2.5 support restored: fixed small issues preventing pylint to run |
| 95 |
on python 2.5. |
| 96 |
|
| 97 |
Closes BitBucket #50 |
| 98 |
Closes BitBucket #62 |
| 99 |
|
| 100 |
* pylint doesn't crash when looking for :ref:`used-before-assignment` in context manager assignments. |
| 101 |
|
| 102 |
Closes BitBucket #128 |
| 103 |
|
| 104 |
* Add new warning, :ref:`bad-reversed-sequence`, for checking that the |
| 105 |
reversed() builtin receive a sequence (implements ``__getitem__`` and ``__len__``, |
| 106 |
without being a dict or a dict subclass) or an instance which implements |
| 107 |
``__reversed__``. |
| 108 |
|
| 109 |
* Mark ``file`` as a bad function when using python2 |
| 110 |
|
| 111 |
Closes #8 |
| 112 |
|
| 113 |
* Add new warning :ref:`bad-exception-context`, checking |
| 114 |
that ``raise ... from ...`` uses a proper exception context |
| 115 |
(None or an exception). |
| 116 |
|
| 117 |
* Enhance the check for :ref:`used-before-assignment` to look |
| 118 |
for 'nonlocal' uses. |
| 119 |
|
| 120 |
* Emit :ref:`undefined-all-variable` if a package's __all__ |
| 121 |
variable contains a missing submodule. |
| 122 |
|
| 123 |
Closes #126 |
| 124 |
|
| 125 |
* Add a new warning :ref:`abstract-class-instantiated` for checking |
| 126 |
that abstract classes created with ``abc`` module and |
| 127 |
with abstract methods are instantiated. |
| 128 |
|
| 129 |
* Do not warn about :ref:`return-arg-in-generator` in Python 3.3+. |
| 130 |
|
| 131 |
* Do not warn about :ref:`abstract-method` when the abstract method |
| 132 |
is implemented through assignment |
| 133 |
|
| 134 |
Closes #155 |
| 135 |
|
| 136 |
* Improve cyclic import detection in the case of packages, patch by Buck Golemon |
| 137 |
|
| 138 |
* Add new warnings for checking proper class __slots__: |
| 139 |
``invalid-slots-object`` and ``invalid-slots``. |
| 140 |
|
| 141 |
* Search for rc file in `~/.config/pylintrc` if `~/.pylintrc` |
| 142 |
doesn't exists |
| 143 |
|
| 144 |
Closes #121 |
| 145 |
|
| 146 |
* Don't register the new style checker w/ python >= 3 |
| 147 |
|
| 148 |
* Fix :ref:`unused-import` false positive w/ augment assignment |
| 149 |
|
| 150 |
Closes #78 |
| 151 |
|
| 152 |
* Fix :ref:`access-member-before-definition` false negative wrt aug assign |
| 153 |
|
| 154 |
Closes #164 |
| 155 |
|
| 156 |
* Do not attempt to analyze non python file, e.g. .so file |
| 157 |
|
| 158 |
Closes #122 |