synsense / sinabs

A deep learning library for spiking neural networks which is based on PyTorch, focuses on fast training and supports inference on neuromorphic hardware.
https://sinabs.readthedocs.io
GNU Affero General Public License v3.0
80 stars 8 forks source link

Add black linting to CI/CD #213

Closed sheiksadique closed 9 months ago

sheiksadique commented 9 months ago

Black formatter is included in the git pre-commit hooks for the repository. Unfortunately, there is no way to automatically enable the pre-commit hooks upon checkout the repository. So it is possible to push commits without ensure the code is formatted appropriately.

So I propose to add black action to the pipeline. This is useful to ensure that git pre-commit hooks are installed and used by all developers/contributors.

sheiksadique commented 9 months ago

address with #214 merged to #198