-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (41 loc) · 915 Bytes
/
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
.PHONY: all
all: clean setup test lint mypy
.PHONY: setup
setup: pyproject.toml
poetry check
poetry install
.PHONY: test
test:
poetry run pytest --cov=arc_to_sqlite/ --cov-report=xml
.PHONY: lint
lint:
poetry run black --check .
poetry run isort --check .
poetry run ruff check .
.PHONY: lintfix
lintfix:
poetry run black .
poetry run isort .
poetry run ruff check . --fix
.PHONY: mypy
mypy:
poetry run mypy arc_to_sqlite/
.PHONY: clean
clean:
rm -fr ./.mypy_cache
rm -fr ./.pytest_cache
rm -fr ./.ruff_cache
rm -fr ./dist
rm -f .coverage
rm -f coverage.xml
find . -type f -name '*.py[co]' -delete -o -type d -name __pycache__ -delete
.PHONY: arc.db
arc.db:
poetry run arc-to-sqlite arc.db \
~/Library/Mobile\ Documents/iCloud\~com\~bigpaua\~LearnerCoacher/
.PHONY: datasette
datasette:
poetry run datasette serve arc.db \
--metadata metadata.yml
.PHONY: ci
ci: setup test lint mypy