Skip to content

Commit 0196f5e

Browse files
committed
[ot] .github: add Python linter
Signed-off-by: Emmanuel Blot <eblot@rivosinc.com>
1 parent c5eeebe commit 0196f5e

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/build_test.yaml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,26 @@ jobs:
7676
sudo apt-get install -y clang-format-18
7777
- name: Check out QEMU
7878
uses: actions/checkout@v4
79-
- name: Check execution
79+
- name: Check C code format
8080
run: |
8181
scripts/opentitan/ot-format.sh --ci -i
8282
83+
lint-python:
84+
runs-on: ubuntu-latest
85+
steps:
86+
- name: Install tools
87+
run: |
88+
sudo apt-get update &&
89+
sudo apt-get install -y python3-pip
90+
# ubuntu "latest" is too old to require --break-system-packages ...
91+
pip3 install pylint
92+
- name: Check out QEMU
93+
uses: actions/checkout@v4
94+
- name: Lint Python code
95+
run: |
96+
pylint --rcfile scripts/opentitan/.pylintrc -d 'duplicate-code' -d 'fixme' \
97+
scripts/opentitan/*.py python/qemu/jtag/* python/qemu/ot/*
98+
8399
lint-clang:
84100
runs-on: ubuntu-latest
85101
needs: build-clang

0 commit comments

Comments
 (0)