-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (28 loc) · 731 Bytes
/
Copy pathMakefile
File metadata and controls
47 lines (28 loc) · 731 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
.PHONY: build publish publish-test
# ==================== publish ====================
build:
@poetry build
publish:
@poetry publish
publish-test:
@poetry publish -r testpypi
# ==================== test ====================
.PHONY: test
test:
@poetry run pytest
# ==================== linter ====================
SOURCE_DIR:=pixela_letters tests
.PHONY: fix black isort flake8
fix: black isort flake8
black:
@poetry run black ${SOURCE_DIR}
isort:
@poetry run isort ${SOURCE_DIR}
flake8:
@poetry run pflake8 ${SOURCE_DIR}
.PHONY: check check-black check-isort
check: check-black check-isort flake8
check-black:
@poetry run black --check ${SOURCE_DIR}
check-isort:
@poetry run isort --check ${SOURCE_DIR}