Skip to content

Commit

Permalink
No need to check copyrights of test charm codes
Browse files Browse the repository at this point in the history
  • Loading branch information
cderici committed Aug 23, 2023
1 parent 657f8d7 commit 6c1cbc9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ test: lint
.PHONY: lint
lint:
@./scripts/copyright.sh
@echo "==> Running flake8 linter"
tox -e lint

.PHONY: docs
Expand Down
2 changes: 1 addition & 1 deletion scripts/copyright.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ red() {
}

run_copyright() {
OUT=$(find . -name '*.py' | grep -v -E "./(docs|scripts|debian|juju-egg-info|.tox|.git|juju/client)|__init__" | sort | xargs grep -L -E '# (Copyright|Code generated)' || true)
OUT=$(find . -name '*.py' | grep -v -E "./(docs|scripts|debian|juju-egg-info|.tox|.git|juju/client|tests/charm)|__init__" | sort | xargs grep -L -E '# (Copyright|Code generated)' || true)
LINES=$(echo "${OUT}" | wc -w)
if [ "$LINES" != 0 ]; then
echo ""
Expand Down

0 comments on commit 6c1cbc9

Please sign in to comment.