ci: Check formatting

This commit is contained in:
James Westman 2022-12-19 12:03:50 -06:00
parent 8fee46ec68
commit 83a7503e3a
No known key found for this signature in database
GPG key ID: CE2DBA0ADB654EA6
2 changed files with 2 additions and 1 deletions

View file

@ -6,6 +6,7 @@ build:
image: registry.gitlab.gnome.org/jwestman/blueprint-compiler
stage: build
script:
- black --check --diff blueprintcompiler tests
- mypy --python-version=3.9 blueprintcompiler
- coverage run -m unittest
- coverage report

View file

@ -2,7 +2,7 @@ FROM fedora:latest
RUN dnf install -y meson python3-pip gtk4-devel gobject-introspection-devel \
libadwaita-devel python3-devel python3-gobject git
RUN pip3 install furo mypy sphinx coverage
RUN pip3 install furo mypy sphinx coverage black
# The version on PyPI is very old and doesn't install. Use the upstream package registry instead.
RUN pip install pythonfuzz --extra-index-url https://gitlab.com/api/v4/projects/19904939/packages/pypi/simple