Uninett / argus-htmx-frontend

HTTP Frontend for argus-server as a django app using HTMx
4 stars 4 forks source link

Linting/Code formatting #40

Open elfjes opened 1 month ago

elfjes commented 1 month ago

I noticed some style inconsistencies in the code (eg inconsistent single/double quotes in incident.views.incident_add_ack and was wondering if we should set up some code formatting (ie. black)? Always good to start using a formatter as early as possible so that fewer code needs to be touched once set up.

Also it might be good to not only autoformat python code but also the templates? I like djlint for that.

hmpf commented 1 month ago

Wasn't there a "use ruff" branch? Hm.

We've never needed linting templates before since we haven't really been using any in argus.