Code style should be mostly PEP-8.
The easiest way to get good code is to pass it through Black (with an 80
column maximum). Our code style isn't exactly Black, but Black code will
almost always be acceptable, and it is easy for contributors to reformat
with Black. Just install black
(pip
or the conda-forge
channel
of conda
) and run the command black -l 80 $filename
on your files.