Commit Graph

19 Commits

Author SHA1 Message Date
spaceone
0c17306204 display properties as attributes in pyreverse class diagram 2015-10-12 21:52:37 +02:00
Claudiu Popa
3deb961d35 Bring parts of logilab.common.configuration and logilab.common.optik_ext into pylint.config
The reason behind this is that we can better control the behaviour
of the underlying configuration modules, such as the case for undefined
options or for quickly fixing other bugs. Another side effect of this
change is that it gets us closer to the moment where we will not
be dependent on logilab.common anymore, which will definitely
make our pytest users happy.

Some parts were copied almost verbatim from logilab.common.configuration
and logilab.common.optik_ext and pylint.config will definitely need
a refactoring and reengineering for abstracting the configuration,
so that we won't use optparse anymore, but that's subject for another
patch.
2015-09-01 21:41:10 +03:00
Claudiu Popa
1746fce4e5 Remove trailing whitespaces and other pylint related issues. 2015-08-25 21:14:04 +03:00
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
7307bed1f9 Fix pylint warnings for the code imported from logilab-common. 2015-08-18 23:28:24 +03:00
Claudiu Popa
438be0ec69 Merged in The-Compiler/pylint/no-logilab-common (pull request #264)
[WIP] Get rid of logilab.common
2015-08-18 23:10:57 +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
Florian Bruhin
2463e6a9bd Get rid of logilab.common.graph.
--HG--
branch : no-logilab-common
2015-07-26 12:28:32 +02:00
Florian Bruhin
c68f93b544 Get rid of logilab.common.vcgutils.
This is basically an 1:1 copy...

--HG--
branch : no-logilab-common
2015-07-26 12:15:21 +02:00
Florian Bruhin
20fa6d19bb Get rid of logilab.common.compat.
--HG--
branch : no-logilab-common
2015-07-26 11:00:07 +02:00
Claudiu Popa
35914721da Fix bad whitespace. 2015-07-03 15:27: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
Ionel Cristian Maries
26eb7f9a2e Move all package files to a pylint package. 2015-02-14 18:13:20 +02:00