Skip to content

Commit

Permalink
MNT: move scripts to scripts/ subdirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
JJL772 committed Apr 13, 2024
1 parent 9583bb7 commit 8f8a6d2
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .clang-tidy-exclude
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Defines patterns to exclude from the clang-tidy run
Exclude:
- '\S+registerRecordDeviceDriver.cpp'
3 changes: 0 additions & 3 deletions .clang-tidy-exclude.json

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/ci-scripts-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,10 @@ jobs:
# To get a complete compile_commands.json, we need to re-run the entire compile with bear. For now, we'll only do this on Linux native builds.
- name: Run clang-tidy
run: |
python3 -m pip install -r requirements.txt
python3 -m pip install -r scripts/requirements.txt
make clean
bear -- make -j$(nproc)
python3 clang-tidy.py
python3 scripts/clang-tidy.py
if: matrix.clang-tidy

- name: Run main module tests
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions clang-tidy.py → scripts/clang-tidy.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ def _load_config() -> dict:
exit(1)

exclude = []
with open('.clang-tidy-exclude.json', 'rb') as fp:
exclude = json.load(fp)
with open('.clang-tidy-exclude', 'rb') as fp:
exclude = yaml.safe_load(fp)['Exclude']

assert isinstance(exclude, list)

Expand Down
File renamed without changes.

0 comments on commit 8f8a6d2

Please sign in to comment.