Skip to content

Commit

Permalink
Ignore __init__.py files
Browse files Browse the repository at this point in the history
  • Loading branch information
pablo-garay committed Oct 28, 2024
1 parent 70915f4 commit 7698bd6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/copyright-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ jobs:
# Files ending with .py should have Copyright notice in the first 10 lines
find_files_with_missing_copyright() {
find ./ -type f -name '*.py' -not -path "./.git/*" | while read path; do
find ./ -type f -name '*.py' -not -path "./.git/*" -not -path "./*__init__.py"
| while read path; do
echo -en $path"\t"
head -n 10 $path | tr '\n' '\t' | sed 's/\t$/\n/'
done \
Expand All @@ -41,8 +42,8 @@ jobs:
| egrep -iv '*Copyright.*Apache.*' \
| egrep -iv '*Apache.*License.*' \
| while read line; do
echo $line | cut -d' ' -f1
done
echo $line | cut -d' ' -f1
done
}
Expand Down

0 comments on commit 7698bd6

Please sign in to comment.