rcaneill / xnemogcm

Interface to open NEMO global circulation model output dataset with xarray and create a xgcm grid.
https://xnemogcm.readthedocs.io/
MIT License
21 stars 9 forks source link

add precommit #84

Closed callumrollo closed 6 months ago

callumrollo commented 6 months ago

This draft PR adds some basic pre-commit hooks. This pre-commit will, among other things, satisfy the pyopensci requirement for automated linting

The linting is picking up quite a few PEP8 and spelling errors atm. These will need to be fixed. This also should be added to CI.

@rcaneill are you working on something similar already, or should I complete this PR?

rcaneill commented 6 months ago

HI @callumrollo , I am not working on the linting for xnemogcm, so I'm happy to get your contributions!

callumrollo commented 6 months ago

ok I think this is ready @rcaneill . Bit of a monster! Mostly spelling corrections and clearing out unused imports