sisl icon indicating copy to clipboard operation
sisl copied to clipboard

Using black code formatting style

Open zerothi opened this issue 3 years ago • 4 comments

Describe the feature I would like to use some kind of code formatter/style tool.

And while I don't agree with all of them on all things, I think it is better to just have consistency above all.

Any suggestions?

I have thought about using black, it is a tough formatter, but is really consistent.

zerothi avatar Dec 10 '21 07:12 zerothi

@pfebrer any comments? K

zerothi avatar Dec 11 '21 16:12 zerothi

I don't have much experience with code formatters. The only thing I know is that sometimes they can be really annoying trying to format things in ways that don't look nice and you have to add comments in your code just to avoid the formatter for certain lines. 😅

Tomorrow I will look into how black works and give an opinion about it 👍

pfebrer avatar Dec 12 '21 22:12 pfebrer

Agreed. However if it formats code nice in 80-90% it might be the trouble worth it.

One good example of where I think it messes things up is the periodic table... You'll see ;)

zerothi avatar Dec 13 '21 08:12 zerothi

You'll see ;)

Can't wait haha

pfebrer avatar Dec 13 '21 16:12 pfebrer