Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 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
31 changes: 30 additions & 1 deletion .clang-tidy
Original file line number Diff line number Diff line change
@@ -1,2 +1,31 @@
Checks: "*"
Checks: >
*,
-altera-unroll-loops,
-bugprone-branch-clone,
-bugprone-easily-swappable-parameters,
-cppcoreguidelines-avoid-c-arrays,
-cppcoreguidelines-avoid-magic-numbers,
-cppcoreguidelines-pro-bounds-constant-array-index,
-cppcoreguidelines-pro-bounds-pointer-arithmetic,
-cppcoreguidelines-pro-type-vararg,
-fuchsia-default-arguments-calls,
-[fuchsia-default-arguments-declarations,
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
-fuchsia-statically-constructed-objects,
-google-runtime-int,
-hicpp-avoid-c-arrays,
-hicpp-vararg,
-llvm-header-guard,
-llvmlibc-callee-namespace,
-llvmlibc-implementation-in-namespace,
-misc-use-internal-linkage,
-modernize-avoid-c-arrays,
-modernize-use-trailing-return-type,
-portability-avoid-pragma-once,
-readability-convert-member-functions-to-static,
-readability-magic-numbers
CheckOptions:
- key: cppcoreguidelines-macro-usage.CheckCapsOnly
value: true
- key: readability-identifier-length.IgnoredVariableNames
value: ^(rx|tx)$
FormatStyle: file
12 changes: 12 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
avr:
- changed-files:
- any-glob-to-any-file:
- include/avr/**/*
- src/avr/**/*

bug:
- head-branch:
- ^fix/
Expand All @@ -13,3 +19,9 @@ documentation:
enhancement:
- head-branch:
- ^feat/

esp:
- changed-files:
- any-glob-to-any-file:
- include/esp/**/*
- src/esp/**/*
5 changes: 4 additions & 1 deletion .github/workflows/clang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,14 @@ jobs:
tidy-checks: ""

- name: Summary
env:
clang-threshold: 130
run: |
echo "Status: ${{ steps.tidy.outputs.checks-failed }} checks failed."
echo "Status: ${{ steps.tidy.outputs.checks-failed }} checks failed, threshold for success is ${{ env.clang-threshold }}."
echo "Clang report:"
if [ -n "${{ github.event.pull_request.number }}" ]; then
echo "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}?pr=${{ github.event.pull_request.number }}"
else
echo "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
fi
exit $(( ${{ steps.tidy.outputs.checks-failed }} > ${{ env.clang-threshold }} ))
2 changes: 1 addition & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Labeler
on:
pull_request_target:
branches:
- master
- main

permissions:
contents: read
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/platformio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ name: PlatformIO
on:
pull_request:
branches:
- master
- main

push:
branches:
- master
- main

workflow_dispatch:

Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/uv.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: uv

on:
pull_request:
branches:
- main

workflow_dispatch:

permissions:
contents: read

jobs:
uv-lock:
name: uv.lock consistency
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
Comment thread
JanPetterMG marked this conversation as resolved.

- name: Set up uv
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
with:
python-version: 3.11
version: latest-known

- name: uv lock check
run: uv lock --check