diff options
author | Thomas Haller <thaller@redhat.com> | 2023-07-13 07:49:28 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2023-07-25 11:33:01 (GMT) |
commit | 02e0fd3fab42d7f37a78ecadc688e800e0014a7d (patch) | |
tree | 57d58159655eee90bf6342dde59c78aca77deb4a | |
parent | 2dd538950211ed8efaa8133f7bc41e0a9fc77fad (diff) | |
download | libnl-02e0fd3fab42d7f37a78ecadc688e800e0014a7d.zip libnl-02e0fd3fab42d7f37a78ecadc688e800e0014a7d.tar.gz libnl-02e0fd3fab42d7f37a78ecadc688e800e0014a7d.tar.bz2 |
github: check python-black code formatting in github actions
Note that the formatting depends on the used black version.
The authoritative black version is always the one used by
the github CI check.
Currently that is black==22.12.0.
-rw-r--r-- | .github/workflows/ci.yml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eb240aa..3457095 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,6 +36,12 @@ jobs: python3 -m pip install flake8 flake8 . --count --select=E703,E9,F63,F7,F82,Y --show-source --statistics + - name: Code formatting with Python black + if: ${{ matrix.cc == 'gcc' }} + run: | + python3 -m pip install black==22.12.0 + black --check . + - name: Build run: | set -x |