Skip to content

Commit 28f31fa

Browse files
authored
Merge pull request #934 from cderici/licence-headers-forward-port
#934 #### Description This is a forward port of #933, adding license headers to source files: ```python # Copyright 2023 Canonical Ltd. # Licensed under the Apache V2, see LICENCE file for details. ``` #### QA Steps No behavior change.
2 parents 16b9c9b + 6c1cbc9 commit 28f31fa

139 files changed

Lines changed: 458 additions & 67 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/test.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ jobs:
2121
- name: Install dependencies
2222
run: pip install tox
2323
- name: Run linter
24-
run: tox -e lint
24+
run: |
25+
tox -e lint
26+
./scripts/copyright.sh
2527
2628
unit-tests:
2729
needs: lint

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ test: lint
2525
tox -e integration
2626

2727
.PHONY: lint
28-
lint:
28+
lint:
29+
@./scripts/copyright.sh
30+
@echo "==> Running flake8 linter"
2931
tox -e lint
3032

3133
.PHONY: docs

docs/conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright 2023 Canonical Ltd.
2+
# Licensed under the Apache V2, see LICENCE file for details.
3+
14
# -*- coding: utf-8 -*-
25
#
36
# libjuju documentation build configuration file, created by

examples/action.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright 2023 Canonical Ltd.
2+
# Licensed under the Apache V2, see LICENCE file for details.
3+
14
"""
25
This example:
36

examples/add_k8s.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright 2023 Canonical Ltd.
2+
# Licensed under the Apache V2, see LICENCE file for details.
3+
14
"""
25
This example:
36

examples/add_machine.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/usr/bin/env python3
22

3+
# Copyright 2023 Canonical Ltd.
4+
# Licensed under the Apache V2, see LICENCE file for details.
5+
36
"""
47
This example:
58

examples/add_model.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright 2023 Canonical Ltd.
2+
# Licensed under the Apache V2, see LICENCE file for details.
3+
14
"""
25
This example:
36

examples/add_secrets_backend.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright 2023 Canonical Ltd.
2+
# Licensed under the Apache V2, see LICENCE file for details.
3+
14
from juju import jasyncio
25
from juju.model import Model
36

examples/allwatcher.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright 2023 Canonical Ltd.
2+
# Licensed under the Apache V2, see LICENCE file for details.
3+
14
"""
25
This example:
36

examples/charmhub_deploy_k8s.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright 2023 Canonical Ltd.
2+
# Licensed under the Apache V2, see LICENCE file for details.
3+
14
"""
25
This example:
36

0 commit comments

Comments
 (0)