[code-quality] Python skeletons: type hinting for third-party libraries

2013-11-05 Thread Andrey Vlasovskikh
The PyCharm team would like to propose a way for specifying and sharing API definitions of third-party libraries. As there is not enough information in API definition code of Python libraries, developers of static analysis tools collect extended API data themselves and store it in their own for

Re: [code-quality] Python skeletons: type hinting for third-party libraries

2013-11-05 Thread Carl Crowder
Hi Andrey, I definitely support some centralized collection of API data, I think it would be very useful. How do you plan to support additional libraries? I have been writing a plyint/astroid plugin for Django for example, which has (very early beginnings of) the type information you want to

[code-quality] Possible Issue

2013-11-05 Thread Jeff Janies
I have recently started using Flake8 for syntax checking and have found that the style checking fails to check that `if __name__ == “__main__”:` after a class or function has the correct number of newlines preceding it. Shouldn’t this follow the same style rules as functions outside of a class?

Re: [code-quality] Possible Issue

2013-11-05 Thread Ian Cordasco
On Tue, Nov 5, 2013 at 10:28 AM, Jeff Janies wrote: > I have recently started using Flake8 for syntax checking and have found that > the style checking fails to check that `if __name__ == “__main__”:` after a > class or function has the correct number of newlines preceding it. Shouldn’t > this

Re: [code-quality] Possible Issue

2013-11-05 Thread Ben Finney
Jeff Janies writes: > I have recently started using Flake8 for syntax checking and have > found that the style checking fails to check that `if __name__ == > “__main__”:` after a class or function has the correct number of > newlines preceding it. Take care, when posting email, to use an editor