precice / fenics-adapter

preCICE-adapter for the open source computing platform FEniCS
GNU Lesser General Public License v3.0
29 stars 15 forks source link

Introduce pre-commit hooks for linting and autopep8 #187

Open BenjaminRodenberg opened 2 weeks ago

BenjaminRodenberg commented 2 weeks ago

The CI pipeline regularly breaks due to minor errors in code formatting and linting (workflows https://github.com/precice/fenics-adapter/blob/develop/.github/workflows/check-pep8.yml and https://github.com/precice/fenics-adapter/blob/develop/.github/workflows/check-links.yml). In https://github.com/precice/precice we use pre-commit hooks to force the user to take care of such issues before committing. I think having a similar tooling in this repository (and others) would be very convenient. See https://precice.org/dev-docs-dev-tooling.html for further information.