potassco / clorm

🗃️ A Python ORM-like interface for the Clingo Answer Set Programming (ASP) reasoner
https://clorm.readthedocs.io
MIT License
52 stars 5 forks source link

Migrate codebase to black and isort #117

Closed florianfischer91 closed 1 year ago

florianfischer91 commented 1 year ago

I was wondering if @daveraja you would be open to use black and isort to mange the project's style? I could also integrate it into CI.

daveraja commented 1 year ago

Yes. I'm fine to switch to black and isort for the project. There are a few very minor things about black's formatting that annoy me but I can learn to live with it :). And I would agree that it is better to stick to a best-practice type formatting style (rather than what was intuitive to me when clorm was started).

florianfischer91 commented 1 year ago

Cool, nice to hear :-) There are three options in black which can be configured:

Do you have any preferences?

daveraja commented 1 year ago

In general I'm fine to go with whatever you prefer (or the default). The only one I feel a bit strongly about is that the line length doesn't go above 100; so either 88 or 98 would be ok with me.