mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
22 lines
318 B
Makefile
22 lines
318 B
Makefile
default: black isort
|
|
|
|
# Format with black formatter
|
|
black:
|
|
black ./
|
|
|
|
# Sort imports using isort
|
|
isort:
|
|
isort ./ --profile black
|
|
|
|
|
|
# Run all tests
|
|
test: mypy unittest
|
|
|
|
# Check typings with mypy
|
|
mypy:
|
|
mypy --python-version=3.9 blueprintcompiler/
|
|
|
|
# Test code with unittest
|
|
unittest:
|
|
python3 -m unittest
|
|
|