Date Tags Python

PYTHON: 79 chars or not (pep8)

The most difficult thing in pep8 is 79 chars.
I think that no one project apply this rule.
You can check percentage of not pep-8 strings in your project by two simple commands:

find -name "*.py" | xargs wc -l

Lines that have more than 79 characters :

find -name "*.py" | xargs awk '{ if (length($0) > 79) printf("%s:%s\n", FILENAME, FNR);}' | wc -l

and compare with other projects you use =)


Comments

comments powered by Disqus