ci: Enforce code style

This commit is contained in:
James Westman 2022-02-23 14:12:05 -06:00
parent af03c2ac0f
commit 3b22dff988
2 changed files with 2 additions and 1 deletions

View file

@ -6,6 +6,7 @@ build:
image: registry.gitlab.gnome.org/jwestman/blueprint-compiler image: registry.gitlab.gnome.org/jwestman/blueprint-compiler
stage: build stage: build
script: script:
- black --check .
- mypy blueprintcompiler - mypy blueprintcompiler
- coverage run -m unittest - coverage run -m unittest
- coverage html - coverage html

View file

@ -1,5 +1,5 @@
FROM fedora:latest FROM fedora:latest
RUN dnf install -y meson python3-pip gtk4-devel gobject-introspection-devel libadwaita-devel RUN dnf install -y meson python3-pip gtk4-devel gobject-introspection-devel libadwaita-devel
RUN pip3 install furo mypy sphinx coverage RUN pip3 install furo mypy sphinx coverage black
RUN dnf install -y git RUN dnf install -y git