Skip to content

Commit

Permalink
Fix license headers (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
arturo-seijas authored Apr 27, 2023
1 parent 8bd0a87 commit de61dea
Show file tree
Hide file tree
Showing 18 changed files with 62 additions and 9 deletions.
37 changes: 37 additions & 0 deletions .licenserc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
header:
license:
spdx-id: Apache-2.0
copyright-owner: Canonical Ltd.
content: |
Copyright [year] [owner]
See LICENSE file for licensing details.
paths:
- '**'
paths-ignore:
- '.github/**'
- '**/.gitkeep'
- '**/*.cfg'
- '**/*.conf'
- '**/*.j2'
- '**/*.json'
- '**/*.md'
- '**/*.rule'
- '**/*.tmpl'
- '**/*.txt'
- '.codespellignore'
- '.dockerignore'
- '.flake8'
- '.jujuignore'
- '.gitignore'
- '.licenserc.yaml'
- '.trivyignore'
- '.woke.yaml'
- '.woke.yml'
- 'CODEOWNERS'
- 'icon.svg'
- 'LICENSE'
- 'trivy.yaml'
- 'zap_rules.tsv'
- 'image/patches/**'
- 'lib/**'
comment: on-failure
2 changes: 2 additions & 0 deletions actions.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2023 Canonical Ltd.
# See LICENSE file for licensing details.
add-admin-user:
description: Add a new admin user.
params:
Expand Down
2 changes: 2 additions & 0 deletions charmcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2023 Canonical Ltd.
# See LICENSE file for licensing details.
# Learn more about charmcraft.yaml configuration at:
# https://juju.is/docs/sdk/charmcraft-config
type: "charm"
Expand Down
2 changes: 2 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2023 Canonical Ltd.
# See LICENSE file for licensing details.
options:
cors_origin:
type: string
Expand Down
2 changes: 2 additions & 0 deletions discourse.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2023 Canonical Ltd.
# See LICENSE file for licensing details.
FROM ubuntu:focal

# Used in Launchpad OCI Recipe build to tag the image.
Expand Down
2 changes: 2 additions & 0 deletions image/scripts/app_launch.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash
# Copyright 2023 Canonical Ltd.
# See LICENSE file for licensing details.

export UNICORN_BIND_ALL=0.0.0.0
export UNICORN_SIDEKIQS=1
Expand Down
2 changes: 2 additions & 0 deletions localstack-installation.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash
# Copyright 2023 Canonical Ltd.
# See LICENSE file for licensing details.

pip install pip --upgrade
pip install pyopenssl --upgrade
Expand Down
2 changes: 2 additions & 0 deletions metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2023 Canonical Ltd.
# See LICENSE file for licensing details.
name: discourse-k8s
display-name: Discourse
summary: Discourse is the modern forum for your community.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Canonical Ltd.
# Copyright 2023 Canonical Ltd.
# See LICENSE file for licensing details.

[tool.bandit]
Expand Down
2 changes: 1 addition & 1 deletion src/charm.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# Copyright 2022 Canonical Ltd.
# Copyright 2023 Canonical Ltd.
# See LICENSE file for licensing details.

"""Charm for Discourse on kubernetes."""
Expand Down
2 changes: 2 additions & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copyright 2023 Canonical Ltd.
# See LICENSE file for licensing details.
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Canonical Ltd.
# Copyright 2023 Canonical Ltd.
# See LICENSE file for licensing details.
"""Module for test customizations."""

Expand Down
2 changes: 1 addition & 1 deletion tests/integration/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Copyright 2022 Canonical Ltd.
# Copyright 2023 Canonical Ltd.
# See LICENSE file for licensing details.
2 changes: 1 addition & 1 deletion tests/integration/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Canonical Ltd.
# Copyright 2023 Canonical Ltd.
# See LICENSE file for licensing details.
"""Discourse integration tests fixtures."""

Expand Down
2 changes: 1 addition & 1 deletion tests/integration/test_charm.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# Copyright 2022 Canonical Ltd.
# Copyright 2023 Canonical Ltd.
# See LICENSE file for licensing details.
"""Discourse integration tests."""

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Canonical Ltd.
# Copyright 2023 Canonical Ltd.
# See LICENSE file for licensing details.

"""Ops testing settings."""
2 changes: 1 addition & 1 deletion tests/unit/_patched_charm.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Canonical Ltd.
# Copyright 2023 Canonical Ltd.
# See LICENSE file for licensing details.

"""Patch the ``ops-lib-pgsql`` library for unit testing.
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Canonical Ltd.
# Copyright 2023 Canonical Ltd.
# See LICENSE file for licensing details.

[tox]
Expand Down

0 comments on commit de61dea

Please sign in to comment.