forked from Neoteroi/GuardPost
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
63 lines (37 loc) · 935 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
.PHONY: release test
lint-types:
mypy guardpost --explicit-package-bases
artifacts: test
python -m build
clean:
rm -rf dist/
prepforbuild:
pip install build
build:
python -m build
test-release:
twine upload --repository testpypi dist/*
release:
twine upload --repository pypi dist/*
test:
python -m pytest
test-cov:
python -m pytest --cov-report html --cov=guardpost tests/
lint: check-flake8 check-isort check-black
format:
@isort guardpost 2>&1
@isort tests 2>&1
@black guardpost 2>&1
@black tests 2>&1
check-flake8:
@echo "$(BOLD)Checking flake8$(RESET)"
@flake8 guardpost 2>&1
@flake8 tests 2>&1
check-isort:
@echo "$(BOLD)Checking isort$(RESET)"
@isort --check-only guardpost 2>&1
@isort --check-only tests 2>&1
check-black: ## Run the black tool in check mode only (won't modify files)
@echo "$(BOLD)Checking black$(RESET)"
@black --check guardpost 2>&1
@black --check tests 2>&1