forked from iastro-pt/gpyrn
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (32 loc) · 1.01 KB
/
Makefile
File metadata and controls
40 lines (32 loc) · 1.01 KB
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
.DEFAULT_GOAL := help
.PHONY: help
help:
@echo "Please use 'make <target>' where <target> is one of:"
@echo ""
@echo " format-check runs the formatting tools, only checking for errors"
@echo " format-fix runs the formatting tools, fixing errors where possible"
@echo " lint-check runs the linting tools, only checking for errors"
@echo " type-check runs the static type checker, only checking for errors"
@echo " unit-test runs the unit tests"
@echo " docstring-check runs the docstring checker"
@echo ""
.PHONY: format-check
format-check:
black --check gpyrn/ tests/
isort --check-only gpyrn/ tests/
.PHONY: format-fix
format-fix:
black gpyrn/ tests/
isort gpyrn/ tests/
.PHONY: lint-check
lint-check:
flake8 --statistics gpyrn/ tests/
.PHONY: type-check
type-check:
mypy gpyrn/ tests/
.PHONY: unit-test
unit-test:
pytest --cov-report term-missing --cov=gpyrn -vv
.PHONY: docstring-check
docstring-check:
pydocstyle gpyrn/