robelgeda / peytonites2024

Repository for the Princeton Astrophysical team at NVIDIA + Princeton Open Hackathon
https://peytonites2024.readthedocs.io/en/latest/index.html
MIT License
1 stars 1 forks source link

chore: some linter based cleanup #14

Closed henryiii closed 1 month ago

henryiii commented 1 month ago

Tried running hatch fmt, and applied most of the fixes. (I don't agree with all of it's default checks, but it's customizable and I could set it up in the future). Then manually ran ruff check . with some different --select rules to find a few more things for easy cleanup. Not going all out adding https://learn.scientific-python.org/development/guides/style/ and enforcing anything but this looked like easy cleanup.

henryiii commented 1 month ago

"{}".format is for Python 2 and 3.5 compat. "{0}".format is for Python 2.6 compat. :)