Skip to content

Latest commit

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

🛠️ Foundry Pre-Commit Hook 🪝

Run Foundryforge fmt and/or forge snahshot before commit.

Usage

  1. Install Foundry.
  2. Install pre-commit.
  3. Add the following to .pre-commit-config.yaml in your repo.
repos:
- repo: https://github.com/0xYYY/foundry-pre-commitrev: v1.0.0hooks:
- id: format
- id: snapshot
  1. Run pre-commit install to set up the hooks.
  2. 🎉 From now on, before each commit, forge fmt and forge snapshot will be ran automatically.

Credits

Inspired by this tweet from devanoneth.

License

Dual licensed under either MIT License or Apache License, Version 2.0.

About

🛠️🪝 Pre-commit hooks for foundry forge fmt and snapshot.

Topics

Resources

Stars

20 stars

Watchers

1 watching

Forks

Releases

Contributors