Skip to content

chore: sync license-headers.sh from nac-test #26

@aitestino

Description

@aitestino

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-files instead of find (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.sh

Also 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions