Add CI job "black" for code format checks

The CI job will fail, if a file needs to be reformatted.
Only files already well formatted will be checked at the moment.
This commit is contained in:
FestplattenSchnitzel 2021-08-17 16:36:26 +02:00
parent c71c2465d3
commit ef20e1b329
1 changed files with 30 additions and 0 deletions

View File

@ -217,6 +217,36 @@ lint_mypy:
- mypy
black:
image: python:slim
script:
- pip install black
- black --check --diff --color --skip-string-normalization
examples/fdroid_extract_repo_pubkey.py
examples/makebuildserver.config.py
fdroid
fdroidserver/exception.py
fdroidserver/gpgsign.py
fdroidserver/lint.py
fdroidserver/mirror.py
fdroidserver/net.py
fdroidserver/readmeta.py
fdroidserver/signindex.py
fdroidserver/tail.py
tests/build.TestCase
tests/deploy.TestCase
tests/exception.TestCase
tests/import.TestCase
tests/import_proxy.py
tests/init.TestCase
tests/install.TestCase
tests/key-tricks.py
tests/lint.TestCase
tests/metadata.TestCase
tests/ndk-release-checksums.py
tests/rewritemeta.TestCase
fedora_latest:
image: fedora:latest
only: