You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Step 2: Create or update the pre-commit configuration
Create or update the .pre-commit-config.yaml file in your repository root:
repos:
- repo: localhooks:
- id: po-file-handlername: PO file timestamp removerentry: python po_file_handler.pylanguage: pythonfiles: \.(po|pot)$stages: [commit]additional_dependencies: ['babel==2.15.0'] # Specify the version you need
The text was updated successfully, but these errors were encountered:
This should will help set up a pre-commit hook to automatically remove timestamps from PO files before committing, preventing merge conflicts.
Step 1: Create the PO file handler script
Create a file named
po_file_handler.py
in thescripts
folder:make the file executable
Step 2: Create or update the pre-commit configuration
Create or update the
.pre-commit-config.yaml
file in your repository root:The text was updated successfully, but these errors were encountered: