mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-09 11:32:07 +08:00
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:
co-authored by
Jeremy Jordan
Nicki Skafte
parent
c3cf33d1de
commit
8ee6d91d0e
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user