diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 220bb7e..20af177 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -269,6 +269,18 @@ repos: - id: shellcheck args: [--severity=warning] + # =========================================================================== + # REMOVE EMPTY DIRECTORIES - Clean up empty folders in the repo + # =========================================================================== + - repo: local + hooks: + - id: remove-empty-dirs + name: remove empty directories + entry: find . -type d -empty -not -path './.git/*' -delete -print + language: system + pass_filenames: false + always_run: true + # =========================================================================== # COMMITIZEN - Conventional commits (optional) # ===========================================================================