forked from radiantlogicinc/fastworkflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
31 lines (25 loc) · 647 Bytes
/
makefile
File metadata and controls
31 lines (25 loc) · 647 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
SHELL = /bin/bash
.EXPORT_ALL_VARIABLES:
.PHONY: gen-env lint publish-testpypi publish
gen-env:
chmod +x ./gen-env.sh
./gen-env.sh
include ./.env
lint:
py3clean .
isort .
black .
flake8 . --ignore E501,E122,W503,E402,F401
pylint --recursive=y .
mypy --install-types --non-interactive .
mypy .
bandit -c pyproject.toml -r .
publish-testpypi: gen-env
poetry config repositories.testpypi https://test.pypi.org/legacy/
poetry config pypi-token.testpypi $(TESTPYPI_ACCESS_TOKEN)
poetry build
poetry publish --repository testpypi
publish: gen-env
poetry config pypi-token.pypi $(PYPI_ACCESS_TOKEN)
poetry build
poetry publish