summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Allow attribute assignment for exception instancesClaudiu Popa2019-11-172-3/+28
|
* Add support for inferring exception instances in all contextsClaudiu Popa2019-11-175-15/+38
| | | | | | | | | | | We were able to infer exception instances as ``ExceptionInstance`` only for a handful of cases, but not all. ``ExceptionInstance`` has support for better inference of `.args` and other exception related attributes that normal instances do not have. This additional support should remove certain false positives related to ``.args`` and other exception attributes in ``pylint``. Close PyCQA/pylint#2333
* Add more supported parameters to ``subprocess.check_output``Claudiu Popa2019-11-172-2/+14
| | | | Close #722
* Add a ChangeLog entry for the proposed changeEnji Cooper2019-11-161-0/+6
| | | | Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
* Make installing pytest-runner contingent on running testsEnji Cooper2019-11-161-1/+5
| | | | | | | | This monkeypatches several changes from [PyCQA/mccabe](https://github.com/PyCQA/mccabe/blob/master/setup.py) over to the pylint repo, since the pattern was equivalent between the two projects. Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
* Fix fixable pylint warningsEnji Cooper2019-11-161-5/+4
| | | | | | | | | | * Sort imports. * Remove squelching of W0704, since recent versions of pylint do not support the warning, resulting in an error with `pylint -E`. * Add `pylint: disable=unused-import` to seemingly unused imports which actually affect build behavior. Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
* Infer args unpacking of ``self``Claudiu Popa2019-11-143-0/+32
| | | | | | | | | | Certain stdlib modules use ``*args`` to encapsulate the ``self`` parameter, which results in uninferable instances given we rely on the presence of the ``self`` argument to figure out the instance where we should be setting attributes. Close PyCQA/pylint#3216
* Allow inferring positional only arguments on Python 3.8Claudiu Popa2019-11-146-12/+43
|
* Don't set a parent for descriptor bound methods created on `__get__` accessClaudiu Popa2019-11-081-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | This is a very tricky bug and requires particular circumstances to reproduce. For `f.__get__` we have a custom binding interface that generates bound methods on the fly whenever we encounter an `f.__get__(None, ...)` call. On function creation, we set the name of the function as a variable in the frame of the function's parent. e.g. for the following, we'll set `variable` as a name in the function's locals: class A: ... def variable(self): # variable will be part of A.locals pass Now the bug that this commit solves requires a `__get__()` binding such as the one mentioned as well as passing an object's dunder attribute to `__get__`, such as `object.__eq__`. The result is that the `None` that was passed in `f.__get__` will have as a frame the function where the descriptor binding method was called, which will result in `__eq__` to be marked as a variable of the function that was called, which is completely wrong. As a solution we don't set any parent for descriptor bound methods, which are created on the fly and thus the parent might be wrong altogether. Close PyCQA/pylint#3225
* Add brain for "responses" (#717)Stefan Scherfke2019-11-062-0/+75
| | | | Fixes: #716
* Update six version to 1.13 (#719)Uilian Ries2019-11-062-2/+2
| | | | Signed-off-by: Uilian Ries <uilianries@gmail.com>
* Add `text` to `subprocess.check_output` signatureClaudiu Popa2019-10-301-13/+36
| | | | Close #715
* threading.Lock.acquire returns a boolean valueClaudiu Popa2019-10-301-1/+1
| | | | Close PyCQA/pylint#3212
* Fix as_string for f-strings (#709)Alex Hall2019-10-192-6/+44
| | | | | | | | as_string currently has very poor support for f-strings: Conversions (e.g. !r) and format specifiers (e.g. :.3) are left out. Quotes easily clash leading to syntax errors. Escape sequences such as \n are not handled. Literal braces are not escaped.
* Remove accidental TODOAlex Hall2019-10-181-1/+1
|
* Fix as_string for attribute nodes with integer valuesAlex Hall2019-10-182-1/+12
|
* Fix async function definitions with decorators (#710)Alex Hall2019-10-182-7/+23
|
* Fix ClassDef.as_string() with keyword arguments, especially the metaclass (#707)Alex Hall2019-10-182-10/+32
| | | | | | * Failing test for ClassDef.as_string involving keyword arguments * Fix construction of keyword arguments in ClassDef as_string
* Pass an inference context to `metaclass()` when inferring an object typeClaudiu Popa2019-10-183-6/+23
| | | | | | | | | This should prevent a bunch of recursion errors happening in pylint. Also refactor the inference of `IfExp` nodes to use separate contexts for each potential branch. Close PyCQA/pylint#3152 Close PyCQA/pylint#3159
* Spelling fixes (#706)Ville Skyttä2019-10-162-3/+3
|
* Moved tests out of package directory (#704)Ashley Whetter2019-10-15149-20/+15
|
* Fix lint warningsClaudiu Popa2019-10-115-18/+17
|
* Add the changelog entry for the scipy transformClaudiu Popa2019-10-111-0/+1
|
* Provides annotations for scipy.signal module (#702)Valentin Valls2019-10-111-0/+89
|
* Add a Changelog entry for 2.4.0Claudiu Popa2019-10-091-0/+5
|
* All type comments have as parent the corresponding `astroid` nodeClaudiu Popa2019-10-094-8/+45
| | | | | | | Until now they had as parent the builtin `ast` node which meant we were operating with primitive objects instead of our own. Close PyCQA/pylint#3174
* Make master 2.4.0Claudiu Popa2019-10-091-1/+1
|
* Update travis credentialsastroid-2.3.1Claudiu Popa2019-09-301-5/+2
|
* Prepare 2.3.1Claudiu Popa2019-09-301-1/+1
|
* Add the env parameter to subprocess.check_outputClaudiu Popa2019-09-301-1/+2
|
* Fix no-member issue on Signal for PySide2 (#700)Antoine Boellinger2019-09-301-1/+1
| | | Based on patch proposed by akai10tsuki on PyCQA/pylint#2585
* Allow annotated assign with attrsTomas Novak2019-09-263-2/+25
|
* Pin all the dependencies we use right nowClaudiu Popa2019-09-262-6/+6
|
* Force typed_ast >= 1.4.0 for all supported Python versionsClaudiu Popa2019-09-262-4/+2
|
* Remove typing dependency which is no longer neededClaudiu Popa2019-09-261-1/+0
|
* Bump master to 2.3.1Claudiu Popa2019-09-261-1/+1
|
* A transform for the builtin `dataclasses` module was added.Claudiu Popa2019-09-263-0/+98
| | | | | | | | | | This should address various `dataclasses` issues that were surfaced even more after the release of pylint 2.4.0. In the previous versions of `astroid`, annotated assign nodes were allowed to be retrieved via `getattr()` but that no longer happens with the latest `astroid` release, as those attribute are not actual attributes, but rather virtual ones, thus an operation such as `getattr()` does not make sense for them.
* Remove extraneous commaClaudiu Popa2019-09-251-1/+1
|
* Proper signature for subprocess.check_output. Close #PyCQA/3118Claudiu Popa2019-09-251-1/+4
|
* Use a token to do the pypi releasesastroid-2.3.0Claudiu Popa2019-09-241-43/+41
|
* Clean new pylint errors from the codebaseClaudiu Popa2019-09-247-48/+17
|
* Prepare 2.3.0Claudiu Popa2019-09-242-2/+2
|
* Skip test that does not work on Python 3.8 due to library differencesClaudiu Popa2019-09-121-0/+5
|
* Update http brain tips to support `phrase` and `description`Claudiu Popa2019-09-122-1/+134
| | | | Close PyCQA/pylint#2950
* Fix linting errorsClaudiu Popa2019-09-116-9/+3
|
* Make the version a dev one for nowClaudiu Popa2019-09-111-1/+1
|
* Add a brain tip for ``subprocess.check_output``Claudiu Popa2019-09-113-0/+28
| | | | Close #689
* Remove copyright header and simplify the files to a simple classClaudiu Popa2019-09-112-18/+0
| | | | | | | | We had two "copyrighted" files in the repo but they were containing a basic class with a simple `__init__` method, so there's no need to keep that around. Close #685
* Remove NodeNG.nearest method (#692)kavins142019-09-102-27/+4
| | | | | | The NodeNG.nearest method was not working properly as outlined in #691 and seem to not be in use at all across astroid and pylint. Close #691
* Remove redundant compatibility code (#693)Hugo van Kemenade2019-09-1018-270/+103
|