Skip to content

πŸ› οΈπŸͺ Pre-commit hooks for foundry forge fmt and snapshot.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

0xYYY/foundry-pre-commit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

0xYYY0xYYY
0xYYY
and
0xYYY
Nov 14, 2022
868e35f Β· Nov 14, 2022

History

8 Commits
Nov 12, 2022
Nov 12, 2022
Nov 12, 2022
Nov 14, 2022

Repository files navigation

πŸ› οΈ Foundry Pre-Commit Hook πŸͺ

Run Foundry forge 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-commit
      rev: v1.0.0
      hooks:
          - 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

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks