-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (32 loc) · 856 Bytes
/
Makefile
File metadata and controls
46 lines (32 loc) · 856 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
.DEFAULT_GOAL=help
.POETRY=python3.11 -m poetry
define HELP_BODY
Please use 'make [target]'. Available targets:
help Print this message
Development
setup Installs poetry app dependencies and environment.
test Run tests, use with args=[...] to pass arguments to pytest
fmt Apply code formatters.
lint Run code linters.
clean Remove all build artifacts.
endef
.PHONY: help
help:
@: $(info $(HELP_BODY))
.PHONY: setup
setup:
$(.POETRY) install --with dev
.PHONY: test
test:
$(.POETRY) run pytest lib/tests $(args)
.PHONY: fmt
fmt:
$(.POETRY) run ruff check --fix lib
$(.POETRY) run ruff format lib
.PHONY: lint
lint:
$(.POETRY) run ruff check lib
$(.POETRY) run ruff format --check lib
.PHONY: clean
clean:
$(.POETRY) env remove --all