Closed elaird closed 10 years ago
Hi Ted and Burt,
I was trying myself to read the pep8 guide a couple of weeks ago, and I like the idea of using a checker to verify that my code follows the guidelines (it's a good way for me to get into the habit of using the right idiom...). However, there are two 'features' that I liked in the current 'supy style':
:
, because it makes it easier to seeif
and else
when they involve only a single statement, because it makes the code more compact and easier to followFor 1), we could add ignore = E203
in ~/.config/pep8
, but I don't see a similar option for 2).
Anyway, these are only my personal preferences, and I don't have any strong objection against using pep8.
Davide
Hi Ted,
My thoughts on PEP8 are multiple and conflicting.
=
for named arguments__master__.py
before and after), resulting in half the vertical information density, therefore slowing my reading. On the other hand, I find it annoying when the code exceeds the horizontal length displayed by github (125 characters default chromium for me, but non-constant with changing text size). I'd be quite a bit more willing to try to keep the code within 125 lines than within 80, and hope you'll support that.Burt
Would like to express reasonable level of support for Davide's (1) and (2). Burt
Hi Ted,
I have played more with a PEP8 checker, and I am supportive of a goal to be PEP8 compatible with some exceptions. I would prefer to --ignore
errors
Davide mentioned his preference to also --ignore
Regarding E501, I would support allowing the line length to be maximum 125 characters, rather than 80 characters.
Please see branch not-pep8 for a version of __master__.py
conforming to PEP8 --ignore E501,E701
Burt
What would you guys think of following this guide [1]? I used this program [2] to check the three files included in the pull request.
Ted
[1] http://www.python.org/dev/peps/pep-0008/ [2] https://github.com/jcrocholl/pep8