Skip to main content

Pre-Commit Naming Check Hook

Validates file naming conventions before commit. Exit with non-zero to block the commit if violations found.

Usage: Add to .pre-commit-config.yaml or run directly: python pre-commit-naming-check.py [--strict]

File: pre-commit-naming-check.py

Functions

get_staged_files()

Get list of staged files.

check_naming(path)

Check if file name follows conventions.

main()

No description

Usage

python pre-commit-naming-check.py