Skip to content

Commit

Permalink
Add info about testing pre-commit hooks config
Browse files Browse the repository at this point in the history
When configuring the hooks we may want to test them before pushing.
  • Loading branch information
nkuba committed Nov 23, 2023
1 parent 214a6b4 commit a4a2b85
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,15 @@ To setup the hooks follow the steps:
```sh
pre-commit install
```

#### Testing

To test the pre-commit hooks configuration you can invoke them with one of the
commands:
```sh
# Execute hooks for all files:
pre-commit run --all-files
# Execute hooks for specific files (e.g. Acre.sol):
pre-commit run --files ./core/contracts/Acre.sol
```

0 comments on commit a4a2b85

Please sign in to comment.