diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml new file mode 100644 index 0000000..b013cad --- /dev/null +++ b/.pre-commit-hooks.yaml @@ -0,0 +1,14 @@ +- id: fmt + name: fmt + description: Format files with Scarb fmt + entry: scarb fmt + language: system + files: \.cairo$ + args: [] +- id: test + name: cairo test + description: Run tests with Scarb test + entry: scarb test + language: system + files: \.cairo$ + pass_filenames: false \ No newline at end of file