summaryrefslogtreecommitdiff
path: root/ChangeLog
Commit message (Collapse)AuthorAgeFilesLines
* `property-with-parameters` properly handles abstract propertiesproperty-with-parameter-abstractClaudiu Popa2020-05-141-0/+4
| | | | Close #3600
* Start 2.5.3Claudiu Popa2020-05-141-0/+6
|
* Prepare 2.5.2pylint-2.5.2Claudiu Popa2020-05-051-1/+1
|
* ``pylint.Run`` accepts ``do_exit`` as a deprecated parameterClaudiu Popa2020-05-051-0/+9
| | | | | | | We need to allow various third party libraries that depend on `pylint` to still use `do_exit` until they can move over to `exit`. Close #3590
* Prepare 2.5.1pylint-2.5.1Claudiu Popa2020-05-051-1/+1
|
* Allow linting directories without `__init__.py`Claudiu Popa2020-05-021-0/+4
| | | | | This was a regressin in 2.5. Close #3528
* Allow package files to be properly discovered with multiple jobsClaudiu Popa2020-05-021-0/+4
| | | | Close #3524
* `no-value-for-parameter` variadic detection has improved for assign statementsClaudiu Popa2020-05-021-0/+4
| | | | Close #3563
* Revert pylint.Run's `exit` parameter to ``do_exit``Claudiu Popa2020-05-011-0/+6
| | | | | | This has been inadvertently changed several releases ago to ``do_exit``. Close #3533
* Fix a crash in `method-hidden` lookup for unknown base classesClaudiu Popa2020-04-281-0/+9
| | | | | | | | The patch replaces `mro()` with `ancestors()` as the former is not fully capable of generating the complete linearization when dealing with ambiguous inferences. Close #3527
* Prepare 2.5.0 release for pylintClaudiu Popa2020-04-271-1/+1
|
* Brought back logging-fstring-interpolationAshley Whetter2020-04-271-0/+7
|
* ``unidiomatic-typecheck`` is no longer emitted for ``in`` and ``not in`` ↵Claudiu Popa2020-04-271-0/+4
| | | | | | | | | | operators The original use case for this check was to catch old style type checking idioms such as `type(x) is ...`, but it should not have been extended to handle `in` operators as well. Close #3337
* Fix false negative for undefined-variable when using class attribute in ↵Andrew Simmons2020-04-221-0/+4
| | | | comprehension (#3494)
* Fix false positive for ``undefined-variable`` when using class attribute as ↵Andrew Simmons2020-04-221-1/+2
| | | | return type annotation (#1976)
* Fix false positive for ``undefined-variable`` when using class attribute in ↵Andrew Simmons2020-04-221-0/+4
| | | | decorator (#511)
* Don't HTML-escape JSON messages (#3467)Clément Pit-Claudel2020-04-031-0/+3
| | | | | | | The JSON module already escapes special characters as needed. This was already reported in #2769 and partially addressed by 6b1adc668727ebfbd84763b14b65676cc11febec, but that commit still quotes angle brackets ('<' and '>').
* Positional-only argument annotations are taken in account for ``unused-import``Claudiu Popa2020-03-281-0/+4
| | | | | | This has been handled on astroid's side with https://github.com/PyCQA/astroid/commit/2e1ba8eb47694439215b866564c4699039b86ec9 Close #3462
* Positional-only arguments are taken in account for ``useless-super-delegation``Claudiu Popa2020-03-281-0/+2
|
* Fix overzealous `arguments-differ` for variadicsmattlbeck2020-03-271-0/+9
| | | | | | | | | No message is emitted if the overriding function provides positional or keyword variadics in its signature that can feasibly accept and pass on all parameters given by the overridden function. Closes #1482 Closes #1553
* Add --list-extensions commandanubh-v2020-03-251-0/+3
| | | | Closes #3303
* Allow used variables to be properly consumed when different checks are ↵Claudiu Popa2020-03-251-0/+4
| | | | | | | | | | | | | | | | | enabled / disabled When everything else was disabled, except `unused-import`, pylint was emitting `unused-import` even though the imports in questions were used. The emission occurred due to the fact that disabling all the messages also disabled the calling of `visit_name`, which deals with `undefined-variable`. This resulted in `visit_name` not marking as consumed the earlier import as expected. This fix still allows `visit_name` to be called, but the emission of `undefined-variable` and friends is controlled via a flag prior to emission call site. This is somewhat of a "temporary" hack, a better solution would be to separate the emission / checking of undefined variable from marking the variables as consumed. Close #3445
* Recognize classes that explicitly inherit from `ABC` or define ↵Slavfox2020-03-241-0/+5
| | | | | | | | | | | | | | | | | | | `metaclass=ABCMeta` as abstract (#3446) Related to #179 and #3098. Tweaks `utils.class_is_abstract` to not depend purely on the presence of abstract methods, and instead also return True for classes that either explicitly inherit from `abc.ABC`, or explicitly define `abc.ABCMeta` as a metaclass. This means that classes like: class Foo(AbstractParent, ABC): ... class Bar(AbstractParent, metaclass=ABCMeta): ... no longer trigger W0223.
* Refresh the docs a bit in preparation for the releaseClaudiu Popa2020-03-131-3/+3
|
* Allow non-ASCII characters in identifiers in the invalid-name rule and add ↵bernie gray2020-03-111-0/+4
| | | | | | | non-ascii-name check Non-ASCII characters are now allowed by ``invalid-name`` check. Also this commit adds a new check ``non-ascii-name``, which is used to detect identifiers with non-ASCII characters.
* ``no-self-use`` is no longer emitted for typing stubs.Claudiu Popa2020-03-071-0/+4
| | | | Close #3439
* Fix a false positive of ``self-assigning-variable`` on tuple unpacking.Claudiu Popa2020-03-031-0/+4
| | | | Close #3433
* Emit ``invalid-name`` for variables defined in loops at module level.Claudiu Popa2020-03-021-0/+4
| | | | Close #2695
* Fix a false positive for ``undefined-variable`` when ``__class__`` is usedClaudiu Popa2020-02-291-0/+4
| | | | Close #3090
* dangerous-default-value accounts for kwargs defaults. Close #3373 (#3423)Gabriel R Sezefredo2020-02-291-0/+4
| | | Signed-off-by: Gabriel R. Sezefredo <--global>
* `function-redefined`` exempts function redefined on a condition.Claudiu Popa2020-02-281-0/+4
| | | | Close #2410
* ``typing.overload`` functions are exempted from docstring checks (#3430)Claudiu Popa2020-02-281-0/+4
| | | Close #3350
* Allow isinstance-second-argument-not-valid-type to catch more casesClaudiu Popa2020-02-131-3/+2
|
* Add warning for the case where second argument to isinstance is not a type ↵Anubhav2020-02-131-0/+5
| | | | | | | | | | (#3404) The second argument to isinstance must be either a type or a tuple of types. Close #3308 Co-authored-by: Claudiu Popa <pcmanticore@gmail.com>
* Add notes-rgx option for fixme checker (#3394)Benny2020-02-131-0/+4
| | | | | | | This commit adds a new `notes-rgx` which is used by the "fixme" check for more granular control over the what fixme messages to emit. Co-authored-by: Claudiu Popa <pcmanticore@gmail.com>
* Add async def checks for overridden methods (#3392)craig-sh2020-02-121-0/+4
| | | Close #3355
* Do not allow ``python -m pylint ...`` to import user code (#3396)Claudiu Popa2020-02-111-0/+9
| | | | | | | | ``python -m pylint ...`` adds the current working directory as the first element of ``sys.path``. This opens up a potential security hole where ``pylint`` will import user level code as long as that code resides in modules having the same name as stdlib or pylint's own modules. Close #3386
* Remove unneeded Changelog entriesClaudiu Popa2020-02-111-15/+2
|
* Allow dummy variables for 'redeclared-assigned-name' (#3384)Benny2020-02-051-0/+4
| | | | | | `redeclared-assigned-name` now uses `dummy-variables-rgx` to ignore the variables that match the pattern. Close #3341
* Emit ``unused-argument`` for functions that partially uses their argument ↵Claudiu Popa2020-02-051-0/+4
| | | | | list before raising an exception. (#3385) Close #3246
* Fixed broad_try_clause extension to check try/finally statements and to ↵Tyler Thieding2020-02-051-0/+3
| | | | | check for nested statements. (#3374) Previously, the broad_try_except extension did not check nested statements. For example, an if/else statement and its body inside of a try clause did not result in a message. Now, the extension checks within sub-nodes (i.e., if, for, while, and with) and counts their statements too. Also, the extension also checks try/finally statements now.
* Fixed writing graphs to relative paths (#3378)Benjamin Graham2020-02-041-3/+1
| | | | | | | | | | While playing around with the 'import-graph' setting, I noticed that attempting to write a graph to a local directory did not work as I would have expected. For example, 'import-graph=docs/graph.dot' would attempt to add 'graph.dot' to '/LOCAL/PATH/docs/docs/'. This was because the 'dot_sourcepath' in this scenario would be set to the combination of the 'storedir' ('/LOCAL/PATH/docs') and the 'outputfile' ('docs/graph.dot'). I am requesting that it be changed to just be 'outputfile' in this scenario. Also, I have removed the instantiation of the 'dotfile' variable because it now has no use Co-authored-by: Claudiu Popa <pcmanticore@gmail.com>
* Remove import of Counter from types (unneeded and prevents use in python ↵Anthony2020-02-041-0/+4
| | | | | | | 3.5.3 or lower) (#3380) Type hint updated as well along with importing typing module to satisfy type checking.
* Add a check for asserts on string literals (#3346)Anubhav2020-01-141-0/+4
| | | | | | | This check is emitted whenever **pylint** finds an assert statement with a string literal as its first argument. Such assert statements are probably unintended as they will always pass. Close #3284
* Add ChangeLog entry for changes made to `doc/how_tos/plugins.rst`Enji Cooper2020-01-131-0/+2
| | | | Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
* Fix false positive for inverse containment testsAthos Ribeiro2020-01-061-0/+2
| | | | | | | | | | | | While dict-keys-not-iterating does not generate false positives for the 'in' containment test, the check does generate false positives for the inverse counterpart of the containment test, 'not in'. This patch changes the check behavior to also consider the 'not in' operator as an iterating context. * Relates to #2186 Signed-off-by: Athos Ribeiro <athoscr@fedoraproject.org>
* Adds a new check 'inconsistent-quotes'.Wes Turner2020-01-051-0/+2
| | | | | | | | | | | | | | Quoting PEP-8: In Python, single-quoted strings and double-quoted strings are the same. This PEP does not make a recommendation for this. Pick a rule and stick to it. When a string contains single or double quote characters, however, use the other one to avoid backslashes in the string. It improves readability. For triple-quoted strings, always use double quote characters to be consistent with the docstring convention in PEP 257. Features: Accounts for strings where the delimiter is swapped so an internal quote doesn't need to be escaped Only errors on those lines that represent the module's minority delimiter. Ignores longstrings (they could be docstrings, and checking those delimiters is someone else's responsibility)
* Fixed undefined-variable and unused-import flase positives when using a ↵Ashley Whetter2020-01-031-0/+5
| | | | | | metaclass via an attribute Closes #1603
* Add check to make sure only strings are assigned to __name__ (#3271)Andy Palmer2019-12-161-0/+4
| | | Close #583
* Fix uppercase style default regex for leading 3+ upper followed by lowercaseVille Skyttä2019-12-161-0/+1
|