diff --git a/compliance_tool/test/_test_helper.py b/compliance_tool/test/_test_helper.py index 60c378d3..675ef933 100644 --- a/compliance_tool/test/_test_helper.py +++ b/compliance_tool/test/_test_helper.py @@ -1,3 +1,10 @@ +# Copyright (c) 2026 the Eclipse BaSyx Authors +# +# This program and the accompanying materials are made available under the terms of the MIT License, available in +# the LICENSE file of this project. +# +# SPDX-License-Identifier: MIT + import datetime import io import logging diff --git a/etc/scripts/check_python_versions_coincide.py b/etc/scripts/check_python_versions_coincide.py index ecf0fdf3..aa151572 100644 --- a/etc/scripts/check_python_versions_coincide.py +++ b/etc/scripts/check_python_versions_coincide.py @@ -1,3 +1,10 @@ +# Copyright (c) 2026 the Eclipse BaSyx Authors +# +# This program and the accompanying materials are made available under the terms of the MIT License, available in +# the LICENSE file of this project. +# +# SPDX-License-Identifier: MIT + """ This helper script checks if the Python versions defined in a `pyproject.toml` or `Dockerfile` coincide with the given `min_version` and `max_version` and returns an error if they don't. diff --git a/etc/scripts/check_python_versions_supported.py b/etc/scripts/check_python_versions_supported.py index 93a49b8d..22e34bca 100644 --- a/etc/scripts/check_python_versions_supported.py +++ b/etc/scripts/check_python_versions_supported.py @@ -1,3 +1,10 @@ +# Copyright (c) 2026 the Eclipse BaSyx Authors +# +# This program and the accompanying materials are made available under the terms of the MIT License, available in +# the LICENSE file of this project. +# +# SPDX-License-Identifier: MIT + """ This helper script checks that the provided `min_version` and `max_version` are supported and released, respectively, using the API from the great https://github.com/endoflife-date/endoflife.date project. diff --git a/ruff.toml b/ruff.toml index f62d1b26..7a4b4e6d 100644 --- a/ruff.toml +++ b/ruff.toml @@ -20,6 +20,7 @@ select = [ "F8", # pyflakes: undefined/unused names "F4", # pyflakes: imports/__future__ "PIE", # small readability improvements + "CPY001", # flake8-copyright: missing copyright header ] # TODO: Revisit these @@ -37,3 +38,10 @@ ignore = [ "S", # security related precautions "BLE", # prevent unspecified excepts ] + +[lint.per-file-ignores] +"**/__init__.py" = ["CPY001"] + +[lint.flake8-copyright] +notice-rgx = "(?i)Copyright \\(c\\) \\d{4} the Eclipse BaSyx Authors" +min-file-size = 1 # bytes; skip only truly empty files diff --git a/sdk/basyx/aas/examples/tutorial_aasx.py b/sdk/basyx/aas/examples/tutorial_aasx.py index c319f63f..272dc413 100755 --- a/sdk/basyx/aas/examples/tutorial_aasx.py +++ b/sdk/basyx/aas/examples/tutorial_aasx.py @@ -1,4 +1,11 @@ #!/usr/bin/env python3 +# Copyright (c) 2026 the Eclipse BaSyx Authors +# +# This program and the accompanying materials are made available under the terms of the MIT License, available in +# the LICENSE file of this project. +# +# SPDX-License-Identifier: MIT + # This work is licensed under a Creative Commons CCZero 1.0 Universal License. # See http://creativecommons.org/publicdomain/zero/1.0/ for more information. """ diff --git a/sdk/basyx/aas/examples/tutorial_backend_couchdb.py b/sdk/basyx/aas/examples/tutorial_backend_couchdb.py index feed4775..8c055fe9 100755 --- a/sdk/basyx/aas/examples/tutorial_backend_couchdb.py +++ b/sdk/basyx/aas/examples/tutorial_backend_couchdb.py @@ -1,4 +1,11 @@ #!/usr/bin/env python3 +# Copyright (c) 2026 the Eclipse BaSyx Authors +# +# This program and the accompanying materials are made available under the terms of the MIT License, available in +# the LICENSE file of this project. +# +# SPDX-License-Identifier: MIT + # This work is licensed under a Creative Commons CCZero 1.0 Universal License. # See http://creativecommons.org/publicdomain/zero/1.0/ for more information. """ diff --git a/sdk/basyx/aas/examples/tutorial_create_simple_aas.py b/sdk/basyx/aas/examples/tutorial_create_simple_aas.py index 7a9185b7..5af38f0e 100755 --- a/sdk/basyx/aas/examples/tutorial_create_simple_aas.py +++ b/sdk/basyx/aas/examples/tutorial_create_simple_aas.py @@ -1,4 +1,11 @@ #!/usr/bin/env python3 +# Copyright (c) 2026 the Eclipse BaSyx Authors +# +# This program and the accompanying materials are made available under the terms of the MIT License, available in +# the LICENSE file of this project. +# +# SPDX-License-Identifier: MIT + # This work is licensed under a Creative Commons CCZero 1.0 Universal License. # See http://creativecommons.org/publicdomain/zero/1.0/ for more information. """ diff --git a/sdk/basyx/aas/examples/tutorial_navigate_aas.py b/sdk/basyx/aas/examples/tutorial_navigate_aas.py index 88323bbf..d4b198f2 100644 --- a/sdk/basyx/aas/examples/tutorial_navigate_aas.py +++ b/sdk/basyx/aas/examples/tutorial_navigate_aas.py @@ -1,4 +1,11 @@ #!/usr/bin/env python3 +# Copyright (c) 2026 the Eclipse BaSyx Authors +# +# This program and the accompanying materials are made available under the terms of the MIT License, available in +# the LICENSE file of this project. +# +# SPDX-License-Identifier: MIT + # This work is licensed under a Creative Commons CCZero 1.0 Universal License. # See http://creativecommons.org/publicdomain/zero/1.0/ for more information. """ diff --git a/sdk/basyx/aas/examples/tutorial_serialization_deserialization.py b/sdk/basyx/aas/examples/tutorial_serialization_deserialization.py index 88c5c1be..3b99d90f 100755 --- a/sdk/basyx/aas/examples/tutorial_serialization_deserialization.py +++ b/sdk/basyx/aas/examples/tutorial_serialization_deserialization.py @@ -1,4 +1,11 @@ #!/usr/bin/env python3 +# Copyright (c) 2026 the Eclipse BaSyx Authors +# +# This program and the accompanying materials are made available under the terms of the MIT License, available in +# the LICENSE file of this project. +# +# SPDX-License-Identifier: MIT + # This work is licensed under a Creative Commons CCZero 1.0 Universal License. # See http://creativecommons.org/publicdomain/zero/1.0/ for more information. """ diff --git a/sdk/basyx/aas/examples/tutorial_storage.py b/sdk/basyx/aas/examples/tutorial_storage.py index c9fecf23..f70bc184 100755 --- a/sdk/basyx/aas/examples/tutorial_storage.py +++ b/sdk/basyx/aas/examples/tutorial_storage.py @@ -1,4 +1,11 @@ #!/usr/bin/env python3 +# Copyright (c) 2026 the Eclipse BaSyx Authors +# +# This program and the accompanying materials are made available under the terms of the MIT License, available in +# the LICENSE file of this project. +# +# SPDX-License-Identifier: MIT + # This work is licensed under a Creative Commons CCZero 1.0 Universal License. # See http://creativecommons.org/publicdomain/zero/1.0/ for more information. """ diff --git a/sdk/docs/source/conf.py b/sdk/docs/source/conf.py index 12fbc305..98bfcf9b 100644 --- a/sdk/docs/source/conf.py +++ b/sdk/docs/source/conf.py @@ -1,3 +1,10 @@ +# Copyright (c) 2026 the Eclipse BaSyx Authors +# +# This program and the accompanying materials are made available under the terms of the MIT License, available in +# the LICENSE file of this project. +# +# SPDX-License-Identifier: MIT + # Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full diff --git a/sdk/test/_helper/test_helpers.py b/sdk/test/_helper/test_helpers.py index 7de0423a..3633519a 100644 --- a/sdk/test/_helper/test_helpers.py +++ b/sdk/test/_helper/test_helpers.py @@ -1,3 +1,10 @@ +# Copyright (c) 2026 the Eclipse BaSyx Authors +# +# This program and the accompanying materials are made available under the terms of the MIT License, available in +# the LICENSE file of this project. +# +# SPDX-License-Identifier: MIT + import base64 import configparser import os.path diff --git a/sdk/test/adapter/test_load_directory.py b/sdk/test/adapter/test_load_directory.py index 908da658..6574de90 100644 --- a/sdk/test/adapter/test_load_directory.py +++ b/sdk/test/adapter/test_load_directory.py @@ -1,3 +1,10 @@ +# Copyright (c) 2026 the Eclipse BaSyx Authors +# +# This program and the accompanying materials are made available under the terms of the MIT License, available in +# the LICENSE file of this project. +# +# SPDX-License-Identifier: MIT + import tempfile import unittest from pathlib import Path diff --git a/server/app/adapter/jsonization.py b/server/app/adapter/jsonization.py index e30349ce..cefca3ae 100644 --- a/server/app/adapter/jsonization.py +++ b/server/app/adapter/jsonization.py @@ -1,3 +1,10 @@ +# Copyright (c) 2026 the Eclipse BaSyx Authors +# +# This program and the accompanying materials are made available under the terms of the MIT License, available in +# the LICENSE file of this project. +# +# SPDX-License-Identifier: MIT + import logging from typing import Callable, Dict, Type diff --git a/server/app/backend/local_file.py b/server/app/backend/local_file.py index e71a0e98..e9988d68 100644 --- a/server/app/backend/local_file.py +++ b/server/app/backend/local_file.py @@ -1,3 +1,10 @@ +# Copyright (c) 2026 the Eclipse BaSyx Authors +# +# This program and the accompanying materials are made available under the terms of the MIT License, available in +# the LICENSE file of this project. +# +# SPDX-License-Identifier: MIT + import hashlib import json import logging diff --git a/server/app/interfaces/discovery.py b/server/app/interfaces/discovery.py index 2a60eb3e..e7d91411 100644 --- a/server/app/interfaces/discovery.py +++ b/server/app/interfaces/discovery.py @@ -1,3 +1,10 @@ +# Copyright (c) 2026 the Eclipse BaSyx Authors +# +# This program and the accompanying materials are made available under the terms of the MIT License, available in +# the LICENSE file of this project. +# +# SPDX-License-Identifier: MIT + """ This module implements the Discovery interface defined in the 'Specification of the Asset Administration Shell Part 2 diff --git a/server/app/interfaces/registry.py b/server/app/interfaces/registry.py index f69e3a50..43ad8015 100644 --- a/server/app/interfaces/registry.py +++ b/server/app/interfaces/registry.py @@ -1,3 +1,10 @@ +# Copyright (c) 2026 the Eclipse BaSyx Authors +# +# This program and the accompanying materials are made available under the terms of the MIT License, available in +# the LICENSE file of this project. +# +# SPDX-License-Identifier: MIT + """ This module implements the Registry interface defined in the 'Specification of the Asset Administration Shell Part 2 diff --git a/server/app/model/descriptor.py b/server/app/model/descriptor.py index 2680c256..1cf20de4 100644 --- a/server/app/model/descriptor.py +++ b/server/app/model/descriptor.py @@ -1,3 +1,10 @@ +# Copyright (c) 2026 the Eclipse BaSyx Authors +# +# This program and the accompanying materials are made available under the terms of the MIT License, available in +# the LICENSE file of this project. +# +# SPDX-License-Identifier: MIT + from __future__ import absolute_import import abc diff --git a/server/app/model/endpoint.py b/server/app/model/endpoint.py index c00fa354..714da62f 100644 --- a/server/app/model/endpoint.py +++ b/server/app/model/endpoint.py @@ -1,3 +1,10 @@ +# Copyright (c) 2026 the Eclipse BaSyx Authors +# +# This program and the accompanying materials are made available under the terms of the MIT License, available in +# the LICENSE file of this project. +# +# SPDX-License-Identifier: MIT + from __future__ import absolute_import import re diff --git a/server/app/model/provider.py b/server/app/model/provider.py index 472f0997..f1776dc0 100644 --- a/server/app/model/provider.py +++ b/server/app/model/provider.py @@ -1,3 +1,10 @@ +# Copyright (c) 2026 the Eclipse BaSyx Authors +# +# This program and the accompanying materials are made available under the terms of the MIT License, available in +# the LICENSE file of this project. +# +# SPDX-License-Identifier: MIT + import json from pathlib import Path from typing import IO, Dict, Iterable, Iterator, Union diff --git a/server/app/model/service_specification.py b/server/app/model/service_specification.py index 04a84317..4a1e7c8a 100644 --- a/server/app/model/service_specification.py +++ b/server/app/model/service_specification.py @@ -1,3 +1,10 @@ +# Copyright (c) 2026 the Eclipse BaSyx Authors +# +# This program and the accompanying materials are made available under the terms of the MIT License, available in +# the LICENSE file of this project. +# +# SPDX-License-Identifier: MIT + import enum from typing import List diff --git a/server/app/services/run_discovery.py b/server/app/services/run_discovery.py index deead79a..35e24e95 100644 --- a/server/app/services/run_discovery.py +++ b/server/app/services/run_discovery.py @@ -1,3 +1,10 @@ +# Copyright (c) 2026 the Eclipse BaSyx Authors +# +# This program and the accompanying materials are made available under the terms of the MIT License, available in +# the LICENSE file of this project. +# +# SPDX-License-Identifier: MIT + import atexit import os diff --git a/server/test/model/test_provider.py b/server/test/model/test_provider.py index 567eb6fa..0599cf40 100644 --- a/server/test/model/test_provider.py +++ b/server/test/model/test_provider.py @@ -1,3 +1,10 @@ +# Copyright (c) 2026 the Eclipse BaSyx Authors +# +# This program and the accompanying materials are made available under the terms of the MIT License, available in +# the LICENSE file of this project. +# +# SPDX-License-Identifier: MIT + import unittest from app import model