From 362cecf3735ba8203302e244eb90bcfbe5e7f3e6 Mon Sep 17 00:00:00 2001 From: Charlie Blake Date: Wed, 6 Nov 2024 15:30:52 +0000 Subject: [PATCH] exclude generated version from copyright --- dev | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev b/dev index 82f6566..cdfa754 100755 --- a/dev +++ b/dev @@ -85,8 +85,8 @@ def format(check: bool) -> None: def copyright() -> None: """check for Graphcore copyright headers on relevant files""" command = ( - f"find {' '.join(PYTHON_ROOTS)} -type f" - " -not -name *.pyc -not -name *.json -not -name .gitignore" + f"find {' '.join(PYTHON_ROOTS)} -type f -not -name *.pyc -not -name *.json" + " -not -name .gitignore -not -name *_version.py" " | xargs grep -L 'Copyright (c) 202. Graphcore Ltd[.] All rights reserved[.]'" ) print(f"$ {command}", file=sys.stderr)