Coding Style

To create consistent and readable code please follow the guides:

Python

  • Before committing python code make sure to run python-black via $ black

  • Style:


variable_names = "things"

class ClassNames(object):
    pass

def function_names():
    return 1

HTML

  • Indent with 2 spaces

  • Style:

<div>
  <p>Hi</p>
</div>

JS

  • Indent with 2 spaces

  • variables and function names camelCase

  • Style:

function abcdAlpha(param){

}

let obj = {
  propertyA: 1,
  propertyB: 2
}