Skip to content

Commit b888977

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

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/build_test.yaml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,25 @@ 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+
pip3 install pylint -U --break-system-packages
91+
- name: Check out QEMU
92+
uses: actions/checkout@v4
93+
- name: Lint Python code
94+
run: |
95+
pylint --rcfile scripts/opentitan/.pylintrc -d 'duplicate-code' -d 'fixme' \
96+
scripts/opentitan/*.py python/qemu/jtag/* python/qemu/ot/*
97+
8398
lint-clang:
8499
runs-on: ubuntu-latest
85100
needs: build-clang

0 commit comments

Comments
 (0)