-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code formatting from CFGrote #22
Comments
@CFGrote libpyvinyl/libpyvinyl/Instrument.py Lines 1 to 84 in 9133ba4
|
So here are some coding guidelines: FormattingAll variable names and functions should be
Verbose naming
Class definitions
You get the idea... DocstringsYou see from the above that I prefer doxygen style docstrings but I'm not too religious about this. Should be consistent at least within one py file. In most other code formatting questions, I follow the pip8 recommendations. |
@CFGrote I think it would be useful to add to the documentation in the DEVEL.md file these guidelines. |
Very good work, I only have some cosmetic comments:
Please check pep8 (code formatting). e.g empty line at the bottom.
init(): I would be stricter on having all attributes hidden away as
self.__attribute
and define accessors for getting and setting attribute values, decorated as@property
andsetter
, respectively.Docstrings: I always leave a blank line between two
:type ...:
and the next:param...:
and don't mix google, numpy, and doxygen styles.Originally posted by @CFGrote in #19 (review)
The text was updated successfully, but these errors were encountered: