-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (35 loc) · 809 Bytes
/
Makefile
File metadata and controls
47 lines (35 loc) · 809 Bytes
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
_targets := setup python-version pyenv-info test cover lint run clean
.PHONY: help $(_targets)
.DEFAULT_GOAL := help
version-python: ## Echos the version of Python in use
python --version
help:
@echo Targets: $(_targets)
@false
setup:
poetry install
python-version:
@which python
@python --version
pyenv-info: setup
poetry env info
test: setup
poetry run pytest
cover: setup
poetry run pytest \
--cov=pyth_observer \
--cov-report=html \
--cov-report=term
lint: setup lint.python lint.yaml
lint.python:
poetry run isort pyth_observer/
poetry run black pyth_observer/
poetry run pyright pyth_observer/
poetry run pyflakes pyth_observer/
lint.yaml:
yamllint .
run: setup
poetry run pyth-observer -l debug --network devnet
clean:
poetry env remove --all
rm -rf htmlcov