Skip to content

Rewrite scripts/check_copyright.sh script #1048

@reyammer

Description

@reyammer

Rewrite the check_copyright.sh script:

  • rewrite it in python so that it's more maintainable
  • extensions to check: let's keep the existing check for "py|sh|ts"
  • dirs to check: python/, rust/, js/. Do not scan tests_data
  • it should print which file doesn't have a valid copyright. And exit with 1 if at least one file has no banner.
  • should be useable like: uv run check_copyright.sh check (note the check command)

Later on:

  • we will include this in one of the workflows so that we can for this automatically
  • we will extend it to have update or add (or something similar) to update/add copyright banner when missing

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions