Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 392 Bytes

README.md

File metadata and controls

16 lines (12 loc) · 392 Bytes

Python Init Cleaner

Pre-commit hook to clean your python init.py files automatically.

Installation

Add this to your .pre-commit-config.yaml:

repos:
  - repo: https://github.com/chainyo/py-init-cleaner
    rev: "v2.0.0"
    hooks:
      - id: py-init-cleaner
        args: ["--dir", "src"] # 👈 Change the 'src' argument to the name of the folder you want to check