-
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathMakefile
More file actions
22 lines (17 loc) · 523 Bytes
/
Copy pathMakefile
File metadata and controls
22 lines (17 loc) · 523 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
MODULE := weconnect_mqtt.weconnect_mqtt
BLUE='\033[0;34m'
NC='\033[0m' # No Color
run:
@python -m $(MODULE)
test:
@pytest
lint:
@echo "\n${BLUE}Running Pylint against source and test files...${NC}\n"
@pylint --rcfile=setup.cfg **/*.py
@echo "\n${BLUE}Running Flake8 against source and test files...${NC}\n"
@flake8
@echo "\n${BLUE}Running Bandit against source files...${NC}\n"
@bandit -r --ini setup.cfg
clean:
rm -rf .pytest_cache .coverage .pytest_cache coverage.xml coverage_html_report
.PHONY: clean test