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
|
||||
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
|
||||
|
|
4
justfile
4
justfile
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue