mantidproject / mantidimaging

Graphical toolkit for neutron imaging.
https://mantidproject.github.io/mantidimaging
GNU General Public License v3.0
10 stars 6 forks source link

Format checkers for json and xml #2236

Open samtygier-stfc opened 1 week ago

samtygier-stfc commented 1 week ago

We have some json, yaml and xml files in the source (any others?). These can some times cause unnecessary changes in diffs because of slight formatting changes.

Using yapf prevents this for python files, by enforcing consistent formatting. Investigate and enable similar tools for our other file formats. This should be enforced in pre-commit and maybe in CI.