From 7ee223654d99762530731c5309a43ef17a0dabfe Mon Sep 17 00:00:00 2001 From: Lutz Reinhardt Date: Tue, 17 Mar 2026 13:30:01 +0000 Subject: [PATCH 1/6] Add devcontainer to module template The devcontainer is a unified environment which should work in most cases without friction. This reduces setup time for developers. --- .devcontainer/Dockerfile | 2 ++ .devcontainer/devcontainer.json | 6 ++++++ .vscode/settings.json | 11 +++-------- 3 files changed, 11 insertions(+), 8 deletions(-) create mode 100644 .devcontainer/Dockerfile create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..d26694b --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,2 @@ +# Use Dockerfile to get dependabot version bumps after new image is released +FROM ghcr.io/eclipse-score/devcontainer:v1.2.0 diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..23f4e44 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,6 @@ +{ + "name": "eclipse-s-core", + "build": { + "dockerfile": "Dockerfile" + } +} diff --git a/.vscode/settings.json b/.vscode/settings.json index 47cb954..af7dc5f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -5,12 +5,10 @@ "files.trimTrailingWhitespace": true, "editor.insertSpaces": true, "editor.tabCompletion": "on", - // Default for any filetype "editor.rulers": [ 99 ], - // Exclude build, temp and cache folders "files.watcherExclude": { ".*/**": true, @@ -19,7 +17,6 @@ ".venv*/**": true, "_build/**": true, }, - // Python Settings // Exclude build, temp and cache folders "python.analysis.exclude": [ @@ -42,22 +39,20 @@ }, "editor.defaultFormatter": "charliermarsh.ruff", }, - // Markdown Settings "[markdown]": { // We mostly write markdown in some combination with python, // so we use the same rulers as python. "editor.rulers": [ - 79, 99 + 79, + 99 ] }, - "bazel.lsp.command": "bazel", "bazel.lsp.args": [ "run", "//:starpls_server" ], - // RST Settings "[restructuredtext]": { "editor.tabSize": 3, @@ -99,8 +94,8 @@ "--ignore-glob=bazel-*/*", "--ignore-glob=.venv_docs/*", "--ignore-glob=_build/*", - ], "python.testing.unittestEnabled": false, "python.testing.pytestEnabled": true, + "python.analysis.typeCheckingMode": "off", } From 7872e278f906ca58426ff2c9f3f1b4aeeafec9eb Mon Sep 17 00:00:00 2001 From: Lutz Reinhardt Date: Tue, 17 Mar 2026 13:34:50 +0000 Subject: [PATCH 2/6] Add dependabot for automated version updates Manually checking for updates is a pain in the ass and should be automated. --- .github/dependabot.yml | 62 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..7629243 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,62 @@ +version: 2 +updates: + - package-ecosystem: github-actions + directory: / + schedule: + interval: daily + groups: + all-in-one: + patterns: + - "*" + update-types: + - "minor" + - "patch" + + - package-ecosystem: cargo + directory: / + schedule: + interval: daily + groups: + all-in-one: + patterns: + - "*" + update-types: + - "minor" + - "patch" + + - package-ecosystem: pip + directory: / + schedule: + interval: daily + groups: + all-in-one: + patterns: + - "*" + update-types: + - "minor" + - "patch" + + - package-ecosystem: docker + directories: + - /.devcontainer + schedule: + interval: daily + groups: + all-in-one: + patterns: + - "*" + update-types: + - "minor" + - "patch" + + - package-ecosystem: bazel + directory: / + schedule: + interval: daily + groups: + all-in-one: + patterns: + - "*" + update-types: + - "minor" + - "patch" From b6809f2b34a0a9983339ae613d75f03526ca1a38 Mon Sep 17 00:00:00 2001 From: Lutz Reinhardt Date: Tue, 17 Mar 2026 13:39:39 +0000 Subject: [PATCH 3/6] Add pre-commit configuration This prevents us to do easy to detect and fix mistakes --- .github/ISSUE_TEMPLATE/bug_fix.md | 2 -- .github/workflows/pre-commit.yml | 27 ++++++++++++++++++++++++++ .pre-commit-config.yaml | 12 ++++++++++++ .vscode/restructuredtext.code-snippets | 2 +- 4 files changed, 40 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/pre-commit.yml create mode 100644 .pre-commit-config.yaml diff --git a/.github/ISSUE_TEMPLATE/bug_fix.md b/.github/ISSUE_TEMPLATE/bug_fix.md index 43ba081..c9c4f35 100644 --- a/.github/ISSUE_TEMPLATE/bug_fix.md +++ b/.github/ISSUE_TEMPLATE/bug_fix.md @@ -9,5 +9,3 @@ assignees: '' > [!IMPORTANT] > Make sure to link this issue with the PR for your bugfix. - - diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml new file mode 100644 index 0000000..a0e92b7 --- /dev/null +++ b/.github/workflows/pre-commit.yml @@ -0,0 +1,27 @@ +# ******************************************************************************* +# Copyright (c) 2026 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made available under the +# terms of the Apache License Version 2.0 which is available at +# https://www.apache.org/licenses/LICENSE-2.0 +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************* +name: pre-commit +on: + pull_request: + types: [opened, reopened, synchronize] +jobs: + self_test: + name: 🔬 Self Test + runs-on: ubuntu-latest + steps: + - name: 📥 Check out + uses: actions/checkout@v6 + - name: ⚙️ Setup uv + uses: astral-sh/setup-uv@v5 + - name: 🛠️ Run pre-commit + run: uvx pre-commit run --all-files diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..56b7c32 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,12 @@ +exclude: '.patch$' +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # v6.0.0 + hooks: + - id: end-of-file-fixer + - id: trailing-whitespace + - id: check-shebang-scripts-are-executable + - id: check-executables-have-shebangs + - id: check-added-large-files + args: [--maxkb=50, --enforce-all] # increase or add git lfs if too strict + exclude: MODULE.bazel.lock diff --git a/.vscode/restructuredtext.code-snippets b/.vscode/restructuredtext.code-snippets index bde982f..1e66353 100644 --- a/.vscode/restructuredtext.code-snippets +++ b/.vscode/restructuredtext.code-snippets @@ -344,4 +344,4 @@ " ${7}" ] } -} \ No newline at end of file +} From a95b80ec93b504c59b993c7d82960138a91a9d86 Mon Sep 17 00:00:00 2001 From: Lutz Reinhardt Date: Tue, 17 Mar 2026 13:45:52 +0000 Subject: [PATCH 4/6] Add copyright pre-commit check --- .github/dependabot.yml | 12 ++++++++++++ .pre-commit-config.yaml | 17 +++++++++++++++++ examples/BUILD | 12 ++++++++++++ project_config.bzl | 12 ++++++++++++ tests/rust/test_main.rs | 12 ++++++++++++ 5 files changed, 65 insertions(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 7629243..aa645e7 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,3 +1,15 @@ +# ******************************************************************************* +# Copyright (c) 2026 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made available under the +# terms of the Apache License Version 2.0 which is available at +# https://www.apache.org/licenses/LICENSE-2.0 +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************* version: 2 updates: - package-ecosystem: github-actions diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 56b7c32..2b0063e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,3 +1,15 @@ +# ******************************************************************************* +# Copyright (c) 2026 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made available under the +# terms of the Apache License Version 2.0 which is available at +# https://www.apache.org/licenses/LICENSE-2.0 +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************* exclude: '.patch$' repos: - repo: https://github.com/pre-commit/pre-commit-hooks @@ -10,3 +22,8 @@ repos: - id: check-added-large-files args: [--maxkb=50, --enforce-all] # increase or add git lfs if too strict exclude: MODULE.bazel.lock + + - repo: https://github.com/eclipse-score/tooling + rev: 31ff8eee214e4e97ef8f5cb46e443273515b63ec + hooks: + - id: copyright diff --git a/examples/BUILD b/examples/BUILD index 012dd54..4bc4ed5 100644 --- a/examples/BUILD +++ b/examples/BUILD @@ -1,3 +1,15 @@ +# ******************************************************************************* +# Copyright (c) 2026 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made available under the +# terms of the Apache License Version 2.0 which is available at +# https://www.apache.org/licenses/LICENSE-2.0 +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************* # Needed for Dash tool to check python dependency licenses. filegroup( name = "cargo_lock", diff --git a/project_config.bzl b/project_config.bzl index f764a1d..df83e7c 100644 --- a/project_config.bzl +++ b/project_config.bzl @@ -1,3 +1,15 @@ +# ******************************************************************************* +# Copyright (c) 2026 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made available under the +# terms of the Apache License Version 2.0 which is available at +# https://www.apache.org/licenses/LICENSE-2.0 +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************* # project_config.bzl PROJECT_CONFIG = { "asil_level": "QM", diff --git a/tests/rust/test_main.rs b/tests/rust/test_main.rs index 9390d5e..7194058 100644 --- a/tests/rust/test_main.rs +++ b/tests/rust/test_main.rs @@ -1,3 +1,15 @@ +// ******************************************************************************* +// Copyright (c) 2026 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache License Version 2.0 which is available at +// +// +// SPDX-License-Identifier: Apache-2.0 +// ******************************************************************************* #[test] fn test_hello() { assert_eq!(2 + 2, 4); From 562b9acb18549fc446952f886de98f650405adfe Mon Sep 17 00:00:00 2001 From: Lutz Reinhardt Date: Tue, 17 Mar 2026 13:47:15 +0000 Subject: [PATCH 5/6] Add yamlfmt to pre-commit hooks --- .pre-commit-config.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2b0063e..4337a22 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -27,3 +27,8 @@ repos: rev: 31ff8eee214e4e97ef8f5cb46e443273515b63ec hooks: - id: copyright + + - repo: https://github.com/google/yamlfmt + rev: 21ca5323a9c87ee37a434e0ca908efc0a89daa07 # v0.21.0 + hooks: + - id: yamlfmt From f7c31653d92b44b54836e7596f5d751052fdd4c9 Mon Sep 17 00:00:00 2001 From: Lutz Reinhardt Date: Tue, 17 Mar 2026 14:37:18 +0000 Subject: [PATCH 6/6] Add reuse to pre-commit checks --- .bazelrc | 13 ++++ .devcontainer/Dockerfile | 13 ++++ .github/CODEOWNERS | 13 ++++ .github/ISSUE_TEMPLATE/bug_fix.md | 15 ++++ .github/ISSUE_TEMPLATE/improvement.md | 15 ++++ .github/PULL_REQUEST_TEMPLATE/bug_fix.md | 15 ++++ .github/PULL_REQUEST_TEMPLATE/improvement.md | 15 ++++ .gitignore | 13 ++++ .pre-commit-config.yaml | 5 ++ .yamlfmt | 13 ++++ CONTRIBUTION.md | 15 ++++ LICENSES/Apache-2.0.txt | 73 ++++++++++++++++++++ NOTICE | 15 ++++ README.md | 14 ++++ REUSE.toml | 39 +++++++++++ pyproject.toml | 13 ++++ 16 files changed, 299 insertions(+) create mode 100644 LICENSES/Apache-2.0.txt create mode 100644 REUSE.toml diff --git a/.bazelrc b/.bazelrc index 51cac5a..03449af 100644 --- a/.bazelrc +++ b/.bazelrc @@ -1,3 +1,16 @@ +# ******************************************************************************* +# Copyright (c) 2026 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made available under the +# terms of the Apache License Version 2.0 which is available at +# https://www.apache.org/licenses/LICENSE-2.0 +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************* + build --java_language_version=17 build --tool_java_language_version=17 build --java_runtime_version=remotejdk_17 diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index d26694b..0cbf87f 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,2 +1,15 @@ +# ******************************************************************************* +# Copyright (c) 2026 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made available under the +# terms of the Apache License Version 2.0 which is available at +# https://www.apache.org/licenses/LICENSE-2.0 +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************* + # Use Dockerfile to get dependabot version bumps after new image is released FROM ghcr.io/eclipse-score/devcontainer:v1.2.0 diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index ff063c4..5c36fee 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,3 +1,16 @@ +# ******************************************************************************* +# Copyright (c) 2026 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made available under the +# terms of the Apache License Version 2.0 which is available at +# https://www.apache.org/licenses/LICENSE-2.0 +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************* + # Comment out as not in score yet # * @eclipse-score/infrastructure-tooling-community # .* @eclipse-score/infrastructure-tooling-community diff --git a/.github/ISSUE_TEMPLATE/bug_fix.md b/.github/ISSUE_TEMPLATE/bug_fix.md index c9c4f35..7d6c290 100644 --- a/.github/ISSUE_TEMPLATE/bug_fix.md +++ b/.github/ISSUE_TEMPLATE/bug_fix.md @@ -1,3 +1,18 @@ + + --- name: Bugfix about: 'Issue to track a bugfix' diff --git a/.github/ISSUE_TEMPLATE/improvement.md b/.github/ISSUE_TEMPLATE/improvement.md index fd2c171..769b0e7 100644 --- a/.github/ISSUE_TEMPLATE/improvement.md +++ b/.github/ISSUE_TEMPLATE/improvement.md @@ -1,3 +1,18 @@ + + --- name: Improvement about: 'Issue to track a improvement' diff --git a/.github/PULL_REQUEST_TEMPLATE/bug_fix.md b/.github/PULL_REQUEST_TEMPLATE/bug_fix.md index 8341f51..fb54341 100644 --- a/.github/PULL_REQUEST_TEMPLATE/bug_fix.md +++ b/.github/PULL_REQUEST_TEMPLATE/bug_fix.md @@ -1,3 +1,18 @@ + + # Bugfix > [!IMPORTANT] diff --git a/.github/PULL_REQUEST_TEMPLATE/improvement.md b/.github/PULL_REQUEST_TEMPLATE/improvement.md index 090ad43..334ce94 100644 --- a/.github/PULL_REQUEST_TEMPLATE/improvement.md +++ b/.github/PULL_REQUEST_TEMPLATE/improvement.md @@ -1,3 +1,18 @@ + + # Improvement > [!IMPORTANT] diff --git a/.gitignore b/.gitignore index aa5f763..8785dbd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,16 @@ +# ******************************************************************************* +# Copyright (c) 2026 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made available under the +# terms of the Apache License Version 2.0 which is available at +# https://www.apache.org/licenses/LICENSE-2.0 +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************* + # Prerequisites *.d diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4337a22..ef09d76 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -28,6 +28,11 @@ repos: hooks: - id: copyright + - repo: https://codeberg.org/fsfe/reuse-tool + rev: a1bb792acda6fd0724936b4ebbdbc8eceb9c0459 # v6.2.0 + hooks: + - id: reuse-lint-file + - repo: https://github.com/google/yamlfmt rev: 21ca5323a9c87ee37a434e0ca908efc0a89daa07 # v0.21.0 hooks: diff --git a/.yamlfmt b/.yamlfmt index 2078769..9bab1d2 100644 --- a/.yamlfmt +++ b/.yamlfmt @@ -1,3 +1,16 @@ +# ******************************************************************************* +# Copyright (c) 2026 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made available under the +# terms of the Apache License Version 2.0 which is available at +# https://www.apache.org/licenses/LICENSE-2.0 +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************* + formatter: type: basic retain_line_breaks: true diff --git a/CONTRIBUTION.md b/CONTRIBUTION.md index dcc54e6..cfbec36 100644 --- a/CONTRIBUTION.md +++ b/CONTRIBUTION.md @@ -1,3 +1,18 @@ + + # Eclipse Safe Open Vehicle Core (SCORE) The [Eclipse Safe Open Vehicle Core](https://projects.eclipse.org/projects/automotive.score) project aims to develop an open-source core stack for Software Defined Vehicles (SDVs), specifically targeting embedded high-performance Electronic Control Units (ECUs). Please check the [documentation](https://eclipse-score.github.io) for more information. diff --git a/LICENSES/Apache-2.0.txt b/LICENSES/Apache-2.0.txt new file mode 100644 index 0000000..137069b --- /dev/null +++ b/LICENSES/Apache-2.0.txt @@ -0,0 +1,73 @@ +Apache License +Version 2.0, January 2004 +http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + +"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. + +"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. + +"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. + +"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. + +"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. + +"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. + +"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). + +"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. + +"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." + +"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: + + (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. + + You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + +To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/NOTICE b/NOTICE index 5d111d4..98e3216 100644 --- a/NOTICE +++ b/NOTICE @@ -1,3 +1,18 @@ + + # Notices for Eclipse Safe Open Vehicle Core This content is produced and maintained by the Eclipse Safe Open Vehicle Core project. diff --git a/README.md b/README.md index 7a5073b..54b5c0e 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,17 @@ + # C++ & Rust Bazel Template Repository diff --git a/REUSE.toml b/REUSE.toml new file mode 100644 index 0000000..43801e8 --- /dev/null +++ b/REUSE.toml @@ -0,0 +1,39 @@ +# ******************************************************************************* +# Copyright (c) 2026 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made available under the +# terms of the Apache License Version 2.0 which is available at +# https://www.apache.org/licenses/LICENSE-2.0 +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************* + +version = 1 + +[[annotations]] +path = [".devcontainer/*.json"] +SPDX-FileCopyrightText = "Copyright (c) 2026 Contributors to the Eclipse Foundation" +SPDX-License-Identifier = "Apache-2.0" + +[[annotations]] +path = [".vscode/*.json", ".vscode/restructuredtext.code-snippets"] +SPDX-FileCopyrightText = "Copyright (c) 2026 Contributors to the Eclipse Foundation" +SPDX-License-Identifier = "Apache-2.0" + +[[annotations]] +path = ["**/*.lock.json", "**/Cargo.lock", "MODULE.bazel.lock"] +SPDX-FileCopyrightText = "Copyright (c) 2026 Contributors to the Eclipse Foundation" +SPDX-License-Identifier = "Apache-2.0" + +[[annotations]] +path = [".github/templatesyncignore.txt"] +SPDX-FileCopyrightText = "Copyright (c) 2026 Contributors to the Eclipse Foundation" +SPDX-License-Identifier = "Apache-2.0" + +[[annotations]] +path = [".bazelversion"] +SPDX-FileCopyrightText = "Copyright (c) 2026 Contributors to the Eclipse Foundation" +SPDX-License-Identifier = "Apache-2.0" diff --git a/pyproject.toml b/pyproject.toml index 5819ca5..c7d5fac 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,16 @@ +# ******************************************************************************* +# Copyright (c) 2026 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made available under the +# terms of the Apache License Version 2.0 which is available at +# https://www.apache.org/licenses/LICENSE-2.0 +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************* + [tool.basedpyright] extends = "bazel-bin/ide_support.runfiles/score_tooling+/python_basics/pyproject.toml" verboseOutput = true