Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_fix.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,3 @@ assignees: ''

> [!IMPORTANT]
> Make sure to link this issue with the PR for your bugfix.


20 changes: 20 additions & 0 deletions .github/actionlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# *******************************************************************************
# 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
# *******************************************************************************

self-hosted-runner:
labels: []

paths:
.github/workflows/**/*.{yml,yaml}:
ignore:
- 'file "/bin/sh" does not exist.*entrypoint'
Comment on lines +17 to +20

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was the only way I could fix the warning.
It did not accept any other solution, this seems to be accepted workaround (adding the specific thing to the ignore list)

2 changes: 1 addition & 1 deletion .github/actions/gitlint/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ inputs:
required: false
runs:
using: "docker"
image: "jorisroovers/gitlint:0.19.1"
image: "docker://jorisroovers/gitlint:0.19.1"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is needed otherwise it can not infer that the entrypoint should be from the docker and actionlint will give you a warning

entrypoint: /bin/sh
args:
- -c
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/on-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# *******************************************************************************
# 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: PR Checks

on:
pull_request:
types: [opened, reopened, synchronize]
merge_group:
types: [checks_requested]
push:
branches:
- main


jobs:
# Common S-CORE Workflow

common:
uses: eclipse-score/cicd-workflows/.github/workflows/on-pr.yml@88cb460c47cb49efeb25cd7b73c8945dd1c5bce2 # on-pr/v0.0.0
permissions:
contents: read

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This workflow will start all needed things in the repo, detecting what is inside the repo and then starting it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Things like pre-commit for example, that then start other things.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,6 @@ styles/

# Python
.venv
.venv_docs
__pycache__/
/.coverage
74 changes: 74 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# *******************************************************************************
# 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
# *******************************************************************************
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-yaml
args: ["-m"]
- id: check-toml
- id: check-json
exclude: ^\.vscode/ # those are actually jsonc files
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-merge-conflict
- id: check-case-conflict
- id: mixed-line-ending
- id: detect-private-key
- id: check-added-large-files
args: ["--maxkb=150"]

- repo: local
hooks:
- id: bazel-mod-tidy
name: format Bazel module files
entry: bazel mod tidy
language: system
pass_filenames: false
files: '(^|/)(MODULE\.bazel|.*\.bzl|BUILD(\.bazel)?)$'

- id: bzlmod-lockfile
name: bazel mod deps lockfile check
entry: bazel mod deps --lockfile_mode=error
language: system
pass_filenames: false
files: '(^|/)MODULE\.bazel(\.lock)?$'

- id: actionlint
name: actionlint
# Disable shellcheck and pyflakes for now, to enforce consistent behavior.
entry: tools/run_tool.sh actionlint -shellcheck= -pyflakes=
language: system
require_serial: true
types: [yaml]
files: ^\.github/workflows/
- id: ruff-check
name: ruff-check
entry: tools/run_tool.sh ruff check --fix
language: system
require_serial: true
types: [python]
- id: ruff-format
name: ruff-format
entry: tools/run_tool.sh ruff format
language: system
require_serial: true
types: [python]


# Ensure every file has a copyright header as per the Eclipse Foundation's requirements
# Runs `cr_checker`
- repo: https://github.com/eclipse-score/tools
rev: 7694bf823421b5542cd2f45239b8bdf205dbface
hooks:
- id: copyright
2 changes: 1 addition & 1 deletion .vscode/restructuredtext.code-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -344,4 +344,4 @@
" ${7}"
]
}
}
}
12 changes: 1 addition & 11 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

load("@score_docs_as_code//:docs.bzl", "docs")
load("@score_tooling//:defs.bzl", "copyright_checker", "dash_license_checker", "setup_starpls", "use_format_targets")
load("@score_tools//cr_checker:cr_checker.bzl", "copyright_checker")
load("//:project_config.bzl", "PROJECT_CONFIG")

setup_starpls(
Expand All @@ -29,17 +30,6 @@ docs(

copyright_checker(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This repo now has bazel run //:copyright.fix and pre-commit run which do the same thing. Should we really have both?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think for this PR from my side, yes.
I would let the codeowners decide which part they rather would have and delete that one, the PR has both working and shows how to use / implement it.

name = "copyright",
srcs = [

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, we donb't need to specify now explicetly the repo structure or folders to check? the fuill repo will be taken by default?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything that this command git ls-files --cached --other --exclude-standard will find is now in the cr_checker autoomatically :)

".github",
"docs",
"examples",
"score",
"tools",
"//:BUILD",
"//:MODULE.bazel",
],
config = "@score_tooling//cr_checker/resources:config",
template = "@score_tooling//cr_checker/resources:templates",
visibility = ["//visibility:public"],
)

Expand Down
13 changes: 13 additions & 0 deletions CONTRIBUTION.md
Original file line number Diff line number Diff line change
@@ -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
----------------------------------------------------------------------------- -->

# 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.
Expand Down
5 changes: 5 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -152,3 +152,8 @@ python.toolchain(
is_default = True,
python_version = PYTHON_VERSION,
)

bazel_dep(name = "score_tools", version = "0.0.1", dev_dependency = True)

# Provide the tools from the devcontainer to Bazel
bazel_dep(name = "score_devcontainer", version = "1.8.0", dev_dependency = True)
36 changes: 27 additions & 9 deletions MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
----------------------------------------------------------------------------- -->


# C++ & Rust Bazel Template Repository

Expand Down Expand Up @@ -70,6 +83,14 @@ artifacts of the module.
bazel test //tests/...
```

### 4️⃣ Run pre-commit Checks

```sh
pre-commit run -a
```

This runs all configured pre-commit hooks (formatting, linting, etc.) against all files in the repository.

---

## 🛠 Tools & Linters
Expand Down
13 changes: 13 additions & 0 deletions docs/features/time/_assets/architecture_layers.puml
Original file line number Diff line number Diff line change
@@ -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
' *******************************************************************************

@startuml architecture_layers

title score::time — Architecture Layers
Expand Down
13 changes: 13 additions & 0 deletions docs/features/time/_assets/class_overview.puml
Original file line number Diff line number Diff line change
@@ -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
' *******************************************************************************

@startuml class_overview

title score::time — Class Overview
Expand Down
Loading
Loading