-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
67 lines (54 loc) · 1.18 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
default:
just --list
name := "bneqpri"
alias i := install
alias u := update
alias f := format
alias l := lint
alias t := unit-test
alias b := build
# alias p := publish
# install dependencies
install:
poetry install
# update dependencies
update:
poetry update
# format the code
format:
poetry run black {{name}}
poetry run black test
# run mypy static type analysis
types:
poetry run mypy {{name}}
# lint the code
lint:
poetry run black {{name}} test --check --exclude env
poetry run flake8 {{name}} test
poetry run mypy {{name}} test
examples:
poetry run bash ./examples.sh
# run all unit tests
unit-test *flags:
poetry run python -m pytest -v \
test/unit \
--disable-warnings \
{{flags}}
# run all solver tests
solver-test *flags:
poetry run python -m pytest -v \
test/solver \
--disable-warnings \
{{flags}}
# run all integration tests
integration-test *flags:
poetry run python -m pytest -v \
test/integration \
--disable-warnings \
{{flags}}
# build package
build:
poetry build
# publish the package
publish *flags:
poetry publish {{flags}}