UU-Hydro / PCR-GLOBWB_model

PCR-GLOBWB (PCRaster Global Water Balance) is a large-scale hydrological model intended for global to regional studies and developed at the Department of Physical Geography, Utrecht University (Netherlands). Contact: Edwin Sutanudjaja (E.H.Sutanudjaja@uu.nl).
GNU General Public License v3.0
116 stars 79 forks source link

Add linting (code formatting) action to the PCR-GLOBWB_model master branch #38

Open BramDr opened 6 months ago

BramDr commented 6 months ago

GitHub Actions are automated processes that fire during any GitHub action, such as push or pull request. I have added a GitHub action that automatically lints the code in the repository using isort for the python imports and black for the code, for any push to the master branch. It does so by automatically generating another commit with the fixes to the code.

This GitHub Action integration will help maintain a clear an structured code-base and fixes #30, fixes #29 and fixes #28 automatically (also in the future).

Possible downsides:

  1. Strict black formatting applied
  2. New commit after every push (so maybe make development branch, in line with issue #37)