-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
55 lines (42 loc) · 1.31 KB
/
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
54
55
.PHONY: install-dev
install-dev:
-python3 -m pip install -e planship_openapi_gen
-python3 -m pip install -e planship
.PHONY: build
build:
-rm -rf planship_openapi_gen/dist planship/dist planship_openapi_gen/build planship/build
-python3 -m build planship_openapi_gen
-python3 -m build planship
.PHONY: deploy
deploy:
-twine upload planship_openapi_gen/dist/*
-twine upload planship/dist/*
.PHONY: test-deploy
test-deploy: build
-twine upload --repository testpypi planship_openapi_gen/dist/*
-twine upload --repository testpypi planship/dist/*
.PHONY: isort
isort: ## Run isort on the package.
-isort --check-only planship
.PHONY: mypy
mypy: ## Run mypy on the package.
-mypy planship
.PHONY: black
black: ## Run black on the package.
-black planship --check
.PHONY: isort-autofix
isort-autofix: ## Run isort on the package.
-isort planship
.PHONY: black-autofix
black-autofix: ## Run black on the package.
-black planship
.PHONY: flake8
flake8: ## Run flake8 on the package.
-flake8 planship --exclude=models.py
.PHONY: autoflake
autoflake: ## Run flake8 on the package.
-autoflake --remove-all-unused-imports --recursive --remove-unused-variables --in-place planship --exclude=__init__.py,models.py
.PHONY: lint
lint: mypy black isort flake8
.PHONY: format
format: autoflake black-autofix isort-autofix