Separate linters from cmake (#587)

This commit is contained in:
Changho Hwang
2025-07-28 09:59:20 +08:00
committed by GitHub
parent 01e72f3aca
commit 5b84c8a3d1
6 changed files with 83 additions and 105 deletions

View File

@@ -19,27 +19,25 @@ jobs:
sudo apt-get install -y clang-format
- name: Run cpplint
run: |
CPPSOURCES=$(find ./src ./include ./python ./test ./apps -regextype posix-extended -regex '.*\.(c|cpp|h|hpp|cc|cxx|cu)')
clang-format -style=file --verbose --Werror --dry-run ${CPPSOURCES}
run: bash ./tools/lint.sh cpp dry
pylint:
runs-on: ubuntu-22.04
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3
- name: Check out Git repository
uses: actions/checkout@v4
- name: Install Python dependencies
run: python3 -m pip install black
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3
- name: Run black
run: python3 -m black --check --config pyproject.toml .
- name: Install Python dependencies
run: python3 -m pip install black
- name: Run black
run: bash ./tools/lint.sh py dry
spelling:
runs-on: ubuntu-22.04