mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
ci: Check formatting
This commit is contained in:
parent
8fee46ec68
commit
83a7503e3a
2 changed files with 2 additions and 1 deletions
|
@ -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 --diff blueprintcompiler tests
|
||||||
- mypy --python-version=3.9 blueprintcompiler
|
- mypy --python-version=3.9 blueprintcompiler
|
||||||
- coverage run -m unittest
|
- coverage run -m unittest
|
||||||
- coverage report
|
- coverage report
|
||||||
|
|
|
@ -2,7 +2,7 @@ FROM fedora:latest
|
||||||
|
|
||||||
RUN dnf install -y meson python3-pip gtk4-devel gobject-introspection-devel \
|
RUN dnf install -y meson python3-pip gtk4-devel gobject-introspection-devel \
|
||||||
libadwaita-devel python3-devel python3-gobject git
|
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.
|
# 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
|
RUN pip install pythonfuzz --extra-index-url https://gitlab.com/api/v4/projects/19904939/packages/pypi/simple
|
Loading…
Add table
Add a link
Reference in a new issue