Skip to content

Commit 6c1cbc9

Browse files
committed
No need to check copyrights of test charm codes
1 parent 657f8d7 commit 6c1cbc9

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ test: lint
2727
.PHONY: lint
2828
lint:
2929
@./scripts/copyright.sh
30+
@echo "==> Running flake8 linter"
3031
tox -e lint
3132

3233
.PHONY: docs

scripts/copyright.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ red() {
2525
}
2626

2727
run_copyright() {
28-
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)
28+
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)
2929
LINES=$(echo "${OUT}" | wc -w)
3030
if [ "$LINES" != 0 ]; then
3131
echo ""

0 commit comments

Comments
 (0)