Skip to content

Commit

Permalink
exclude generated version from copyright
Browse files Browse the repository at this point in the history
  • Loading branch information
thecharlieblake committed Nov 6, 2024
1 parent 8419461 commit 362cecf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dev
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 362cecf

Please sign in to comment.