This repository provides Mage hooks for pre-commit.
The following section assumes that you installed pre-commit and run pre-commit install
in your repository.
hook id |
description |
---|---|
madge |
Check for circular dependencies in the provided paths |
For example, if you want to use the madge
hook,
add the following pre-commit configuration to the root of your project in a file named .pre-commit-config.yaml
:
repos:
- repo: https://github.com/B-S-F/madge-pre-commit
rev: "" # Use the sha / tag you want to point at
hooks:
- id: madge
args: [src]