summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add infer(), frame(), scope(), and statement() methods to the zipperzipperCeridwen2016-04-071-12/+76
|
* Clean up spacing, typos, and add .hypothesis to .gitignoreCeridwen2016-04-073-1/+3
|
* Make the field character limit for __str__ a global constantCeridwen2016-03-312-1/+7
|
* Clean up some comments and docstringsCeridwen2016-03-292-8/+6
|
* Improve zipper's backwards compatibility and fix bugsCeridwen2016-03-114-11/+37
|
* Start zipperification of the rest of the project, fix util.singledispatch to ↵Ceridwen2016-03-103-2/+27
| | | | work with the zipper
* Fully move tests to unittest and fix minor test issuesCeridwen2016-03-081-36/+38
|
* Add comments and docstrings to the zipper and the testsCeridwen2016-03-082-22/+183
|
* Add the remaining parts of the traversal API and tests for itCeridwen2016-03-083-115/+274
|
* Replace None with Empty in the ASTs and refactor the zipper tests to work ↵Ceridwen2016-03-0214-225/+244
| | | | with this
* Revise zipper tests for speed and to be more accurate about what is being testedCeridwen2016-02-213-64/+77
|
* Merge testdata changes and Parameter nodes into zipper.Ceridwen2016-02-15108-847/+478
|\
| * Fix minor issues in packaging and testing files.Ceridwen2016-02-133-7/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | I removed "recursive-include brain/" in MANIFEST.in because it doesn't do anything, probably because Python files in subdirectories of packages are automatically included. For some reason "graft astroid/tests/testdata" doesn't work, maybe because tests/ contains an `__init__.py`. I also altered coverage to include only astroid files by using --source in coverage run call, rather than --ignore in the reports. Note that when tox is called from the root of the repository at the moment, astroid is imported from the files in the *repository*, not the installed files in the virtualenvs in .tox/. Meanwhile, the tests themselves are run from the virtualenvs in .tox/, which accounts for why coverage shows 0% for all the unittest files in tests/.
| * Merge pull request #314 from PyCQA/arguments-215Claudiu Popa2016-02-1317-228/+349
| |\ | | | | | | Changed the way how parameters are being built
| | * Changed the way how parameters are being builtClaudiu Popa2016-02-1317-228/+349
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The old way consisted in having the parameter names, their defaults and their annotations separated in different components of the Arguments node. We introduced a new Param node, which holds the name of a parameter, its default value and its annotation. If any of the last two values are missing, then that slot will be filled with a new node kind, Empty, which is used for specifying the lack of something (None could have been used instead, but that means having non-AST nodes in the Arguments node). We're also having support for positional only arguments, for the moment only in raw_building. Close #215
| * | Merge pull request #318 from PyCQA/recoverClaudiu Popa2016-02-13139-557/+103
| |\ \ | | | | | | | | Merge testdata's files into one bundle and revert previous changes to testdata
| | * | Move testdata back into tests.Claudiu Popa2016-02-1388-551/+97
| | | |
| | * | Revert change to tests command.Claudiu Popa2016-02-111-1/+1
| | | |
| | * | Revert "Modify tox.ini to properly exclude files not part of astroid"Claudiu Popa2016-02-111-3/+3
| | | | | | | | | | | | | | | | This reverts commit 4596201f9146e64c18cfcb0f841618328e953910.
| | * | Revert "setup.py install now installs testdata/, but pip doesn't"Claudiu Popa2016-02-111-3/+1
| | | | | | | | | | | | | | | | This reverts commit c510c17f63c2df01b8c9d5e2fd97ac963f737c7f.
| | * | Revert "Try to solve the packaging issues again"Claudiu Popa2016-02-11137-3/+6
| | | | | | | | | | | | | | | | This reverts commit d37b81de4f1e64abc2f222c487785d816ab469ea.
| | * | Revert "Try graft instead of recursive-include"Claudiu Popa2016-02-111-2/+1
| | | | | | | | | | | | | | | | This reverts commit 18fa724c04c2393b134d57d4fe4cebe38472bad8.
| | * | Revert "Try to fix the testdata issue"Claudiu Popa2016-02-111-1/+1
| |/ / | | | | | | | | | This reverts commit 682b87f5b9832bb55d35d1c3a589ba8695495481.
| * | doc: fix buildJulien Cristau2016-02-112-4/+4
| | | | | | | | | | | | | | | | | | | | | Stop hardcoding an outdated version number, don't reference nonexistent _static directory, and fix "inference" module reference. Signed-off-by: Julien Cristau <julien.cristau@logilab.fr>
| * | Get travis directory listingCeridwen2016-02-081-1/+1
| | |
| * | Get travis directory listingCeridwen2016-02-081-1/+1
| | |
| * | Get travis directory listingCeridwen2016-02-081-1/+1
| | |
| * | Get travis directory listingCeridwen2016-02-081-2/+1
| | |
| * | Get travis directory listingCeridwen2016-02-081-0/+3
| | |
| * | Try running tox as a non-moduleCeridwen2016-02-081-1/+1
| | |
| * | Modify tox.ini to properly exclude files not part of astroidCeridwen2016-02-081-4/+3
| | |
| * | Try to solve the packaging issues againCeridwen2016-02-08138-9/+8
| | |
| * | setup.py install now installs testdata/, but pip doesn'tCeridwen2016-02-051-1/+3
| |/
| * Try graft instead of recursive-includeCeridwen2016-01-281-2/+1
| |
| * Try rewriting MANIFEST.inCeridwen2016-01-251-2/+2
| |
| * Try to fix the testdata issueCeridwen2016-01-251-1/+1
| |
| * Move testdata/ to the top level; closes #312Ceridwen2016-01-2481-1/+2
| |
| * Look in keyword-only annotations when determining the scope of annotations.Claudiu Popa2016-01-251-0/+1
| |
| * Don't set the fromlineno of parents or children for nodes without it setClaudiu Popa2016-01-255-40/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | If a node had a .fromlineno as None, then a function would be invoked which retrieved the first line number of the children or the parents which wasn't none. This is wrong, because it's not a guarantee that all nodes should have it set, especially those coming from raw_building, where it can be close to impossible to determine the line number of an object coming from an extension module. The functionality was removed and certain guards were added in a couple of places in order to protect operations against None. Close #310 and #195
| * NodeNG.nearest was removed.Claudiu Popa2016-01-252-18/+3
| |
| * Clarify why we are sorting locals.Claudiu Popa2016-01-241-1/+3
| |
* | First version of Hypothesis tests for the zipper; unfinished, but works well ↵Ceridwen2016-02-153-21/+105
| | | | | | | | enough to find some bugs
* | Merge coverage support.Ceridwen2016-01-181-2/+14
|\ \ | |/
| * Add support for coverage to toxCeridwen2016-01-181-2/+14
| |
* | Recreate zipper branch off 2.0Ceridwen2016-01-151-0/+272
|/
* Fix typo in as_string.visit_withitemCeridwen2016-01-151-2/+3
|
* Build AsyncWith nodes correctlyCeridwen2016-01-151-3/+3
|
* Propagate error information to @raise_if_nothing_inferred in unpack_infer()Ceridwen2016-01-151-4/+6
|
* Fix typos for visit_withitem in as_string, forward visit_asyncwith correctly ↵Ceridwen2016-01-152-2/+2
| | | | in rebuilder
* Fix unpack_infer to fail if results are emptyDave Baum2016-01-153-1/+14
| | | | | This should prevent a StopIteration leaking when next is called over unpack_infer.