summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2023-07-13 07:49:28 (GMT)
committerThomas Haller <thaller@redhat.com>2023-07-25 11:33:01 (GMT)
commit02e0fd3fab42d7f37a78ecadc688e800e0014a7d (patch)
tree57d58159655eee90bf6342dde59c78aca77deb4a
parent2dd538950211ed8efaa8133f7bc41e0a9fc77fad (diff)
downloadlibnl-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.yml6
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