Re: pylint naming conventions?

2009-06-09 Thread Esmail

R. David Murray wrote:


Well, I for one looked at that long pylint output when I first tried it,
and switched to another tool :)

(pyflakes...but I don't think it does PEP 8)


:-)

Ok, so I'm not the only one who thinks the output is rather lengthy.

I've since dug into the docs and searched on the web and found that

--reports=n

on the command line will truncate the various tables output at the end.

Esmail

--
http://mail.python.org/mailman/listinfo/python-list


Re: pylint naming conventions?

2009-06-08 Thread Esmail

Hi David,

David Stanek wrote:


It is my understanding that it does check for PEP8 names. Even if it doesn't
it is really easy to change. If you run 'pylint --generate-rcfile' (i think)
it will output the configuration that it is using. You can then save this
off and customize it.


Thanks, I'll see if I can customize it this way. I looked at it once briefly.


I'll try to come up with a nice short code example in the next few days
to demonstrate what I think the problem is and post it, thanks for the
suggestion.


If you didn't have an example handy what prompted you to start this thread?


:-)

I have had number of examples, but they are rather long, so I think it will be
better if I can provide a short example with the (rather lengthy pylint)
output that shows the problem.

I thought lots of people are using pylint and I would hear one way or
the other about the name checks (ie people agreeing or telling me I'm
way off  :) .. in which case perhaps my recollection/reading of PEP 8
is not accurate.

Esmail

--
http://mail.python.org/mailman/listinfo/python-list


Re: pylint naming conventions?

2009-06-08 Thread Esmail

Ben Finney wrote:



My understanding of Esmail's original message was that, like many of us
on first running ‘pylint’ against an existing code base, the output is
astonishingly verbose and tedious to read. By the above I presume he's
being a good forum member and trying to find a minimal example that
shows the problem clearly :-)


Yes, that is my intention .. because the code I was checking was rather
long, combined with the long pylint output it would make for a rather
big posting.

I'm going to go back and re-read PEP 8 and see if I perhaps don't
recall the right guidelines since no one else here seems to have had
the same observation.

Esmail

--
http://mail.python.org/mailman/listinfo/python-list


Re: pylint naming conventions?

2009-06-08 Thread R. David Murray
Esmail ebo...@hotmail.com wrote:
 Ben Finney wrote:
  My understanding of Esmail's original message was that, like many of us
  on first running ‘pylint’ against an existing code base, the output is
  astonishingly verbose and tedious to read. By the above I presume he's
  being a good forum member and trying to find a minimal example that
  shows the problem clearly :-)
 
 Yes, that is my intention .. because the code I was checking was rather
 long, combined with the long pylint output it would make for a rather
 big posting.
 
 I'm going to go back and re-read PEP 8 and see if I perhaps don't
 recall the right guidelines since no one else here seems to have had
 the same observation.

Well, I for one looked at that long pylint output when I first tried it,
and switched to another tool :)

(pyflakes...but I don't think it does PEP 8)

--
R. David Murray http://www.bitdance.com
IT ConsultingSystem AdministrationPython Programming

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: pylint naming conventions?

2009-06-07 Thread Esmail

Ben Finney wrote:

Esmail ebo...@hotmail.com writes:


I am confused by pylint's naming conventions, I don't think the are in
tune with Python's style recommendations (PEP 8?)

Anyone else think this?


It's hard to know, without examples. Can you give some output of pylint
that you think doesn't agree with PEP 8?


Sure, I will next time I have a nice self-contained example. Perhaps not that
many people are using pylint? I was expecting a bunch of messages either
contradicting my observation or agreeing with it :-) .. but perhaps this
indicates that there's no issue.

I'll try to come up with a nice short code example in the next few days
to demonstrate what I think the problem is and post it, thanks for the
suggestion.

Esmail


--
http://mail.python.org/mailman/listinfo/python-list


Re: pylint naming conventions?

2009-06-07 Thread David Stanek
On Sun, Jun 7, 2009 at 9:23 AM, Esmailebo...@hotmail.com wrote:
 Ben Finney wrote:

 Esmail ebo...@hotmail.com writes:

 I am confused by pylint's naming conventions, I don't think the are in
 tune with Python's style recommendations (PEP 8?)

 Anyone else think this?

 It's hard to know, without examples. Can you give some output of pylint
 that you think doesn't agree with PEP 8?

 Sure, I will next time I have a nice self-contained example. Perhaps not
 that
 many people are using pylint? I was expecting a bunch of messages either
 contradicting my observation or agreeing with it :-) .. but perhaps this
 indicates that there's no issue.

It is my understanding that it does check for PEP8 names. Even if it doesn't
it is really easy to change. If you run 'pylint --generate-rcfile' (i think)
it will output the configuration that it is using. You can then save this
off and customize it.


 I'll try to come up with a nice short code example in the next few days
 to demonstrate what I think the problem is and post it, thanks for the
 suggestion.

If you didn't have an example handy what prompted you to start this thread?

-- 
David
blog: http://www.traceback.org
twitter: http://twitter.com/dstanek
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: pylint naming conventions?

2009-06-07 Thread Ben Finney
David Stanek dsta...@dstanek.com writes:

 On Sun, Jun 7, 2009 at 9:23 AM, Esmailebo...@hotmail.com wrote:
  I'll try to come up with a nice short code example in the next few
  days to demonstrate what I think the problem is and post it, thanks
  for the suggestion.
 
 If you didn't have an example handy what prompted you to start this
 thread?

My understanding of Esmail's original message was that, like many of us
on first running ‘pylint’ against an existing code base, the output is
astonishingly verbose and tedious to read. By the above I presume he's
being a good forum member and trying to find a minimal example that
shows the problem clearly :-)

-- 
 \“Kill myself? Killing myself is the last thing I'd ever do.” |
  `\—Homer, _The Simpsons_ |
_o__)  |
Ben Finney
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: pylint naming conventions?

2009-06-05 Thread Ben Finney
Esmail ebo...@hotmail.com writes:

 I am confused by pylint's naming conventions, I don't think the are in
 tune with Python's style recommendations (PEP 8?)
 
 Anyone else think this?

It's hard to know, without examples. Can you give some output of pylint
that you think doesn't agree with PEP 8?

-- 
 \   “Are you thinking what I'm thinking, Pinky?” “Uh... yeah, |
  `\ Brain, but where are we going to find rubber pants our size?” |
_o__)   —_Pinky and The Brain_ |
Ben Finney
-- 
http://mail.python.org/mailman/listinfo/python-list