From mhamilt at sandia.gov Thu Sep 4 01:25:55 2014 From: mhamilt at sandia.gov (Mark E. Hamilton) Date: Wed, 3 Sep 2014 17:25:55 -0600 Subject: [code-quality] [EXTERNAL] Re: Pylint not reporting modules passed on command line In-Reply-To: <20140825120102.GB4864@logilab.fr> References: <53E533A8.1000108@sandia.gov> <20140825120102.GB4864@logilab.fr> Message-ID: <5407A383.3010000@sandia.gov> Sylvain, On 08/25/14 06:01, Sylvain Th?nault wrote: > On 08 ao?t 14:31, Mark E. Hamilton wrote: >> blah, blah, blah >> > > This is a bug that should be reported on > https://bitbucket.org/logilab/pylint/issues Thank you. It have reported it on bitbucket. After some additional testing it looks like the reason test1 was not reported was that it only had convention violations, whereas test2 had warnings. -- ---------------- Mark E. Hamilton Engineering Sciences Center Senior Member of Technical Staff Sandia National Laboratories 505-844-7666 From oliver at bestwalter.de Wed Sep 3 14:53:01 2014 From: oliver at bestwalter.de (Oliver Bestwalter) Date: Wed, 3 Sep 2014 14:53:01 +0200 Subject: [code-quality] How and where to add tests for Python 3 In-Reply-To: References: <53FA4611.9070605@etu.enseeiht.fr> <53FAF58B.8070903@etu.enseeiht.fr> <53FB5732.7000308@etu.enseeiht.fr> <53FD93B0.1000900@etu.enseeiht.fr> Message-ID: Hi, first post here as well. I started lurking here a while ago because I am interested in static code analysis (atm strictly from a consumer perspecive though). On 28 August 2014 01:16, Ian Cordasco wrote: > > $ flake8 --version > > 2.2.3 (pep8: 1.5.7, pyflakes: 0.8.1, mccabe: 0.2.1) CPython 3.4.1 on > Linux > > > > And the code to test: > > > > import string > > > > print(string.letters) > I'd like to add some pointers to other projects that might be better at solving problems like this. 1. I use PyCharm and it it has the best static code analysis I came across yet. It highlights errors like this ans is very clever with dynamically loaded imports as well (by collecting and caching runtime data as well). They have an open source community edition as well: http://www.jetbrains.com/pycharm/features/editions_comparison_matrix.html 1. Another interesting project is Jedi: https://github.com/davidhalter/jedi that started of as autocompletion lib, but is now moving towards static code analysis as well (and Dave is a nice guy as well :)). Cheers Oliver -------------- next part -------------- An HTML attachment was scrubbed... URL: From mhamilt at sandia.gov Fri Sep 5 02:05:40 2014 From: mhamilt at sandia.gov (Mark E. Hamilton) Date: Thu, 4 Sep 2014 18:05:40 -0600 Subject: [code-quality] Putting files (html and text) in an alternate directory Message-ID: <5408FE54.4060701@sandia.gov> Is there a way to tell pylint to write the html or text files it generates in a directory other than the current directory? I want to be able to put the file in a web-accessible directory, while testing a set of code which is not in that location. -- ---------------- Mark E. Hamilton Engineering Sciences Center Senior Member of Technical Staff Sandia National Laboratories 505-844-7666 From sylvain.thenault at logilab.fr Fri Sep 5 13:31:04 2014 From: sylvain.thenault at logilab.fr (Sylvain =?utf-8?B?VGjDqW5hdWx0?=) Date: Fri, 5 Sep 2014 13:31:04 +0200 Subject: [code-quality] dedicated pylint dev mailing list Message-ID: <20140905113104.GB2771@logilab.fr> Hi there, as you probably know, we recently moved discussion about pylint to this mailing list. As this is not very suitable channel for coordination among pylint developpers, we decided to create a dedicated channel for this topic. If you are interested, please subscribe to?http://lists.logilab.org/mailman/admindb/pylint-dev More general topics and user related questions should be kept here. -- Sylvain Th?nault, LOGILAB, Paris (01.45.32.03.12) - Toulouse (05.62.17.16.42) Formations Python, Debian, M?th. Agiles: http://www.logilab.fr/formations D?veloppement logiciel sur mesure: http://www.logilab.fr/services CubicWeb, the semantic web framework: http://www.cubicweb.org From sylvain.thenault at logilab.fr Fri Sep 5 14:02:27 2014 From: sylvain.thenault at logilab.fr (Sylvain =?utf-8?B?VGjDqW5hdWx0?=) Date: Fri, 5 Sep 2014 14:02:27 +0200 Subject: [code-quality] dedicated pylint dev mailing list In-Reply-To: <20140905113104.GB2771@logilab.fr> References: <20140905113104.GB2771@logilab.fr> Message-ID: <20140905120227.GE2771@logilab.fr> On 05 septembre 13:31, Sylvain Th?nault wrote: > Hi there, > > as you probably know, we recently moved discussion about pylint to this mailing > list. As this is not very suitable channel for coordination among pylint > developpers, we decided to create a dedicated channel for this topic. If you are > interested, please subscribe > to?http://lists.logilab.org/mailman/admindb/pylint-dev link should be http://lists.logilab.org/mailman/listinfo/pylint-dev -- Sylvain Th?nault, LOGILAB, Paris (01.45.32.03.12) - Toulouse (05.62.17.16.42) Formations Python, Debian, M?th. Agiles: http://www.logilab.fr/formations D?veloppement logiciel sur mesure: http://www.logilab.fr/services CubicWeb, the semantic web framework: http://www.cubicweb.org From sylvain.thenault at logilab.fr Fri Sep 5 14:03:53 2014 From: sylvain.thenault at logilab.fr (Sylvain =?utf-8?B?VGjDqW5hdWx0?=) Date: Fri, 5 Sep 2014 14:03:53 +0200 Subject: [code-quality] Putting files (html and text) in an alternate directory In-Reply-To: <5408FE54.4060701@sandia.gov> References: <5408FE54.4060701@sandia.gov> Message-ID: <20140905120353.GF2771@logilab.fr> On 04 septembre 18:05, Mark E. Hamilton wrote: > Is there a way to tell pylint to write the html or text files it > generates in a directory other than the current directory? I want to > be able to put the file in a web-accessible directory, while testing > a set of code which is not in that location. nop, there is no such option. -- Sylvain Th?nault, LOGILAB, Paris (01.45.32.03.12) - Toulouse (05.62.17.16.42) Formations Python, Debian, M?th. Agiles: http://www.logilab.fr/formations D?veloppement logiciel sur mesure: http://www.logilab.fr/services CubicWeb, the semantic web framework: http://www.cubicweb.org From graffatcolmingov at gmail.com Fri Sep 12 01:40:30 2014 From: graffatcolmingov at gmail.com (Ian Cordasco) Date: Thu, 11 Sep 2014 18:40:30 -0500 Subject: [code-quality] Request For Comments: Moving Flake8 development to Git Message-ID: Hey all, Since the beginning Flake8 has been developed entirely in mercurial. There's been some push back lately about it not being available in git. For a time there, Bruno maintained a git mirror on which we accepted pull requests, but neither of us had the time to maintain it after a while. Given the popularity of git, it seems reasonable to move the development. There are tools to preserve the repository history so nothing will be lost. What does the code-quality community think? Cheers, Ian From tarek at ziade.org Fri Sep 12 07:19:38 2014 From: tarek at ziade.org (=?ISO-8859-1?Q?Tarek_Ziad=E9?=) Date: Fri, 12 Sep 2014 07:19:38 +0200 Subject: [code-quality] Request For Comments: Moving Flake8 development to Git In-Reply-To: References: Message-ID: <5412826A.9070804@ziade.org> Le 12/09/14 01:40, Ian Cordasco a ?crit : > Hey all, > > Since the beginning Flake8 has been developed entirely in mercurial. > There's been some push back lately about it not being available in > git. For a time there, Bruno maintained a git mirror on which we > accepted pull requests, but neither of us had the time to maintain it > after a while. Given the popularity of git, it seems reasonable to > move the development. There are tools to preserve the repository > history so nothing will be lost. > > What does the code-quality community think? sounds good to me > > Cheers, > Ian > _______________________________________________ > code-quality mailing list > code-quality at python.org > https://mail.python.org/mailman/listinfo/code-quality From carl.crowder at gmail.com Fri Sep 12 08:18:10 2014 From: carl.crowder at gmail.com (Carl Crowder) Date: Fri, 12 Sep 2014 08:18:10 +0200 Subject: [code-quality] Request For Comments: Moving Flake8 development to Git In-Reply-To: <5412826A.9070804@ziade.org> References: <5412826A.9070804@ziade.org> Message-ID: I think it's a good idea. I personally dislike contributing to hg-based projects because it's such a faff for me compared to using git, and I wouldn't be surprised if others are put off contributing for a similar reason (not that I'm saying the reason is good, I'm just lazy!) From sylvain.thenault at logilab.fr Fri Sep 12 08:38:38 2014 From: sylvain.thenault at logilab.fr (Sylvain =?utf-8?B?VGjDqW5hdWx0?=) Date: Fri, 12 Sep 2014 08:38:38 +0200 Subject: [code-quality] Request For Comments: Moving Flake8 development to Git In-Reply-To: References: <5412826A.9070804@ziade.org> Message-ID: <20140912063838.GF2854@logilab.fr> On 12 septembre 08:18, Carl Crowder wrote: > I think it's a good idea. I personally dislike contributing to > hg-based projects because it's such a faff for me compared to using > git, and I wouldn't be surprised if others are put off contributing > for a similar reason (not that I'm saying the reason is good, I'm just > lazy!) Isn't this rather a question of platform - github vs bitbucket ? On the command line tool side, I personnaly feel like mercurial is easier for newcomers. On the other hand, for power user, the hg+evolve workflow is very powerful. Ok, I'm biased since I know more about hg than git ;) -- Sylvain Th?nault, LOGILAB, Paris (01.45.32.03.12) - Toulouse (05.62.17.16.42) Formations Python, Debian, M?th. Agiles: http://www.logilab.fr/formations D?veloppement logiciel sur mesure: http://www.logilab.fr/services CubicWeb, the semantic web framework: http://www.cubicweb.org From graffatcolmingov at gmail.com Fri Sep 12 14:35:44 2014 From: graffatcolmingov at gmail.com (Ian Cordasco) Date: Fri, 12 Sep 2014 07:35:44 -0500 Subject: [code-quality] Request For Comments: Moving Flake8 development to Git In-Reply-To: <20140912063838.GF2854@logilab.fr> References: <5412826A.9070804@ziade.org> <20140912063838.GF2854@logilab.fr> Message-ID: I was actually wondering if we should just keep it on BitBucket but convert it to git. This would allow the URL to remain the same so people will not be misled to the old repository. Granted clicking a link to take them to the git version isn't terrible but it just seems easier. Also while I'm the most active maintainer I wouldn't feel right recreating the repo under my account. If we do move to GitHub, I would rather make an organization to house the repo and probably flake8-docstrings. -------------- next part -------------- An HTML attachment was scrubbed... URL: From skip at pobox.com Fri Sep 12 14:47:24 2014 From: skip at pobox.com (Skip Montanaro) Date: Fri, 12 Sep 2014 07:47:24 -0500 Subject: [code-quality] Request For Comments: Moving Flake8 development to Git In-Reply-To: References: <5412826A.9070804@ziade.org> <20140912063838.GF2854@logilab.fr> Message-ID: On Fri, Sep 12, 2014 at 7:35 AM, Ian Cordasco wrote: > I was actually wondering if we should just keep it on BitBucket but convert > it to git. This would allow the URL to remain the same so people will not be > misled to the old repository. I had exactly this problem with pylockfile. Both for finding the repo, and the distributions. If you're happy enough with BitBucket and it supports git, that is the path I would choose. Skip From tarek at ziade.org Fri Sep 12 14:51:50 2014 From: tarek at ziade.org (=?ISO-8859-1?Q?Tarek_Ziad=E9?=) Date: Fri, 12 Sep 2014 14:51:50 +0200 Subject: [code-quality] Request For Comments: Moving Flake8 development to Git In-Reply-To: References: <5412826A.9070804@ziade.org> <20140912063838.GF2854@logilab.fr> Message-ID: <5412EC66.6040202@ziade.org> Le 12/09/14 14:35, Ian Cordasco a ?crit : > > I was actually wondering if we should just keep it on BitBucket but > convert it to git. This would allow the URL to remain the same so > people will not be misled to the old repository. Granted clicking a > link to take them to the git version isn't terrible but it just seems > easier. Also while I'm the most active maintainer I wouldn't feel > right recreating the repo under my account. If we do move to GitHub, I > would rather make an organization to house the repo and probably > flake8-docstrings. > Some kind of QA org seems like a good move. I can always archive my BB repo and keep a single README that points to the new stuff. > > > _______________________________________________ > code-quality mailing list > code-quality at python.org > https://mail.python.org/mailman/listinfo/code-quality -------------- next part -------------- An HTML attachment was scrubbed... URL: From graffatcolmingov at gmail.com Fri Sep 12 15:00:54 2014 From: graffatcolmingov at gmail.com (Ian Cordasco) Date: Fri, 12 Sep 2014 08:00:54 -0500 Subject: [code-quality] Request For Comments: Moving Flake8 development to Git In-Reply-To: References: <5412826A.9070804@ziade.org> <20140912063838.GF2854@logilab.fr> Message-ID: On 9/12/14, Skip Montanaro wrote: > On Fri, Sep 12, 2014 at 7:35 AM, Ian Cordasco > wrote: >> I was actually wondering if we should just keep it on BitBucket but >> convert >> it to git. This would allow the URL to remain the same so people will not >> be >> misled to the old repository. > > I had exactly this problem with pylockfile. Both for finding the repo, > and the distributions. If you're happy enough with BitBucket and it > supports git, that is the path I would choose. > > Skip > Yeah, BitBucket does support it. While I'm not exactly a fan of BitBucket, it might be best to just continue hosting the repository for this reason. flake8 has been there for 3 (or more) years now and that's where people likely expect it to be. I consider this more-so to be Tarek's decision though and in light of his latest email I created the PyCQA org on GitHub to have something to host it under. It's in the tradition of PyCA and PyPA (Python Cryptographic and Packaging Authorities), but it can be renamed before we add any repos to it since it can sound rather presumptuous to some (even though it's mostly in jest). From skip at pobox.com Fri Sep 12 17:52:15 2014 From: skip at pobox.com (Skip Montanaro) Date: Fri, 12 Sep 2014 10:52:15 -0500 Subject: [code-quality] pylint for cython? Message-ID: I have slowly been converting some Python source to Cython. I'm pretty conservative in what changes I make, mostly sprinkling a few "cdef", "float" and "int" declarations around the pyx file. Still, conservative or not, it's enough to choke pylint. Rather than have to maintain a pure Python version of my code, it would be nice if pylint had a flag or if there was a "cylint" tool available. A few Google and PyPi searches failed to reveal anything. Is there something out there? Thanks, Skip -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmueller at python-academy.de Fri Sep 12 19:25:19 2014 From: mmueller at python-academy.de (=?ISO-8859-1?Q?Mike_M=FCller?=) Date: Fri, 12 Sep 2014 19:25:19 +0200 Subject: [code-quality] pylint for cython? In-Reply-To: References: Message-ID: <54132C7F.6050903@python-academy.de> Am 12.09.14 17:52, schrieb Skip Montanaro: > I have slowly been converting some Python source to Cython. I'm pretty > conservative in what changes I make, mostly sprinkling a few "cdef", "float" > and "int" declarations around the pyx file. Still, conservative or not, it's > enough to choke pylint. Rather than have to maintain a pure Python version of > my code, it would be nice if pylint had a flag or if there was a "cylint" tool > available. You should try pure Python mode: http://docs.cython.org/src/tutorial/pure.html This allows you to keep your code valid, pure python and put all the Cython related stuff into decorators. Works pretty well. There might be few places were it does not work; for example, wrapping C libraries. But you could put these parts in small, extra files and could still check most of your code. I would be interested in your experiences with this. So let me know how it works if you try. Mike > > A few Google and PyPi searches failed to reveal anything. Is there something > out there? > > Thanks, > > Skip > > > > _______________________________________________ > code-quality mailing list > code-quality at python.org > https://mail.python.org/mailman/listinfo/code-quality > From skip at pobox.com Fri Sep 12 20:38:47 2014 From: skip at pobox.com (Skip Montanaro) Date: Fri, 12 Sep 2014 13:38:47 -0500 Subject: [code-quality] pylint for cython? In-Reply-To: <54132C7F.6050903@python-academy.de> References: <54132C7F.6050903@python-academy.de> Message-ID: On Fri, Sep 12, 2014 at 12:25 PM, Mike M?ller wrote: > You should try pure Python mode: > http://docs.cython.org/src/tutorial/pure.html > So I leave my Python code as-is in somemodule.py and put the Cython declarations in somemodule.pyd. My make targets are map pyd files to so instead of pyx to so? (I don't use setup.py. I'm very old school.) Thx, Skip -------------- next part -------------- An HTML attachment was scrubbed... URL: From skip at pobox.com Fri Sep 12 20:45:58 2014 From: skip at pobox.com (Skip Montanaro) Date: Fri, 12 Sep 2014 13:45:58 -0500 Subject: [code-quality] pylint for cython? In-Reply-To: References: <54132C7F.6050903@python-academy.de> Message-ID: On Fri, Sep 12, 2014 at 1:38 PM, Skip Montanaro wrote: > My make targets are map pyd files to so instead of pyx to so? s/pyd/pxd/ s/are// -------------- next part -------------- An HTML attachment was scrubbed... URL: From stefan_ml at behnel.de Fri Sep 12 21:47:33 2014 From: stefan_ml at behnel.de (Stefan Behnel) Date: Fri, 12 Sep 2014 21:47:33 +0200 Subject: [code-quality] pylint for cython? In-Reply-To: References: <54132C7F.6050903@python-academy.de> Message-ID: Skip Montanaro schrieb am 12.09.2014 um 20:38: > On Fri, Sep 12, 2014 at 12:25 PM, Mike M?ller wrote: >> You should try pure Python mode: >> http://docs.cython.org/src/tutorial/pure.html > > So I leave my Python code as-is in somemodule.py and put the Cython > declarations in somemodule.pyd. My make targets are map pyd files to so > instead of pyx to so? ".py" -> ".so" instead of ".pyx" -> ".so", yes. Latest Cython also has a "cythonize" script that can compile and build modules ("cythonize -i pkg/module.py" -> "pkg/module.so"). > (I don't use setup.py. I'm very old school.) That sounds a bit old-school, yes. To compile a Cython module, it can be as simple as this: """ from distutils.core import setup from Cython.Build import cythonize setup( ext_modules=cythonize('hello.py'), ) """ And it will avoid rebuilding if it's up-to-date, just like make does. (This is getting quite off-topic for this list, though...) Stefan From ben+python at benfinney.id.au Sat Sep 13 09:52:15 2014 From: ben+python at benfinney.id.au (Ben Finney) Date: Sat, 13 Sep 2014 17:52:15 +1000 Subject: [code-quality] Request For Comments: Moving Flake8 development to Git References: <5412826A.9070804@ziade.org> <20140912063838.GF2854@logilab.fr> Message-ID: <85ppf0vtxs.fsf@benfinney.id.au> Sylvain Th?nault writes: > On 12 septembre 08:18, Carl Crowder wrote: > > I think it's a good idea. I personally dislike contributing to > > hg-based projects because it's such a faff for me compared to using > > git, and I wouldn't be surprised if others are put off contributing > > for a similar reason (not that I'm saying the reason is good, I'm just > > lazy!) > > Isn't this rather a question of platform - github vs bitbucket ? No, using Git doesn't imply GitHub hosting. Likewise, using Mercurial doesn't imply Bitbucket hosting. I think it's a better idea to host a repository on something like a Gitorious instance, since it avoids proprietary extensions (such as those of GitHub) to ensure there's no lock-in to a specific provider. So please, mke the decision of which VCS *system* independent of which *hosting service*. And please choose a hosting service without proprietary extensions. > On the command line tool side, I personnaly feel like mercurial is > easier for newcomers. On the other hand, for power user, the hg+evolve > workflow is very powerful. Ok, I'm biased since I know more about hg > than git ;) I certainly agree that Mercurial is much more straightforward on the command line than Git. -- \ ?People's Front To Reunite Gondwanaland: Stop the Laurasian | `\ Separatist Movement!? ?wiredog, http://kuro5hin.org/ | _o__) | Ben Finney From tarek at ziade.org Sat Sep 13 15:17:55 2014 From: tarek at ziade.org (=?UTF-8?B?VGFyZWsgWmlhZMOp?=) Date: Sat, 13 Sep 2014 15:17:55 +0200 Subject: [code-quality] Request For Comments: Moving Flake8 development to Git In-Reply-To: <85ppf0vtxs.fsf@benfinney.id.au> References: <5412826A.9070804@ziade.org> <20140912063838.GF2854@logilab.fr> <85ppf0vtxs.fsf@benfinney.id.au> Message-ID: <54144403.2060502@ziade.org> Le 13/09/14 09:52, Ben Finney a ?crit : > Sylvain Th?nault > writes: > >> On 12 septembre 08:18, Carl Crowder wrote: >>> I think it's a good idea. I personally dislike contributing to >>> hg-based projects because it's such a faff for me compared to using >>> git, and I wouldn't be surprised if others are put off contributing >>> for a similar reason (not that I'm saying the reason is good, I'm just >>> lazy!) >> Isn't this rather a question of platform - github vs bitbucket ? > No, using Git doesn't imply GitHub hosting. Likewise, using Mercurial > doesn't imply Bitbucket hosting. > > I think it's a better idea to host a repository on something like a > Gitorious instance, since it avoids proprietary extensions (such as > those of GitHub) to ensure there's no lock-in to a specific provider. > > So please, mke the decision of which VCS *system* independent of which > *hosting service*. And please choose a hosting service without > proprietary extensions. This is very true - however the (sad) truth is that having a project on github.com boosts contributions like nowhere else - and I guess at the end of the day it's still beneficial for OSS. Cheers Tarek From graffatcolmingov at gmail.com Sat Sep 13 15:34:30 2014 From: graffatcolmingov at gmail.com (Ian Cordasco) Date: Sat, 13 Sep 2014 08:34:30 -0500 Subject: [code-quality] Request For Comments: Moving Flake8 development to Git In-Reply-To: <54144403.2060502@ziade.org> References: <5412826A.9070804@ziade.org> <20140912063838.GF2854@logilab.fr> <85ppf0vtxs.fsf@benfinney.id.au> <54144403.2060502@ziade.org> Message-ID: On 9/13/14, Tarek Ziad? wrote: > Le 13/09/14 09:52, Ben Finney a ?crit : >> Sylvain Th?nault >> writes: >> >>> On 12 septembre 08:18, Carl Crowder wrote: >>>> I think it's a good idea. I personally dislike contributing to >>>> hg-based projects because it's such a faff for me compared to using >>>> git, and I wouldn't be surprised if others are put off contributing >>>> for a similar reason (not that I'm saying the reason is good, I'm just >>>> lazy!) >>> Isn't this rather a question of platform - github vs bitbucket ? >> No, using Git doesn't imply GitHub hosting. Likewise, using Mercurial >> doesn't imply Bitbucket hosting. >> >> I think it's a better idea to host a repository on something like a >> Gitorious instance, since it avoids proprietary extensions (such as >> those of GitHub) to ensure there's no lock-in to a specific provider. >> >> So please, mke the decision of which VCS *system* independent of which >> *hosting service*. And please choose a hosting service without >> proprietary extensions. > > This is very true - however the (sad) truth is that having a project on > github.com boosts contributions like nowhere else - and I guess at the > end of the day it's still beneficial for OSS. I only replied to Tarek instead of the list. Sorry Tarek that you're going to get this twice So given the consensus was to move it away from BitBucket, and we would like to not get stuck with proprietary sites like GitHub. How does this plan sound? We will host the mainline development on an entirely free site - GitLab - and mirror the repository on GitHub for visibility. We will disable issues on GitHub but still accept pull requests via GitHub. My reason for preferring GitLab over Gitorious is that GitLab allows users to sign in with their GitHub login, so if someone already has a GitHub account, they can simply authorize GitLab to have read access to their user data and then create and comment on issues. Cheers, Ian From graffatcolmingov at gmail.com Sun Sep 21 20:50:05 2014 From: graffatcolmingov at gmail.com (Ian Cordasco) Date: Sun, 21 Sep 2014 13:50:05 -0500 Subject: [code-quality] Flake8 Development Has Moved Message-ID: Hi all, Flake8 - a linting and style tool that combines pep8, pyflakes, and mccabe - has moved its development off of BitBucket to GitLab. The transition from Mercurial to Git was discussed and took place last weekend. For further information please read this blog post: http://www.coglib.com/~icordasc/blog/2014/09/flake8-in-transition.html Cheers, Ian Cordasco Flake8 Maintainer and Core Developer From indigo at bitglue.com Mon Sep 22 23:00:43 2014 From: indigo at bitglue.com (Phil Frost) Date: Mon, 22 Sep 2014 17:00:43 -0400 Subject: [code-quality] reclaiming pyflakes maintainership Message-ID: Would people mind if I re-claimed maintainership of pyflakes? I have the greatest gratitude for the people who have helped keep it current and updated all these years, but now I'm finding myself with some time on my hands and a desire to do something about the open pull requests in github. -------------- next part -------------- An HTML attachment was scrubbed... URL: From graffatcolmingov at gmail.com Mon Sep 22 23:10:06 2014 From: graffatcolmingov at gmail.com (Ian Cordasco) Date: Mon, 22 Sep 2014 16:10:06 -0500 Subject: [code-quality] reclaiming pyflakes maintainership In-Reply-To: References: Message-ID: On Mon, Sep 22, 2014 at 4:00 PM, Phil Frost wrote: > Would people mind if I re-claimed maintainership of pyflakes? I have the > greatest gratitude for the people who have helped keep it current and > updated all these years, but now I'm finding myself with some time on my > hands and a desire to do something about the open pull requests in github. I see no reason why you wouldn't be able to contribute even without having merge powers (e.g., code review, issue triage on LaunchPad, etc). I'm not sure who owns/maintains that organization[1] so I'm not sure who would be capable of adding you. That said, Florent is the person who maintains pyflakes mostly and I don't doubt he would appreciate some help. [1]: There are no public members of the PyFlakes organization (https://github.com/pyflakes) From florent.xicluna at gmail.com Mon Sep 22 23:36:08 2014 From: florent.xicluna at gmail.com (Florent) Date: Mon, 22 Sep 2014 23:36:08 +0200 Subject: [code-quality] reclaiming pyflakes maintainership In-Reply-To: References: Message-ID: hello Phil, Thank you for volunteering. I've added you as co-maintainer of the repository. I appreciate you come back in the team ;-) If you want to discuss more thoroughly about some topic, you can join me by e-mail too. -- Florent 2014-09-22 23:10 GMT+02:00 Ian Cordasco : > On Mon, Sep 22, 2014 at 4:00 PM, Phil Frost wrote: >> Would people mind if I re-claimed maintainership of pyflakes? I have the >> greatest gratitude for the people who have helped keep it current and >> updated all these years, but now I'm finding myself with some time on my >> hands and a desire to do something about the open pull requests in github. > > I see no reason why you wouldn't be able to contribute even without > having merge powers (e.g., code review, issue triage on LaunchPad, > etc). I'm not sure who owns/maintains that organization[1] so I'm not > sure who would be capable of adding you. That said, Florent is the > person who maintains pyflakes mostly and I don't doubt he would > appreciate some help. > > [1]: There are no public members of the PyFlakes organization > (https://github.com/pyflakes) > _______________________________________________ > code-quality mailing list > code-quality at python.org > https://mail.python.org/mailman/listinfo/code-quality From davidhalter88 at gmail.com Mon Sep 29 12:02:03 2014 From: davidhalter88 at gmail.com (Dave Halter) Date: Mon, 29 Sep 2014 12:02:03 +0200 Subject: [code-quality] Jedi gets a new parser Message-ID: Hi all! I will be writing a new parser for Jedi. This is necessary for a quite a few reasons described in: https://github.com/davidhalter/jedi/issues/480. I'm posting this here, because some of you may be interested in actually using the new parser. It's going to be pure Python and contrary to the Python's internal parser will have error recovery and indent positions. If you're interested, I'd be really glad to hear your feedback! ~ Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: From pcmanticore at gmail.com Mon Sep 29 19:15:12 2014 From: pcmanticore at gmail.com (Claudiu Popa) Date: Mon, 29 Sep 2014 20:15:12 +0300 Subject: [code-quality] Jedi gets a new parser In-Reply-To: References: Message-ID: On Mon, Sep 29, 2014 at 1:02 PM, Dave Halter wrote: > Hi all! > > I will be writing a new parser for Jedi. This is necessary for a quite a few > reasons described in: > https://github.com/davidhalter/jedi/issues/480. > > I'm posting this here, because some of you may be interested in actually > using the new parser. It's going to be pure Python and contrary to the > Python's internal parser will have error recovery and indent positions. > > If you're interested, I'd be really glad to hear your feedback! > > ~ Dave > Hello, Dave. That's awesome, If your parser can generate a new AST, then we can definitely use it, although we have in mind to use lib2to3 to replace the standard ast module for our use cases, but that can change if your parser is finished until taking action from our side. Having always correct information, such as line and col offsets definitely will help us (we actually have a couple of problems regarding this, where the lineno for some nodes is different than reality). Regarding the parser approach, I'm not sure what's best in this situation. I'm working on a static analysis tool, in the vein of pylint, for the Powershell language (https://github.com/RoPython/wispy) where I'm using modgrammar, a recursive descent top down parser to parse the code and retrieve an AST from it. modgrammar is pretty good, easy to use, but slow sometimes and backtracks too much on ambiguities. But it can memorize whitespace tokens and such, as long as you explicitly define the whitespace token in the grammar, which can be a pretty daunting task. Anyway, if there is something I can help you with your parser, don't hesitate to send me an email. Claudiu