-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
57 lines (41 loc) · 1.01 KB
/
Makefile
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
SHELL := /bin/bash
all: test
setup:
@echo "Running setup"
poetry install
format:
poetry run ruff format hex_*
update:
@echo "Running setup"
poetry update
lock:
@echo "Running setup"
poetry lock
build:
@echo "Building package"
poetry build
truth:
@echo "Generating source of truth"
poetry install --with truth
poetry run python tests/data/generate_source_of_truth.py
speed_test:
@echo "Running Speed tests"
poetry install --with speed_tests
poetry run python tests/extra/speed_tests/run_speed_tests.py
new-test-candles:
@echo "Generating New Source data"
poetry install --with truth
poetry run python tests/data/generate_new_data.py
test:
@echo "Running Tests"
poetry run pytest -vv --cov=hexital --durations=0
test-all:
@echo "Running Tests"
poetry run coverage run --omit="tests/*" -m pytest -vv --durations=0
poetry run coverage report -m
profile:
poetry run python3 tests/extra/profiling/calc_supertrend.py
poetry run snakeviz prof/
docs:
@echo "Generating Docs"
poetry install --with docs