Skip to content
Closed
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: 2 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "eclipse-s-core",
"build": {
"dockerfile": "Dockerfile"
}
}
2 changes: 0 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_fix.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,3 @@ assignees: ''

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


74 changes: 74 additions & 0 deletions .github/dependabot.yml
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
# *******************************************************************************
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"
27 changes: 27 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -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
34 changes: 34 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# *******************************************************************************
# 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
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

- repo: https://github.com/eclipse-score/tooling
rev: 31ff8eee214e4e97ef8f5cb46e443273515b63ec
hooks:
- id: copyright

- repo: https://github.com/google/yamlfmt
rev: 21ca5323a9c87ee37a434e0ca908efc0a89daa07 # v0.21.0
hooks:
- id: yamlfmt
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}"
]
}
}
}
11 changes: 3 additions & 8 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -19,7 +17,6 @@
".venv*/**": true,
"_build/**": true,
},

// Python Settings
// Exclude build, temp and cache folders
"python.analysis.exclude": [
Expand All @@ -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,
Expand Down Expand Up @@ -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",
}
12 changes: 12 additions & 0 deletions examples/BUILD
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
12 changes: 12 additions & 0 deletions project_config.bzl
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
12 changes: 12 additions & 0 deletions tests/rust/test_main.rs
Original file line number Diff line number Diff line change
@@ -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
// *******************************************************************************
#[test]
fn test_hello() {
assert_eq!(2 + 2, 4);
Expand Down
Loading