forked from scanapi/scanapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (37 loc) · 806 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
timestamp = `date -u +'%Y%m%d%H%M%S'`
.PHONY: test
test:
@poetry run pytest --cov=./scanapi --cov-report=xml
.PHONY: black
black:
@echo "running black"
@poetry run black -l 80 --check . --exclude=.venv
.PHONY: flake8
flake8:
@echo "running flake8"
@poetry run flake8 --ignore=E501,W501,E231,W503
.PHONY: mypy
mypy:
@echo "running mypy"
@poetry run mypy scanapi
.PHONY: check
check: black flake8 mypy
.PHONY: change-version
change-version:
@poetry version `poetry version -s | cut -f-3 -d.`.dev$(timestamp)
.PHONY: format
format:
@black -l 80 . --exclude=.venv
.PHONY: install
install:
@poetry install
@poetry run pre-commit install -f -t pre-commit --hook-type commit-msg
.PHONY: sh
sh:
@poetry shell
.PHONY: run
run:
@poetry run scanapi
.PHONY: bandit
bandit:
@bandit -r scanapi