Commit Graph

9 Commits

Author SHA1 Message Date
Claudiu Popa
7378c72503 Update pylint to use the new astroid AST names and methods
Also improve a couple of imports and added support for the
old visit_ names. Priority will have the old visit_ names, such
as visit_discard over visit_expr, visit_callfunc over visit_call
etc.
2015-08-25 21:06:19 +03:00
Claudiu Popa
29f2aa84f2 Use astroid.YES instead of using it from astroid.bases (it was moved anyway) 2015-08-11 00:09:46 +03:00
Claudiu Popa
ada4ef8855 New imported features from astroid into pyreverse.
We moved pyreverse.inspector.Project, pyreverse.inspector.project_from_files
and pyreverse.inspector.interfaces. These were moved since they didn't belong in astroid
and they can be better maintained inside pyreverse itself.
2015-07-03 15:18:22 +03:00
Claudiu Popa
85be149e66 Fix the broken tests, since locals_types and instance_attr_types were expected to be lists. 2015-06-20 14:45:31 +03:00
Claudiu Popa
8e8b918ff3 Make sure that every frame used by pyreverse.inspect has a locals_type attribute
This patch calls visit_<node_type> whenever a frame doesn't have a `locals_type`
attribute, most likely because it wasn't yet visited. Closes issue #543.
2015-06-20 14:11:31 +03:00
Claudiu Popa
081558dd54 Improve the readability of a function by using a defaultdict(set) instead of manually checking if a node was already inferred. 2015-06-20 13:42:54 +03:00
Claudiu Popa
ea964e5656 astroid.utils.LocalsVisitor was moved to pylint.pyreverse.LocalsVisitor. 2015-06-17 22:47:00 +03:00
Claudiu Popa
e71a0355a4 Replace the license with what is already used in the project. 2015-06-17 22:38:58 +03:00
Claudiu Popa
dc124624f3 Import astroid inspector to pyreverse.inspector. 2015-06-17 22:23:38 +03:00