-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
Description
Issue
Based on netascode/nac-test#535, the scripts/license-headers.sh in nac-test has been updated to:
- Accept file arguments for pre-commit integration
- Use
git ls-filesinstead offind(respects .gitignore) - Remove EXCLUDE_PATTERNS logic
The nac-test-pyats-common repository still has the old version and is now out of sync.
Action Required
Copy the updated script from nac-test:
cp ../nac-test/scripts/license-headers.sh scripts/license-headers.shAlso add the pre-commit hook to .pre-commit-config.yaml:
- repo: local
hooks:
- id: license-headers
name: Check license headers
entry: ./scripts/license-headers.sh
language: script
types: [python]Priority
Medium - Prevents CI/CD inconsistency between repos.
Reactions are currently unavailable