Skip to content

B-S-F/madge-pre-commit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

madge pre-commit hooks

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.

Using madge pre-commit hooks

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]