From 9543b7813815b59834d85c114a0fca5488dd4593 Mon Sep 17 00:00:00 2001 From: gregorni Date: Thu, 26 Oct 2023 23:45:34 +0000 Subject: [PATCH] Add justfile --- justfile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 justfile diff --git a/justfile b/justfile new file mode 100644 index 0000000..5c956db --- /dev/null +++ b/justfile @@ -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 +