mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Add justfile
This commit is contained in:
parent
09bed9a9f5
commit
9543b78138
1 changed files with 22 additions and 0 deletions
22
justfile
Normal file
22
justfile
Normal 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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue