On 01/03/2014 15:25, Alexandre Fayolle ML wrote:
Hello,
I wanted to contribute a fix for a bug I reported on hgview 1.8.0 but
I noticed that the hgview repository on bitbucket is out of sync since
almost a year now (last tag there is 1.7.1).
I attach the patch to the bug report in the mean
Hello,
I wanted to contribute a fix for a bug I reported on hgview 1.8.0 but I
noticed that the hgview repository on bitbucket is out of sync since
almost a year now (last tag there is 1.7.1).
I attach the patch to the bug report in the mean time, but if would
certainly be a great thing if y
On 06/02/2014 02:13, Dan Stromberg wrote:
I noticed recently that pylint has begun warning about use of parens
on print statements in Python 2.x code.
This seems reasonable on the face of it, except it deters writing code
that runs on 2.x and 3.x, unmodified.
The error looks like:
C: 5, 0
test/input/func_i0013.py | 2 +-
test/input/func_i0014.py | 8
test/messages/func_i0014.txt | 2 ++
utils.py | 5 +
9 files changed, 67 insertions(+), 10 deletions(-)
# HG changeset patch
# User Alexandre Fayolle
# Date 1349241828 -7200
ays to tacke the problem?
IMO, this is an IDE's job to get information from Pylint and provide tools to
modify the source code. Maybe you could try to integrate Pylint with rope ?
http://rope.sourceforge.net/
--
Alexandre Fayolle LOGILAB, Paris (France
rate or point to any plugin provided and maintained by other (hint,
hint), and of course we will provide support in the writing of such a plugin.
--
Alexandre Fayolle LOGILAB, Paris (France)
Formations Python, CubicWeb, Debian : http://www.logilab.fr/formations
Dé
ble to provide an answer. :-)
--
Alexandre Fayolle LOGILAB, Paris (France)
Formations Python, CubicWeb, Debian : http://www.logilab.fr/formations
Développement logiciel sur mesure : http://www.logilab.fr/services
Informatique scientifique: http:
.
>
> and the code is rated at -6.67/10.
>
> Is this a bug? How can I avoid this problem?
Strange, I don't reproduce and I get 10/10 on the sample code (running py2.6).
A possible explanation could be that your pylint is running with another
version of Python (for which distuti
le too : see
http://www.logilab.org/card/LogilabDebianRepository (which might be a bit
outdated in terms of version names but the repositories are there, just change
the line in the suggested config).
--
Alexandre Fayolle LOGILAB, Paris (France)
Formations P
a=4)
I get an Error flag on the last line, but not on the body of func. Not sure if
we can get the type inference to work on that case.
--
Alexandre Fayolle LOGILAB, Paris (France)
Formations Python, CubicWeb, Debian : http://www.logilab.fr/formations
Dév
hole test suite:
Thanks for your report. I added an issue on our tracker[1], we will try and
publish a fix for this asap.
[1]: https://www.logilab.org/ticket/75290
--
Alexandre Fayolle LOGILAB, Paris (France)
Formations Python, CubicWeb, Debian : http://www.l
ty shipped with pylint ? It provides a
simple GUI for pylint written with Tkinter.
--
Alexandre Fayolle LOGILAB, Paris (France)
Formations Python, CubicWeb, Debian : http://www.logilab.fr/formations
Développement logiciel sur mesure : http://www.logilab
r, you can easily
> add comments to disable them on a case by case basis, or set up a pylint
> rc file to disable them for an entire project at once.
The relevant line in the default pylintrc is
bad-functions=map,filter,apply,input
You like map, filter and apply? Just remove them fr
comment, or a popup menu is eclipse / whatever your favorite python
editor is to do that.
--
Alexandre Fayolle LOGILAB, Paris (France)
Formations Python, CubicWeb, Debian : http://www.logilab.fr/formations
Développement logiciel sur mesure : http://www.logilab.f
build_py},
> > ...)
>
> This technique is not appropriate (yet) because Pylint uses a bunch of
> "unparsable" test files that will fail the build step.
What about renaming the unparsable files to '.py.syntaxerror' for example in
the archive and have pylin
e, and for the record, there is ongoing work on porting pylint to
py3k. The discussion is taking place on the python-projects list, and I
thought maybe you would be interested in joining.
--
Alexandre Fayolle LOGILAB, Paris (France)
Formations Python, CubicWeb,
lmost) real time on my source code, using epylint and the
elisp code distributed with pylint [1].
Pylint (and lint) won't catch algorithm errors. For these, I use unit testing
extensively.
[1] people using eclipse get similar benefits from pydev
--
Alexandre Fayolle
soever.
/usr/local/bin/pytest is the executable which is run by users, importing
logilab.common.pytest (aka pytest.py) which is just library code and does not
run any tests.
--
Alexandre Fayolle LOGILAB, Paris (France)
Formations Python, CubicWeb, Debian :
t; I do not have a problem with http://wiki.python.org/moin/PyLint-3k,
> but do not understand why http://www.logilab.org/add/Card wouldn't
> work (log in first).
Isn't there the issue that cards are only editable by their author and
administrators of the site ?
--
Alexandre Fayo
ould just walk through a list of files and report concisely the
> Errors/Warnings/Codingstyle issues and the rating.
>
>
> Nothing I wouldn't be willing to give away.
Sorry if I sounded harsh, this was not my intention. As long as you do not
distribute the code, it is b
nsed under the GPL. Doing so means that the code
calling Pylint must be licensed under a compatible license.
--
Alexandre Fayolle LOGILAB, Paris (France)
Formations Python, CubicWeb, Debian : http://www.logilab.fr/formations
Développement logiciel sur mesu
Hello,
Manually resending a mail that got eaten by the spam filters of the list.
--
Alexandre Fayolle LOGILAB, Paris (France)
Formations Python, CubicWeb, Debian : http://www.logilab.fr/formations
Développement logiciel sur mesure : http://www.logilab.fr
ome python internals (ast) will give a little more
trouble. But I'd be glad to be proven wrong.
--
Alexandre Fayolle LOGILAB, Paris (France)
Formations Python, CubicWeb, Debian : http://www.logilab.fr/formations
Développement logiciel sur mesure : htt
on http://wiki.python.org/moin/SummerOfCode/2010
--
Alexandre Fayolle LOGILAB, Paris (France)
Formations Python, CubicWeb, Debian : http://www.logilab.fr/formations
Développement logiciel sur mesure : http://www.logilab.fr/services
Informatique scientifique:
odule top level are expected to be
constants, not variables.
--
Alexandre Fayolle LOGILAB, Paris (France)
Formations Python, CubicWeb, Debian : http://www.logilab.fr/formations
Développement logiciel sur mesure : http://www.logilab.fr/services
Informatiqu
a programming language.
--
Alexandre Fayolle LOGILAB, Paris (France)
Formations Python, CubicWeb, Debian : http://www.logilab.fr/formations
Développement logiciel sur mesure : http://www.logilab.fr/services
Informatique scientifique: http://www.logil
On Monday 22 March 2010 18:37:42 Alexandre Fayolle wrote:
> Hi everyone
>
> we'll hold the next `pylint bugs day`_ on april 16th 2010 (friday). If some
> of you want to come and work with us in our `Paris office`_, you'll be
> much welcome.
>
> Else you ca
lic on irc://irc.logilab.org
See you then!
.. _pylint bugs day: https://www.logilab.net/elo/blogentry/18781
.. _paris office: http://www.logilab.fr/contact
--
Alexandre Fayolle LOGILAB, Paris (France)
Formations Python, CubicWeb, Debian : http://www.logilab.fr/
For our spanish-reading friends : a blog note about Pylint available at
http://blog.milmazz.com.ve/archivos/2010/03/13/pylint-analisis-estatico-del-
codigo-en-python
--
Alexandre Fayolle LOGILAB, Paris (France)
Formations Python, CubicWeb, Debian : http
itional time
because I need to get a VisualStudio 2008 compiler, and I seriously lack time
these days.
In the meantime, the pure python implementation (using logilab.constraint)
should work fine on windows with python 2.6.
--
Alexandre Fayolle LOGILAB, P
d to
automatically generate the pylintrc file).
> I realize this is not a ticket, but would this be useful?
I think a gui could greatly simplify Pylint's usage if only by providing
filtering options and therefore enabling easy search for some errors without
requiring a rerun whi
ng, by all means keep your code clean, and do not add
tweaks to work around Pylint's limitations. If the false positive is a
problem, disable the error locally using a pylint:disable-msg comment.
--
Alexandre Fayolle LOGILAB, Paris (France)
Formations Python, Cubic
should:
>
> * add a visit_raise method that will check the nature of the raised
> expression to detect potential misusage of a 2-uple
Actually, any N-uple with N>=1 shoud trigger this. And even a 0-uple should
probably trigger a warning as these are alw
On Friday 05 February 2010 08:21:24 Sylvain Thénault wrote:
>
> Could one of you add a ticket?
>
https://www.logilab.net/elo/ticket/20138
--
Alexandre Fayolle LOGILAB, Paris (France)
Formations Python, CubicWeb, Debian : http://www.logilab.fr/f
class Foo:
def lower(self):
pass
ans = Foo()
if ans.lower == "yes": pass
Additionnaly, I think that if pylint's type inference indicates that ans is a
string object, it could know that ans.lower is a method.
--
Alexandre Fayolle LOGIL
On Friday 15 January 2010 11:07:58 Alexandre Fayolle wrote:
> Hi Thomas,
>
> The best way to exchange about hgview is through the mailing list (python-
> proje...@lists.logilab.org, I've just sent you an invitation to join. If it
> gets eaten by your spam filter, p
arded Message --
Subject: hgview: dates missing in window list
Date: Thursday 14 January 2010
From: Tomas Psika
To: David Douard , Alexandre Fayolle
, Aurelien Campeas
Hi all,
I couldnt find any way to create ticket on logilab website. And
anonymous users cannot push changes to the s
shows 0.19.2.
Fixed. Thanks for the notice.
--
Alexandre Fayolle LOGILAB, Paris (France)
Formations Python, Zope, Plone, Debian: http://www.logilab.fr/formations
Développement logiciel sur mesure: http://www.logilab.fr/services
Informatique scientifiqu
ned at the module scope. If you want
to use that variable from within the initializer of the Abc class, you can't
because it is shadowed by the argument of the same name.
--
Alexandre Fayolle LOGILAB, Paris (France)
Formations Python, Zope, Plone, Debian: htt
tomorrow is Pylint Bug day, and there will be people on irc to help you
diagnose this.
--
Alexandre Fayolle LOGILAB, Paris (France)
Formations Python, Zope, Plone, Debian: http://www.logilab.fr/formations
Développement logiciel sur mesure: http://www.
On Monday 23 November 2009 11:36:38 Marc 'BlackJack' Rintsch wrote:
> Alexandre Fayolle wrote:
> > Therefore, imo it deserves an Error.
>
> But it is no error. It is perfectly legal to implement `__pos__()` in a
> way that makes sense to call it repeatedly.
hmmm
yntactically correct but:
* in the best case it's a typo (the author wanted to write +x and typed +
twice)
* in the worst case, the author is a C programmer and meant something else
* it is anyway visually confusing and disgraceful.
Therefore, imo it deserves an Error.
--
Alexandre Fayolle
rsion (numpy for instance has known issues regarding pyling that were
fixed afaik in recent releases of numpy). If it is your own code, we need to
know a bit more in order to help you.
--
Alexandre Fayolle LOGILAB, Paris (France)
Formations Python, Zope, Plone, Debian
hich could help in fixing your problem,
though.
--
Alexandre Fayolle LOGILAB, Paris (France)
Formations Python, Zope, Plone, Debian: http://www.logilab.fr/formations
Développement logiciel sur mesure: http://www.logilab.fr/services
Informatique scientifique:
.org/project/pylint/0.18.1
.. _`2`: http://www.logilab.org/project/logilab-astng/0.19.1
.. _page: http://www.logilab.org/project/pylint/
.. _mercurial: http://www.selenic.com/mercurial/
--
Alexandre Fayolle LOGILAB, Paris (France)
Formations Python, Zope, Plone, Debian: http:/
Just came across that one. No time to test it yet:
http://www.unixuser.org/~euske/python/pyntch/index.html
--
Alexandre Fayolle LOGILAB, Paris (France)
Formations Python, Zope, Plone, Debian: http://www.logilab.fr/formations
Développement logiciel sur mesure
then I found your packages at
>
> http://ftp.logilab.org
>
> so, I wonder why hgview wasn't yet pushed into Debian? is there any
> objective problem?
Lack of time is the main culprit. I'll try and upload it this week. Thanks for
motivating me in uploading this package.
x. Easier to disable".
[this is a 'for the record' message. I'm not suggesting that we drop all these
by default, especially W0312 and W0311. But I thing it is a good thing to know
the usage patterns of pylint users]
--
Alexandre Fayolle LOGILAB
refer writing in french, use
http://lists.logilab.org/mailman/listinfo/forum-fr
We will do our best to help you and find ways to do what you need with pylint.
--
Alexandre Fayolle LOGILAB, Paris (France)
Formations Python, Zope, Plone, Debian: http://www.logi
Seen on the net: http://pylint-messages.wikidot.com/
--
Alexandre Fayolle LOGILAB, Paris (France)
Formations Python, Zope, Plone, Debian: http://www.logilab.fr/formations
Développement logiciel sur mesure: http://www.logilab.fr/services
Informatique
; %* 2>NUL
Why are you throwing away the standard error ?
--
Alexandre Fayolle LOGILAB, Paris (France)
Formations Python, Zope, Plone, Debian: http://www.logilab.fr/formations
Développement logiciel sur mesure: http://www.logilab.fr/services
Informati
e. I generally achieve this with grep.
> maybe it would even be better not to produce a report by default
> (the import things are the messages, not the stats).
Hmm, maybe.
--
Alexandre Fayolle LOGILAB, Paris (France)
Formations Python, Zope, Plone, Debian: h
52 matches
Mail list logo