diff options
author | John Levon <levon@movementarian.org> | 2021-10-22 13:56:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-22 13:56:38 +0100 |
commit | 7fd786fa7f0023e7bf74618c6ebc3999f5736bc6 (patch) | |
tree | 79a152071fe31d3f6bd0b5e1fbecabc310e3c895 /.github | |
parent | 3111d8ec3ed5557b64434778fb2596908235bfa2 (diff) | |
download | libvfio-user-7fd786fa7f0023e7bf74618c6ebc3999f5736bc6.zip libvfio-user-7fd786fa7f0023e7bf74618c6ebc3999f5736bc6.tar.gz libvfio-user-7fd786fa7f0023e7bf74618c6ebc3999f5736bc6.tar.bz2 |
run python code through flake8 (#613)
Aside from general style goodness, this found a couple of accidental
re-definitions, so it's worth taking the pain now.
Also, only run rstlint as part of pre-push.
Signed-off-by: John Levon <john.levon@nutanix.com>
Reviewed-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/pull_request.yml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index c066619..b7ed789 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -10,7 +10,7 @@ jobs: run: | sudo apt-get update sudo apt-get -y install libjson-c-dev libcmocka-dev clang valgrind \ - python3-pytest debianutils + python3-pytest debianutils flake8 make pre-push VERBOSE=1 ubuntu-18: timeout-minutes: 5 @@ -19,6 +19,7 @@ jobs: - uses: actions/checkout@v2 - name: pre-push run: | + # NB: no working flake8 sudo apt update sudo apt-get -y install libjson-c-dev libcmocka-dev clang valgrind \ python3-pytest debianutils @@ -31,6 +32,7 @@ jobs: - uses: actions/checkout@v2 - name: pre-push run: | + # NB: no working flake8 yum -y install make gcc-4.8.5 epel-release pciutils yum -y install clang cmake json-c-devel libcmocka-devel \ openssl-devel valgrind python36-pytest which @@ -45,5 +47,5 @@ jobs: run: | dnf -y install --releasever=34 \ gcc make clang cmake json-c-devel libcmocka-devel openssl-devel \ - pciutils diffutils valgrind python3-pytest which + pciutils diffutils valgrind python3-pytest python3-flake8 which make pre-push VERBOSE=1 |