From 3b22dff988952c3bccd692fa242b9ef12c1fb60d Mon Sep 17 00:00:00 2001 From: James Westman Date: Wed, 23 Feb 2022 14:12:05 -0600 Subject: [PATCH] ci: Enforce code style --- .gitlab-ci.yml | 1 + build-aux/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4356fd0..adbdc6c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,6 +6,7 @@ build: image: registry.gitlab.gnome.org/jwestman/blueprint-compiler stage: build script: + - black --check . - mypy blueprintcompiler - coverage run -m unittest - coverage html diff --git a/build-aux/Dockerfile b/build-aux/Dockerfile index c7c9786..6e30974 100644 --- a/build-aux/Dockerfile +++ b/build-aux/Dockerfile @@ -1,5 +1,5 @@ FROM fedora:latest 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