-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (35 loc) · 1002 Bytes
/
Makefile
File metadata and controls
47 lines (35 loc) · 1002 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
47
.PHONY: clean-pyc
default: test
clean-pyc:
@find . -iname '*.py[co]' -delete
@find . -iname '__pycache__' -delete
clean-dist:
@rm -rf dist/
@rm -rf build/
@rm -rf *.egg-info
clean: clean-pyc clean-dist
test:
@pytest -vvv
dev: clean
@pip3 install -r requirements.txt
lint: clean
@printf "\n${BLUE}Running Pylint against source and test files...${NC}\n"
@black xkye
@printf "\n${BLUE}Running Flake8 against source and test files...${NC}\n"
@flake8
@printf "\n${BLUE}Running Bandit against source files...${NC}\n"
@bandit -r --ini setup.cfg
@printf "\n${BLUE}Running Pylint against source and test files...${NC}\n"
@pylint --rcfile=setup.cfg **/*.py
dist: clean
@pip3 install -r requirements.txt
@python3 setup.py sdist
@python3 setup.py bdist_wheel
version: dist
@python3 setup.py --version
license: dist
@python3 setup.py --license
testpy: dist
@python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
deploy: dist
@python3 -m twine upload dist/*