-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (42 loc) · 884 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
51
52
53
help:
echo HELP
.PHONY: help
install:
poetry install --no-dev --remove-untracked
.PHONY: install
install-dev:
poetry install --remove-untracked
.PHONY: install-dev
clean:
rm -rfv dist
poetry run pyclean --verbose .
.PHONY: clean
fmt:
@echo "Running black formatter"
poetry run black pel tests
@echo "Running isort formatter"
poetry run isort pel tests
.PHONY: fmt
fmt-check:
poetry run black --check pel tests
poetry run isort --check pel tests
.PHONY: fmt-check
pylint: fmt
@echo "Running pylint linter"
poetry run pylint pel tests
.PHONY: pylint
mypy: fmt
@echo "Running mypy linter"
poetry run mypy pel tests
.PHONY: mypy
lint: pylint mypy
.PHONY: lint
pyinstaller:
poetry run pyinstaller --name=pel --onefile --clean --noconfirm pel/console.py
.PHONY: pyinstaller
test:
poetry run pytest
.PHONY: test
vendor:
poetry run python-vendorize
.PHONY: vendor