Skip to content

Commit d8f4662

Browse files
committed
Initial commit
0 parents  commit d8f4662

File tree

247 files changed

+50391
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

247 files changed

+50391
-0
lines changed

.clang-format

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Copyright 2021 ETH Zurich and University of Bologna
2+
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
3+
# SPDX-License-Identifier: Apache-2.0
4+
---
5+
BasedOnStyle: LLVM
6+
ColumnLimit: 120

.clang-format-ignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Copyright (c) 2025 ETH Zurich and University of Bologna
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
**/third_party
5+
**/build*
6+
**/venv
7+
**/.venv
8+
**/gap_sdk_private

.editorconfig

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Copyright (c) 2025 ETH Zurich and University of Bologna
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
# top-most EditorConfig file
5+
root = true
6+
7+
# Unix-style newlines with a newline ending every file
8+
[*]
9+
end_of_line = lf
10+
insert_final_newline = true
11+
12+
[*.{h,c}]
13+
indent_style = space
14+
indent_size = 2
15+
16+
# Tab indentation (no size specified)
17+
[makefile]
18+
indent_style = tab
19+

.github/workflows/pre-commit.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# SPDX-FileCopyrightText: 2025 ETH Zurich and University of Bologna
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
---
5+
6+
name: CI • Lint & Licenses
7+
8+
"on":
9+
push:
10+
branches:
11+
- "**"
12+
tags:
13+
- "v*.*.*"
14+
pull_request:
15+
workflow_dispatch:
16+
17+
jobs:
18+
lint:
19+
name: Run pre-commit
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout code
23+
uses: actions/checkout@v4
24+
with:
25+
fetch-depth: 0
26+
27+
- name: Set up Python
28+
uses: actions/setup-python@v4
29+
with:
30+
python-version: '3.11'
31+
32+
- name: Cache pre-commit and pip
33+
uses: actions/cache@v4
34+
with:
35+
path: |
36+
~/.cache/pre-commit
37+
~/.cache/pip
38+
key: ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
39+
restore-keys: |
40+
${{ runner.os }}-pre-commit-
41+
42+
- name: Install dependencies
43+
run: |
44+
python -m pip install --upgrade pip
45+
pip install pre-commit
46+
pip install reuse
47+
48+
- name: Run pre-commit (all files)
49+
run: |
50+
# Show diffs on failure and run across the entire repository to ensure consistency
51+
pre-commit run --show-diff-on-failure --all-files
52+
53+
- name: Show git status (debug)
54+
if: ${{ always() }}
55+
run: git status --porcelain || true

.gitignore

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Copyright (c) 2025 ETH Zurich and University of Bologna
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
# editors
5+
*.swp
6+
*~
7+
compile_commands.json
8+
.cache/
9+
build*/
10+
.vscode/
11+
12+
# build
13+
/build*/
14+
15+
__pycache__
16+
build
17+
dist
18+
**/*.egg*
19+
*.vscode
20+
.DS_Store
21+
*.html
22+
.ipynb_checkpoints/
23+
*#
24+
*.onnx
25+
*.pkl
26+
*.data
27+
*#
28+
29+
# Python Virtualenv
30+
venv/

.gitmodules

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Copyright (c) 2025 ETH Zurich and University of Bologna
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
[submodule "NRF/system/third_party/max-m10s/ubxlib"]
5+
path = NRF/system/third_party/max-m10s/ubxlib
6+
url = https://github.com/u-blox/ubxlib.git

.isort.cfg

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# SPDX-FileCopyrightText: 2023 ETH Zurich and University of Bologna
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
[settings]
6+
line_length=120
7+
multi_line_output=2
8+
include_trailing_comma=false

.pre-commit-config.yaml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# SPDX-FileCopyrightText: 2025 ETH Zurich and University of Bologna
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
# See https://pre-commit.com for more information
6+
# See https://pre-commit.com/hooks.html for more hooks
7+
---
8+
exclude: |
9+
(?x)^(
10+
.*third_party.*
11+
| .*generated.*
12+
)
13+
14+
repos:
15+
- repo: https://github.com/pre-commit/pre-commit-hooks
16+
rev: v6.0.0
17+
hooks:
18+
- id: check-added-large-files
19+
name: Check for added large files
20+
- id: trailing-whitespace
21+
name: Check for trailing whitespace
22+
- repo: local
23+
hooks:
24+
- id: reuse
25+
name: Check SPDX License Headers
26+
entry: scripts/reuse_skip_wrapper.py
27+
language: python
28+
stages: [pre-commit, pre-merge-commit, pre-push, manual]
29+
types: [text]
30+
exclude_types: [batch, svg, json, markdown]
31+
- repo: https://github.com/google/yapf
32+
rev: v0.43.0
33+
hooks:
34+
- id: yapf
35+
name: Autoformat Python Files
36+
args: ["--in-place", "--parallel"]
37+
stages: [pre-commit, pre-merge-commit, pre-push, manual]
38+
- repo: https://github.com/pycqa/isort
39+
rev: 5.12.0
40+
hooks:
41+
- id: isort
42+
name: Autoformat Python Imports
43+
args: ["--quiet"]
44+
stages: [pre-commit, pre-merge-commit, pre-push, manual]
45+
- repo: https://github.com/PyCQA/autoflake
46+
rev: v2.3.0
47+
hooks:
48+
- id: autoflake
49+
name: Remove Unused Python Imports
50+
args:
51+
- "--remove-all-unused-imports"
52+
- "--ignore-init-module-imports"
53+
- "--in-place"
54+
stages: [pre-commit, pre-merge-commit, pre-push, manual]
55+
- repo: https://github.com/adrienverge/yamllint.git
56+
rev: v1.33.0
57+
hooks:
58+
- id: yamllint
59+
name: Lint YAML Files
60+
stages: [pre-commit, pre-merge-commit, pre-push, manual]
61+
- repo: https://github.com/pre-commit/mirrors-clang-format
62+
rev: v21.1.2
63+
hooks:
64+
- id: clang-format
65+
name: Autoformat C/C++ Files
66+
args: ["-i"]
67+
stages: [pre-commit, pre-merge-commit, pre-push, manual]

.style.yapf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Copyright (c) 2025 ETH Zurich and University of Bologna
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
[style]
5+
based_on_style = google
6+
column_limit = 120
7+
split_before_logical_operator = true
8+
spaces_around_default_or_named_assign = true

.yamllint

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# SPDX-FileCopyrightText: 2025 ETH Zurich and University of Bologna
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
---
6+
extends: default
7+
8+
rules:
9+
line-length: disable
10+
indentation:
11+
spaces: 2
12+
indent-sequences: consistent
13+
braces:
14+
forbid: false
15+
min-spaces-inside: 0
16+
max-spaces-inside: 2
17+
comments:
18+
min-spaces-from-content: 1
19+
20+
21+
ignore:
22+
# Ignore all files in third_party
23+
- "**/third_party/"
24+
# Ignore all files in .git
25+
- "**/.git/**"

0 commit comments

Comments
 (0)