USGS-CMG / stglib

Routines used by the USGS Coastal/Marine Hazards & Resources Program to process oceanographic time-series data
Other
16 stars 13 forks source link

add imports to nc2wave.py and cont dwave test #143

Closed rbales-usgs closed 11 months ago

rbales-usgs commented 11 months ago

Added numpy and xarray imports to beginning of nc2waves.py as well as incorporating a continuous dwave dataset to the rsk test.

dnowacki-usgs commented 11 months ago

Bo, please confirm you have the pre-commit hook set up and are running it. This helps keep the code style consistent among contributors.

rbales-usgs commented 11 months ago

Hi Dan,

No I don't have pre-commit hook installed. I did run black to all the .py files I changed.

Is there a way I can fix this after making my commits to the feature branch?

Thanks

dnowacki-usgs commented 11 months ago

In the repo, run pre-commit install at the command line. Then make a small change to the file (like adding a newline in the imports) and add it, then try committing. The pre-commit hook should take action then. It will make changes that you can add and then commit.