From 12b8c4b7f1d14556cc459f672b501e901da2d216 Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Thu, 20 Aug 2026 22:22:15 +0200 Subject: chore(core): standardize SPDX copyright headers Add SPDX copyright and license headers to source, test, migration, template, and static files throughout the project. Include the maintainer email in copyright notices and fill in the BSD license copyright holder. --- webmentions_ssg/__init__.py | 2 +- webmentions_ssg/auth.py | 4 ++++ webmentions_ssg/config.py | 4 ++++ webmentions_ssg/forms/__init__.py | 4 ++++ webmentions_ssg/forms/validators.py | 4 ++++ webmentions_ssg/models.py | 4 ++++ webmentions_ssg/static/js/confirmation-modal.js | 4 ++++ webmentions_ssg/tasks/__init__.py | 4 ++++ webmentions_ssg/tasks/consumer.py | 4 ++++ webmentions_ssg/tasks/extension.py | 4 ++++ webmentions_ssg/tasks/receiver.py | 4 ++++ webmentions_ssg/tasks/scanner.py | 4 ++++ webmentions_ssg/tasks/sender.py | 4 ++++ webmentions_ssg/templates/base.html | 6 ++++++ webmentions_ssg/templates/includes/confirmation_modal.html | 6 ++++++ webmentions_ssg/templates/login.html | 6 ++++++ webmentions_ssg/templates/received.html | 6 ++++++ webmentions_ssg/templates/sent.html | 6 ++++++ webmentions_ssg/templates/sent_source.html | 6 ++++++ webmentions_ssg/templates/status.html | 6 ++++++ webmentions_ssg/url_security.py | 4 ++++ webmentions_ssg/views.py | 4 ++++ 22 files changed, 99 insertions(+), 1 deletion(-) (limited to 'webmentions_ssg') diff --git a/webmentions_ssg/__init__.py b/webmentions_ssg/__init__.py index 3928195..ad77667 100644 --- a/webmentions_ssg/__init__.py +++ b/webmentions_ssg/__init__.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: 2026 Dennis Fink +# SPDX-FileCopyrightText: 2026 Dennis Fink # # SPDX-License-Identifier: BSD-3-Clause diff --git a/webmentions_ssg/auth.py b/webmentions_ssg/auth.py index 7bd93a3..de5b297 100644 --- a/webmentions_ssg/auth.py +++ b/webmentions_ssg/auth.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2026 Dennis Fink +# +# SPDX-License-Identifier: BSD-3-Clause + from flask_login import LoginManager from . import DATABASE as db diff --git a/webmentions_ssg/config.py b/webmentions_ssg/config.py index 6996b57..72842c4 100644 --- a/webmentions_ssg/config.py +++ b/webmentions_ssg/config.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2026 Dennis Fink +# +# SPDX-License-Identifier: BSD-3-Clause + import logging import secrets diff --git a/webmentions_ssg/forms/__init__.py b/webmentions_ssg/forms/__init__.py index c386eb1..7ab82e3 100644 --- a/webmentions_ssg/forms/__init__.py +++ b/webmentions_ssg/forms/__init__.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2026 Dennis Fink +# +# SPDX-License-Identifier: BSD-3-Clause + import re from flask_wtf import FlaskForm diff --git a/webmentions_ssg/forms/validators.py b/webmentions_ssg/forms/validators.py index c4b5eda..fd54e0f 100644 --- a/webmentions_ssg/forms/validators.py +++ b/webmentions_ssg/forms/validators.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2026 Dennis Fink +# +# SPDX-License-Identifier: BSD-3-Clause + from urllib.parse import urlsplit from flask import current_app diff --git a/webmentions_ssg/models.py b/webmentions_ssg/models.py index f89e587..e7ff0be 100644 --- a/webmentions_ssg/models.py +++ b/webmentions_ssg/models.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2026 Dennis Fink +# +# SPDX-License-Identifier: BSD-3-Clause + from __future__ import annotations import uuid diff --git a/webmentions_ssg/static/js/confirmation-modal.js b/webmentions_ssg/static/js/confirmation-modal.js index e278790..fee825f 100644 --- a/webmentions_ssg/static/js/confirmation-modal.js +++ b/webmentions_ssg/static/js/confirmation-modal.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2026 Dennis Fink +// +// SPDX-License-Identifier: BSD-3-Clause + document.addEventListener("DOMContentLoaded", () => { const confirmationModal = document.getElementById("confirmation-modal"); diff --git a/webmentions_ssg/tasks/__init__.py b/webmentions_ssg/tasks/__init__.py index 5af3987..62249ca 100644 --- a/webmentions_ssg/tasks/__init__.py +++ b/webmentions_ssg/tasks/__init__.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2026 Dennis Fink +# +# SPDX-License-Identifier: BSD-3-Clause + from .extension import Huey __all__ = ["Huey"] diff --git a/webmentions_ssg/tasks/consumer.py b/webmentions_ssg/tasks/consumer.py index 3bfe861..0f73529 100644 --- a/webmentions_ssg/tasks/consumer.py +++ b/webmentions_ssg/tasks/consumer.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2026 Dennis Fink +# +# SPDX-License-Identifier: BSD-3-Clause + from huey import Huey, crontab from .. import HUEY, create_app diff --git a/webmentions_ssg/tasks/extension.py b/webmentions_ssg/tasks/extension.py index 15bc669..95f190f 100644 --- a/webmentions_ssg/tasks/extension.py +++ b/webmentions_ssg/tasks/extension.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2026 Dennis Fink +# +# SPDX-License-Identifier: BSD-3-Clause + from functools import wraps from typing import Any, Callable from urllib.parse import urlsplit, urlunsplit diff --git a/webmentions_ssg/tasks/receiver.py b/webmentions_ssg/tasks/receiver.py index 4aba3d8..c33f517 100644 --- a/webmentions_ssg/tasks/receiver.py +++ b/webmentions_ssg/tasks/receiver.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2026 Dennis Fink +# +# SPDX-License-Identifier: BSD-3-Clause + import uuid from urllib.parse import urljoin diff --git a/webmentions_ssg/tasks/scanner.py b/webmentions_ssg/tasks/scanner.py index fa6a47b..0cf038a 100644 --- a/webmentions_ssg/tasks/scanner.py +++ b/webmentions_ssg/tasks/scanner.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2026 Dennis Fink +# +# SPDX-License-Identifier: BSD-3-Clause + from collections.abc import Iterator from dataclasses import dataclass from datetime import UTC, datetime diff --git a/webmentions_ssg/tasks/sender.py b/webmentions_ssg/tasks/sender.py index 629c538..1d22ad9 100644 --- a/webmentions_ssg/tasks/sender.py +++ b/webmentions_ssg/tasks/sender.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2026 Dennis Fink +# +# SPDX-License-Identifier: BSD-3-Clause + import re import uuid from datetime import UTC, datetime diff --git a/webmentions_ssg/templates/base.html b/webmentions_ssg/templates/base.html index eb11b8e..1275391 100644 --- a/webmentions_ssg/templates/base.html +++ b/webmentions_ssg/templates/base.html @@ -1,3 +1,9 @@ + + {% from "bootstrap5/utils.html" import render_messages %} diff --git a/webmentions_ssg/templates/includes/confirmation_modal.html b/webmentions_ssg/templates/includes/confirmation_modal.html index ff9bd06..5c0a5a1 100644 --- a/webmentions_ssg/templates/includes/confirmation_modal.html +++ b/webmentions_ssg/templates/includes/confirmation_modal.html @@ -1,3 +1,9 @@ + +