keep-starknet-strange / garaga

State-of-the-art Elliptic Curve operations and SNARKS verification for Cairo & Starknet 🐺.
https://garaga.gitbook.io/
MIT License
196 stars 51 forks source link

add pre commit hooks and setup #145

Closed feltroidprime closed 2 months ago

feltroidprime commented 2 months ago

Adds pre commit file and install with https://pre-commit.com/ in the setup. Each time a commit is made locally it will check and fixes the files. First time it might take 1 minute but following commits will be quick.

Added black formatting check in the actions to make sure it is working. Fixed same black version in the precommit hook and in requirements so that the precommit hook and the action are in sync.