-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (31 loc) · 849 Bytes
/
Makefile
File metadata and controls
42 lines (31 loc) · 849 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
SHELL:=/usr/bin/env bash -O globstar
.SHELLFLAGS = -ec
.PHONY: build clean deep-clean format install lint python-pre-commit reinstall-poetry test
build:
poetry build
clean:
rm -rf dist
rm -rf htmlcov
rm -rf .coverage
deep-clean: clean
rm -rf .venv
format:
poetry run black src tests
poetry run isort src tests
install:
poetry install && \
poetry run pre-commit install
lint:
poetry run flake8 src tests
poetry run black --check src tests
poetry run isort --check-only src tests
python-pre-commit: lint
poetry lock
poetry check
reinstall-poetry:
./.github/scripts/reinstall-poetry.sh
test: build
poetry run python -m coverage run --data-file=.coverage/coverage -m pytest tests && \
poetry run python -m coverage xml --data-file=.coverage/coverage -o .coverage/info.xml
%:
@$(MAKE) -f /usr/local/share/eps/Mk/common.mk $@