code guideline (#1949)

* code rule

* Apply suggestions from code review

Co-authored-by: Jeremy Jordan <13970565+jeremyjordan@users.noreply.github.com>

* chlog

Co-authored-by: Jeremy Jordan <13970565+jeremyjordan@users.noreply.github.com>
Co-authored-by: Nicki Skafte <skaftenicki@gmail.com>
This commit is contained in:
Jirka Borovec
2020-05-28 14:40:49 +00:00
committed by GitHub
co-authored by Jeremy Jordan Nicki Skafte
parent c3cf33d1de
commit 8ee6d91d0e
3 changed files with 13 additions and 7 deletions
+6
View File
@@ -67,6 +67,12 @@ A lot of good work has already been done in project mechanics (requirements.txt,
## Guidelines
### Original code
All added or edited code shall be the own original work of the particular contributor.
If you use come third-party implementation, all such blocks/functions/modules shall be properly referred and if possible also agreed by code's author. For example - `This code is inpired from http://...`.
In case you adding new dependencies, make sure that they are compatible the actual PyTorch Lightning license (ie. dependencies should be _at least_ as permissive as the PyTorch Lightning license).
### Coding Style
1. Use f-strings for output formation (except logging when we stay with lazy `logging.info("Hello %s!`, name).