From asottile+pycqa at umich.edu Wed Oct 10 13:55:24 2018 From: asottile+pycqa at umich.edu (Anthony Sottile) Date: Wed, 10 Oct 2018 10:55:24 -0700 Subject: [code-quality] Looking for maintenance help for flake8? Message-ID: (trying again since I messed up my mailing list membership last try and got filtered!) Hi! I've noticed flake8 hasn't made a release in a while and I'd be willing to help out [0] Thanks! Anthony [0]: https://gitlab.com/pycqa/flake8/issues/447 From backorders at webally.net Fri Oct 12 11:36:01 2018 From: backorders at webally.net (backorders at webally.net) Date: Fri, 12 Oct 2018 21:06:01 +0530 Subject: [code-quality] pylit Message-ID: <25D842497C7643F28ED11E6B8B71490F@dell> Hi, Would you like to have this domain pylit.net? Kind Regards John -------------- next part -------------- An HTML attachment was scrubbed... URL: From mistersps at gmail.com Tue Oct 16 06:27:37 2018 From: mistersps at gmail.com (Prashant Sabnekar) Date: Tue, 16 Oct 2018 15:57:37 +0530 Subject: [code-quality] Pylint score Message-ID: Hi Friends, I want to integrate Pylint into my jenkins job such that the job should fail when the Pylint score is below say 8. I found many plugins which displays Pylint metrics but I could not found any plugin which returns true / false or some value based on my pylint score. Any idea how can this be done? Thanks, Prashant -------------- next part -------------- An HTML attachment was scrubbed... URL: From me at jamescooke.info Sun Oct 21 09:20:12 2018 From: me at jamescooke.info (James Cooke) Date: Sun, 21 Oct 2018 14:20:12 +0100 Subject: [code-quality] Pylint score In-Reply-To: References: Message-ID: <1540128012.521977.1549363536.7B5E4673@webmail.messagingengine.com> Hi Prashant, This does not directly answer your question - so apologies for that. However, pylint gives an exit code based on the types of failures that were found which can be checked https://pylint.readthedocs.io/en/latest/user_guide/run.html#exit-codes Therefore when linting flake8-aaa, I gave up trying to check for a threshold score in order to allow for success and instead there is a script that checks that there are no errors of particular types (FATAL_MESSAGE, ERROR_MESSAGE, CONVENTION_MESSAGE, USAGE_ERROR). That script is here https://github.com/jamescooke/flake8-aaa/blob/master/run_pylint.sh and it's called via a Makefile recipe here https://github.com/jamescooke/flake8-aaa/blob/master/Makefile#L24-L38 When working on this, I found that there were some helpful messages on SO, a quick search has taken me back to this old one: https://stackoverflow.com/a/7347681/1286705 Hope that helps. James On Tue, 16 Oct 2018, at 11:27 AM, Prashant Sabnekar wrote: > Hi Friends, > > I want to integrate Pylint into my jenkins job such that the job > should fail when the Pylint score is below say 8.> > I found many plugins which displays Pylint metrics but I could not > found any plugin which returns true / false or some value based on my > pylint score.> > Any idea how can this be done? > > Thanks, > Prashant > _________________________________________________ > 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 jmbowman at portabase.org Sun Oct 21 12:56:11 2018 From: jmbowman at portabase.org (Jeremy Bowman) Date: Sun, 21 Oct 2018 12:56:11 -0400 Subject: [code-quality] Pylint score In-Reply-To: References: Message-ID: <8e5db9e8051bb601476fd1042e2c29fc@portabase.org> The Open edX project has a Jenkins job that does something similar by using a custom Python script which runs pylint, parses the generated report, and compares the number of reported issues against specified upper and lower limits: https://github.com/edx/edx-platform/blob/master/pavelib/quality.py#L166. This is particularly useful when you start applying stricter rules to a legacy codebase, and want to avoid new violations of them without immediately needing to do a huge cleanup effort. You just need to keep lowering the upper limit as the legacy violations gradually get fixed. Jeremy On 2018-10-16 06:27, Prashant Sabnekar wrote: > Hi Friends, > > I want to integrate Pylint into my jenkins job such that the job should fail when the Pylint score is below say 8. > > I found many plugins which displays Pylint metrics but I could not found any plugin which returns true / false or some value based on my pylint score. > > Any idea how can this be done? > > Thanks, > Prashant > _______________________________________________ > 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 cortex at worlddomination.be Sun Oct 28 21:33:15 2018 From: cortex at worlddomination.be (Laurent Peuch) Date: Mon, 29 Oct 2018 02:33:15 +0100 Subject: [code-quality] Red/Baron release 0.8 - bug fixes and python 3 compatibility WIP Message-ID: <20181029013315.GA15583@rosenstein> Hello everyone, After some time-out I've finally release a new version of Baron and RedBaron (actually 2 versions) with some bug fixes but mainly adding more support to python 3. Most of the biggest part of the new grammar addition should be done, there are still important bits and you can see the progress here https://baron.readthedocs.io/en/latest/grammar.html Things will take their time but it should come pretty smoothly. Full changelog: =============== Bug fixes: ---------- - fix line continuation https://github.com/PyCQA/baron/pull/92 by ibizaman - handle corrupt cache file situation https://github.com/PyCQA/baron/pull/76 by ryu2 - fix special crashing edge case in indentation marker https://github.com/PyCQA/bar by Ahuge - fixed incorrect tokenization case "d*e-1". Fixes #85 https://github.com/PyCQA/baron/pull/107 by boxed - fix endl handling inside groupings by kyleatmakrs (extracted from https://github.com/PyCQA/baron/pull/126) Python 3: --------- - add typed parameters support https://github.com/PyCQA/baron/pull/140 by Scott Belden and and additional work by bram - python 3 parsing extracted from https://github.com/PyCQA/baron/pull/126 - support ellipsis https://github.com/PyCQA/baron/pull/121 by odcinek - support matrix operator https://github.com/PyCQA/baron/pull/117 by odcinek - support f-strings https://github.com/PyCQA/baron/pull/110 by odcinek - support numeric literals https://github.com/PyCQA/baron/pull/111 by odcinek - support nonlocal statement https://github.com/PyCQA/baron/pull/112 by odcinek - support keyword only markers https://github.com/PyCQA/baron/pull/108 by boxed - support yield from statement https://github.com/PyCQA/baron/pull/113 by odcinek and additional work by bram - support async/await statements https://github.com/PyCQA/baron/pull/114 by odcinek and additional work by bram I also end up opening an OpenCollective for RedBaron https://opencollective.com/redbaron/ to accept donations. I've been working moslty solo for this (research) project for several years for free because I had the feeling we needed something like that and while this feeling hasn't changed my life has. Those those projects requires a lot of time and mental energy to work on, including correctly reviewing the waiting pull requests, and well, being able to eat is pretty cool, so every input will help me put more time into it :) Also seeing from which kind of companies I get bug reports and pull requests I guess that this project is far from being useless. Have a nice day, -- Laurent Peuch -- Bram