mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Apply isort and black formatting everywhere
This commit is contained in:
parent
80aaee374d
commit
9cfacb9898
2 changed files with 5 additions and 5 deletions
|
@ -6,9 +6,9 @@ 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
|
- black --check --diff ./ tests
|
||||||
- isort --check --diff --profile black blueprintcompiler tests
|
- isort --check --diff --profile black ./ tests
|
||||||
- mypy --python-version=3.9 blueprintcompiler
|
- mypy --python-version=3.9 blueprintcompiler/
|
||||||
- G_DEBUG=fatal-warnings xvfb-run coverage run -m unittest
|
- G_DEBUG=fatal-warnings xvfb-run coverage run -m unittest
|
||||||
- coverage report
|
- coverage report
|
||||||
- coverage html
|
- coverage html
|
||||||
|
|
4
justfile
4
justfile
|
@ -2,11 +2,11 @@ default: black isort
|
||||||
|
|
||||||
# Format with black formatter
|
# Format with black formatter
|
||||||
black:
|
black:
|
||||||
black blueprintcompiler/
|
black ./
|
||||||
|
|
||||||
# Sort imports using isort
|
# Sort imports using isort
|
||||||
isort:
|
isort:
|
||||||
isort blueprintcompiler/ --profile black
|
isort ./ --profile black
|
||||||
|
|
||||||
|
|
||||||
# Run all tests
|
# Run all tests
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue