forked from austin-mroz/SMORES
-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
41 lines (34 loc) · 837 Bytes
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# list available recipes
default:
@just --list
# build the docs
docs:
rm -rf docs/build docs/source/_autosummary
make -C docs html
echo Docs are in $PWD/docs/build/html/index.html
# apply formatters to the code
fix:
black .
isort .
# check the code for errors
check:
#!/usr/bin/env bash
error=0
trap error=1 ERR
echo
( set -x; black --check . )
echo
( set -x; isort --check . )
echo
( set -x; flake8 . )
echo
( set -x; mypy --exclude validation . )
echo
( set -x; mypy --explicit-package-bases validation )
echo
( set -x; pytest )
test $error = 0
# build the docker testing environment
build-testing-environment:
pip-compile -o docker_testing_environment/requirements.txt --extra dev pyproject.toml
docker image build -t smores-testing-environment:latest docker_testing_environment