Add justfile

This commit is contained in:
gregorni 2023-10-26 23:45:34 +00:00 committed by James Westman
parent 09bed9a9f5
commit 9543b78138

22
justfile Normal file
View file

@ -0,0 +1,22 @@
default: black isort
# Format with black formatter
black:
black blueprintcompiler/
# Sort imports using isort
isort:
isort blueprintcompiler/ --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