spacetelescope / style-guides

An opinionated guide on how we work.
Creative Commons Attribution 4.0 International
55 stars 33 forks source link

Initial outline and some details for python style guide #9

Closed stscicrawford closed 6 years ago

stscicrawford commented 6 years ago

This is an initial outline for the python section in the style guide. It will need to be further filled out, but it is a first pass for the main sections to be included in the style guide.

Some example material has been added to each section.

My suggestion is let's comment on the outline in this PR, once agreed, merge it, and then proceed to looking at the content and further filling it out, though any comments, PRs, and discussion is welcome here.

stscicrawford commented 6 years ago

cc: @eteq @nden @bourque @arfon

stscicrawford commented 6 years ago

I've stated opening issues for some other guides that have evolved out of this one -- I think something about testing (pytest, artifactory, other platforms) and continuous integration guidelines (jenkins, travis), but if there is other things you see while reading through this, then my suggestion would be to create an issue.

bourque commented 6 years ago

Perhaps it would be worth mentioning PEP 257 Docstring Conventions in the Documentation section? I always think of PEP 257 as something that should be followed as strongly as PEP 8.

nden commented 6 years ago

This looks good to me. One practical question that comes to mind - is this the right place to describe tools and procedures for configuring an environment to comply with these guides? Perhaps have a section at the end that links to existing descriptions of how to configure IDEs or editors to check for PEP8 compliance?

stscicrawford commented 6 years ago

@nden That's a good idea -- that would definitely be helpful to add (or create a new page in here if it is information that needs to be STScI specific).

eteq commented 6 years ago

Hits most of the key points! All of my comments above are specific additions/modifications. There are a few more things I think are useful to highlight, though:

stscicrawford commented 6 years ago

Okay, I've updated the comments or opened issues for all comments in here. So, this should be considered a first draft and from here, any one is welcome to make pull requests for more additions or changes.

arfon commented 6 years ago

🤘