[metrics-team] Python coding style

Damian Johnson atagar at torproject.org
Fri Jul 1 19:13:11 UTC 2016


Oops! Didn't mean to drop metrics-team@ from my reply. All our other
lists set the reply-to to be the list. Odd metrics-team@ isn't
configured that way.


On Fri, Jul 1, 2016 at 12:10 PM, Anathema <anathema at anche.no> wrote:
> Hi Damina,
> thanks for your reply.
>
> I don't have problem applying PEP8 (pycharm uses it by default, so my
> code is already PEP8 compliant).
>
> My email was more focused in having an "official" support for Python
> coding style PEP8, recognized by the Metrics Team and added it to the wiki.
>
> Nice tool btw!
>
> On 01/07/2016 20:51, Damian Johnson wrote:
>> Hi Anathema. Stem and DocTor (my projects) are the largest Python
>> codebases in the metrics space. PEP8 checks are included in its test
>> runs. If you'd care to apply the same conventions for one of your
>> projects then you can run...
>>
>> https://stem.torproject.org/api/util/test_tools.html#stem.util.test_tools.stylistic_issues
>>
>> Cheers! -Damian
>>
>> On Fri, Jul 1, 2016 at 10:47 AM, Anathema <anathema at anche.no> wrote:
>>> Hello,
>>> in the last meeting we talked about coding style. I know that mostly of
>>> the code is done in java (as far as I can see), but I was wondering if
>>> it may be useful to add also a Python coding style guide.
>>>
>>> During the meeting someone pointed out to the Google Python Style Guide
>>> (https://google.github.io/styleguide/pyguide.html) but I was not able to
>>> verify how it differs from the most accepted and widely adopted PEP8
>>> style (https://www.python.org/dev/peps/pep-0008/).
>>>
>>> So I was wondering if it could be useful to add a Python coding style
>>> guide to our wiki and which style choose.
>>>
>>> What do you think?
>>>
>>> --
>>> Anathema
>>>
>>> +--------------------------------------------------------------------+
>>> |GPG/PGP KeyID: CFF94F0A available on http://pgpkeys.mit.edu:11371/  |
>>> |Fingerprint: 80CE EC23 2D16 143F 6B25  6776 1960 F6B4 CFF9 4F0A     |
>>> |                                                                    |
>>> |https://keybase.io/davbarbato                                       |
>>> +--------------------------------------------------------------------+
>>> _______________________________________________
>>> metrics-team mailing list
>>> metrics-team at lists.torproject.org
>>> https://lists.torproject.org/cgi-bin/mailman/listinfo/metrics-team
>>
>
>
> --
> Anathema
>
> +--------------------------------------------------------------------+
> |GPG/PGP KeyID: CFF94F0A available on http://pgpkeys.mit.edu:11371/  |
> |Fingerprint: 80CE EC23 2D16 143F 6B25  6776 1960 F6B4 CFF9 4F0A     |
> |                                                                    |
> |https://keybase.io/davbarbato                                       |
> +--------------------------------------------------------------------+


More information about the metrics-team mailing list