ORNL-MDF / mist

Mist is a Python tool for storing, sharing, and using information about materials in models and simulations.
BSD 3-Clause "New" or "Revised" License
2 stars 2 forks source link

Add auto-formatting and pre-commit checks #28

Closed streeve closed 2 months ago

streeve commented 2 months ago

Matches myna choices; closes #26

NOTE: view with "view whitespace" turned off

streeve commented 2 months ago

Thanks @streeve! This looks good -- I'm going to have to get used to a few of the formatting choices, but from the Black docs it sounds like they try to be as conventional as possible.

Forgot to add that we can configure however we want! But I've never looked into the options as much as say clang-format.. Also, if you run "pre-commit install" inside your local mist folder you should never have to worry about formatting manually!