summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Pin coverage to <5 to account for the private coverage format changing1.6Claudiu Popa2020-01-261-3/+3
|
* Prepare 1.6.6astroid-1.6.6Claudiu Popa2019-04-092-1/+18
|
* Add automatic travis deploysClaudiu Popa2019-04-091-0/+9
|
* make is_standard_module() properly classify extensions (#659) (#661)markmcclain2019-04-092-4/+5
| | | | | | | | | | | | | | Extensions can be installed in either a platform independent or specific location[1]. The search is updated to include both paths. Previously, an extension in the platform specific location would be misclassified because only the independent location was considered and the platform specific location shared a prefix with the standard lib. [1] http://docs.python.org/3/distutils/apiref.html#distutils.sysconfig.get_python_lib Fixes Issue: #658 Co-authored-by: Matt Story <s.matt.story@gmail.com> (cherry picked from commit 70ed2cfd68e71a98697b1c13c337499732a801dc)
* Fix lint errorsClaudiu Popa2018-06-148-28/+12
|
* Use pylint<2.0 for running the lintingClaudiu Popa2018-06-141-1/+3
|
* Add cPickle to the list of available imports for six.moves in Python2Bryce Guinta2018-06-141-0/+1
|
* Prepare 1.6.5astroid-1.6.5Claudiu Popa2018-06-062-1/+17
|
* Don't propagate Uninferable objects when inferring BinOpsClaudiu Popa2018-06-051-0/+2
| | | | Close PyCQA/pylint#2059
* Protect against passing lookup_class to non-class proxied objectsClaudiu Popa2018-05-261-1/+4
| | | | | | | | | In some cases the _proxied object points to another Instance, not to the Class of an Instance node (usually this happens with enum and with our hardcoded inference support for this library). Instead of getting a TypeError, we check before if the _proxied matches what we expect. Found by #2080
* Prepare 1.6.4astroid-1.6.4Ashley Whetter2018-05-152-1/+9
|
* Skip non-attrs specific attributesClaudiu Popa2018-05-072-0/+16
| | | | Close PyCQA/pylint#2055
* Add brain tip for numpy.sum. Close PyCQA/pylint#1558Claudiu Popa2018-04-161-0/+9
|
* deque.rotate has a default paramter. Close PyCQA/pylint#2013Claudiu Popa2018-04-121-1/+1
|
* Prepare 1.6.3astroid-1.6.3Claudiu Popa2018-04-052-1/+13
|
* fix nested namespace package importChris Philip2018-04-024-1/+14
|
* Use .path for inferring a module's __path__ attribute. Close #528:Claudiu Popa2018-03-301-3/+9
|
* Improve the six urllib functions for Python 2 by setting them as instance ↵Claudiu Popa2018-03-282-63/+66
| | | | | | | | attributes Because they were at the class level, we were considering them BoundMethods, resulting in a too-many-function-args error when calling these functions. Close PyCQA/pylint#1965
* Prepare 1.6.2astroid-1.6.2Claudiu Popa2018-03-162-1/+3
|
* Fix Changelog indentationClaudiu Popa2018-03-161-7/+6
|
* Backport "Fix submodule import in six.moves" (commit ↵Bryce Guinta2018-03-163-4/+51
| | | | cf5648658c87b6e3b2fa4394b5921792827246dc) to 1.6 release branch
* Fix contextmanager transform for nested contextmanagersBryce Guinta2018-03-153-1/+39
| | | | Close PyCQA/pylint#1746
* Add attrs special attribute to prevent false positve in pylintBryce Guinta2018-03-153-0/+24
| | | | | | | Astroid cannot infer this attribute because of the way attr builds its classes Close PyCQA/pylint#1884
* Fix inference tip collisionsBryce Guinta2018-03-156-11/+61
| | | | | Set predicates for transforms which use inference_tips to prevent a node's _explicit_inference from being overwritten
* Fix augassign recursion errorBryce Guinta2018-02-183-5/+23
| | | | | | | | | | | | | | | The augmented assign rhs context path was deleted most likely due to a recently fixed inference bug where InferenceContext path attributes were shared between objects. Recursive functions on the right hand side of the augmented assign would forget that they were already called, causing an eventual RecursionError in astroid inference Now that the InferenceContext clone() method properly copies the inference path between Contexts, it's fine to remove this hack. Fixes #437, Fixes #447, Fixes #313, Fixes PyCQA/pylint#1642, Fixes PyCQA/pylint#1805, Fixes PyCQA/pylint#1854, Fixes PyCQA/pylint#1452
* Skip test when it doesn't work with pytestBryce Guinta2018-02-181-2/+19
| | | | | | | | | pytest redirects stdout so it makes sense that this test would fail. Use pytest -s to not skip this test with pytest. unittest will still use this test.
* Use pytest as default test runner instead of unittest for toxBryce Guinta2018-02-182-1/+8
| | | | | | | | | | There was some trouble getting this to work. I needed to use --pyargs for pytest to work in tox Allow for test file prefix unittest_ to be changed to standard test_ Helps with updating the astroid tests to standard pytest conventions Make pytest use proper test directory by default
* Fix inference issue with inference path cloningBryce Guinta2018-02-182-2/+37
| | | | Copy inference path in inference context upon cloning to prevent diverging inference paths causing uninferable results
* Merge pull request #488 from hippo91/1.6hippo912018-02-047-8/+67
|\ | | | | Backport of PR #486
| * Skipping unit test ↵hippo912018-02-041-1/+1
| | | | | | | | ObjectDunderNewTest.test_object_dunder_new_is_inferred_if_decorator
| * Correcting or disabling emission of useless-return message.hippo912018-02-043-4/+3
| |
| * Deletion of trailing lines.hippo912018-02-031-3/+0
| |
| * Backport of PR #486hippo912018-02-032-0/+60
| |
| * Add of ChangeLog entryhippo912018-02-031-0/+3
|/
* Fix lintastroid-1.6.1Claudiu Popa2018-01-231-1/+1
|
* Prepare releaseClaudiu Popa2018-01-232-2/+3
|
* Fix a crash when __annotations__ access a parent's __init__ that does not ↵Claudiu Popa2017-12-273-2/+19
| | | | | | have arguments Close #473
* Add the release dateastroid-1.6.0Claudiu Popa2017-12-151-1/+2
|
* Add new release instructions as for pylintClaudiu Popa2017-12-151-2/+5
|
* Filter non-inferables nodes when inferring binary operationsClaudiu Popa2017-12-152-1/+26
| | | | Close #467
* Remove unreachable codeClaudiu Popa2017-12-151-1/+0
|
* Only mock attr.ib attributesClaudiu Popa2017-12-151-0/+7
|
* Make attr.ib attributes instances of Unknown, not of AttributeClaudiu Popa2017-12-152-2/+7
| | | | | | It does not make sense to have these as Attributes, since they aren't inferable per se. Close #469
* Make Unknown a rhs assignable nodeClaudiu Popa2017-12-151-1/+1
| | | | This means we can put an Unknown node in RHS of an assignment operations, which will be useful for brain related transforms.
* Update version comparisons after reviewHugo2017-12-152-3/+3
|
* Drop support for EOL Python 3.3Hugo2017-12-1513-47/+33
|
* When verifying duplicates classes in MRO, ignore on-the-fly generated classesClaudiu Popa2017-12-153-1/+34
| | | | Close PyCQA/pylint#1706
* Add transform for attr library to fix unsupported-assignment-operation false ↵Bryce Guinta2017-12-114-0/+71
| | | | positives
* Fix lintClaudiu Popa2017-11-112-2/+0
|
* Remove file_stream since it was slated for removal for 1.6Claudiu Popa2017-11-113-48/+11
|