-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
42 lines (35 loc) · 757 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
SHELL := bash
.PHONY: install
install:
poetry install
.PHONY: test
test:
poetry run pytest -vv --cov=dojo_toolkit --cov-report=term-missing
.PHONY: lint
lint:
poetry check --lock
poetry run ruff check .
poetry run ruff format . --check
.PHONY: format
format:
poetry run ruff check . --fix
poetry run ruff format .
.PHONY: build
build: clean
poetry build
.PHONY: clean
clean: clean-eggs clean-build
@find . -iname '*.pyc' -delete
@find . -iname '*.pyo' -delete
@find . -iname '*~' -delete
@find . -iname '*.swp' -delete
@find . -iname '__pycache__' -delete
.PHONY: clean-eggs
clean-eggs:
@find . -name '*.egg' -print0|xargs -0 rm -rf --
@rm -rf .eggs/
.PHONY: clean-build
clean-build:
@rm -fr build/
@rm -fr dist/
@rm -fr *.egg-info