lefthook_dart 1.0.0 copy "lefthook_dart: ^1.0.0" to clipboard
lefthook_dart: ^1.0.0 copied to clipboard

wrapper of lefthook for flutter and dart

lefthook-dart #

A Dart wrapper for Lefthook — the fast and powerful Git hooks manager.

About this project #

This is a community-maintained continuation of the original project-cemetery/lefthook package, which served as a simple Dart CLI wrapper around the Lefthook binary.

The original repository is no longer maintained. This fork updates the tool for modern Dart/Flutter projects, ensuring compatibility, reliability, and ease of use.

For detailed usage and configuration options, refer to the official Lefthook documentation.

Installation #

pub global activate lefthook-dart

Change lefthook.yml in root of your project, add description of hooks, and start using it.

Examples #

Flutter #

For project based on Flutter, you can run formatter before every commit and run tests and static analysis before push.

# lefthook.yml

pre-push:
  parallel: true
  commands:
    tests:
      run: flutter test
    linter:
      run: flutter analyze lib

pre-commit:
  commands:
    prettify:
      glob: "*.dart"
      run: dart format {staged_files}
2
likes
0
points
45
downloads

Publisher

unverified uploader

Weekly Downloads

wrapper of lefthook for flutter and dart

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

archive, cli_util, system_info2

More

Packages that depend on lefthook_dart