This repository was archived by the owner on Nov 1, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (30 loc) · 1.12 KB
/
Makefile
File metadata and controls
43 lines (30 loc) · 1.12 KB
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
#
# Makefile
#
include default.mk
SRC = owid tests
# watch:
# poetry run watchmedo shell-command -c 'clear; make unittest' --recursive --drop .
report: report-coverage report-linting report-server-launch
@poetry run python -m http.server .reports/
check-typing: .venv
@echo '==> Checking types'
poetry run mypy --strict -p owid -p tests
report-coverage: .venv
@echo '==> Unit testing with coverage'
poetry run pytest --cov=owid --cov-report=term-missing --cov-report=html:.reports/coverage --cov-report=xml tests
report-linting: .venv
@echo '==> Linting'
@poetry run flake8 --format=html --htmldir=.reports/linting owid || true
report-server-launch: .venv
@echo '==> Showing reports'
@poetry run python -m http.server --directory .reports/
watch: .venv
@echo '==> Watching for changes and re-running tests'
poetry run watchmedo shell-command -c 'clear; make check-formatting lint check-typing coverage' --recursive --drop .
bump: .venv
@echo '==> Bumping version'
poetry run bump2version --no-tag --no-commit $(filter-out $@, $(MAKECMDGOALS))
lab: .venv
@echo '==> Starting Jupyter server'
poetry run jupyter lab