Skip to content

Commit

Permalink
[ot] .github: add Python linter
Browse files Browse the repository at this point in the history
Signed-off-by: Emmanuel Blot <[email protected]>
  • Loading branch information
rivos-eblot committed Oct 4, 2024
1 parent c5eeebe commit 0196f5e
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/build_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,26 @@ jobs:
sudo apt-get install -y clang-format-18
- name: Check out QEMU
uses: actions/checkout@v4
- name: Check execution
- name: Check C code format
run: |
scripts/opentitan/ot-format.sh --ci -i
lint-python:
runs-on: ubuntu-latest
steps:
- name: Install tools
run: |
sudo apt-get update &&
sudo apt-get install -y python3-pip
# ubuntu "latest" is too old to require --break-system-packages ...
pip3 install pylint
- name: Check out QEMU
uses: actions/checkout@v4
- name: Lint Python code
run: |
pylint --rcfile scripts/opentitan/.pylintrc -d 'duplicate-code' -d 'fixme' \
scripts/opentitan/*.py python/qemu/jtag/* python/qemu/ot/*
lint-clang:
runs-on: ubuntu-latest
needs: build-clang
Expand Down

0 comments on commit 0196f5e

Please sign in to comment.