-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (36 loc) · 1.09 KB
/
Makefile
File metadata and controls
50 lines (36 loc) · 1.09 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
44
45
46
47
48
49
50
VENV_DIR ?= .venv
POETRY ?= poetry
POETRY_PYTHON ?= python
.PHONY: all init_env install clean lint format test spell_check
-include .env
export
all: build
init_env:
$(POETRY) env use $(POETRY_PYTHON)
install: init_env
$(POETRY) install
build: install
$(POETRY) build
clean:
$(POETRY) run clean
$(POETRY) env remove --all
lint: install
$(POETRY) run nox -s lint
format: install
$(POETRY) run nox -s format
test: install
$(POETRY) run nox -s test $(if $(PYTHON),--python=$(PYTHON),)
integration_test: install
$(POETRY) run nox -s integration_test $(if $(PYTHON),--python=$(PYTHON),)
coverage: install
$(POETRY) run nox -s coverage
publish: build
$(POETRY) publish -u __token__ -p $(PYPI_TOKEN) --skip-existing
help:
@echo '===================='
@echo 'install - install virtual env and dependencies'
@echo 'clean - clean virtual env and build artifacts'
@echo '-- LINTING --'
@echo 'format - run code formatters'
@echo 'lint - run linters'
@echo 'spell_check - run spell check'