apoluekt / AmpliTF

Library of primitives for amplitude analyses in high-energy physics using TensorFlow v2
6 stars 4 forks source link

Use black for code formatting #7

Open spflueger opened 3 years ago

spflueger commented 3 years ago

It would be useful to use some common code formatting (even in python), to have some consistent code style.

In tensorwaves we use black. I would propose to use this. A github action (Continuous Integration) should also be set up to deny any PRs which are not conform with the black format.

To make it process/transition easy for everyone, all current work would need to be finished and no new work started until the reformatting has been applied to the whole codebase.

apoluekt commented 3 years ago

Thanks for the link! Yes, good point, I'll look into this.

apoluekt commented 3 years ago

I've reformatted the code, but pre-commit hooks still need to be set up, so not closing yet.