CosmoStat / autometacal

Metacalibration and shape measurement by automatic differentiation
MIT License
4 stars 1 forks source link

Adopt a code style convention #7

Open EiffL opened 3 years ago

EiffL commented 3 years ago

Since we are basing the code on TensorFlow, I suggest we follow the Google/TensorFlow code styling for python.

Here are some links to the documentation for this:

Essentially, the idea is that we are following pep8, but we only use 2 space tabs instead of 4.

I'll add a github action to run yapf on the code to make sure it is correctly formatted, will also add a pre-commit hook so that yapf can be run automatically before each commit.

EiffL commented 3 years ago

Still interested in feedback from @andrevitorelli and @sfarrens for this :-)