Apply isort and black formatting everywhere

This commit is contained in:
gregorni 2023-12-13 01:36:18 +00:00 committed by James Westman
parent 80aaee374d
commit 9cfacb9898
2 changed files with 5 additions and 5 deletions

View file

@ -6,9 +6,9 @@ build:
image: registry.gitlab.gnome.org/jwestman/blueprint-compiler
stage: build
script:
- black --check --diff blueprintcompiler tests
- isort --check --diff --profile black blueprintcompiler tests
- mypy --python-version=3.9 blueprintcompiler
- black --check --diff ./ tests
- isort --check --diff --profile black ./ tests
- mypy --python-version=3.9 blueprintcompiler/
- G_DEBUG=fatal-warnings xvfb-run coverage run -m unittest
- coverage report
- coverage html

View file

@ -2,11 +2,11 @@ default: black isort
# Format with black formatter
black:
black blueprintcompiler/
black ./
# Sort imports using isort
isort:
isort blueprintcompiler/ --profile black
isort ./ --profile black
# Run all tests