-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
48 lines (37 loc) · 836 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
.PHONY:
default: help
.PHONY: help
help:
@echo help -- display this help
@echo black -- apply black code formatter
@echo lint -- run linters
@echo test -- run tests through pytest
@echo isort -- run isort
.PHONY: black
black:
black -l 100 .
.PHONY: snakefmt
snakefmt:
snakefmt -l 100 . --include '(\.smk$$|\.rules$$|^Snakefile)'
.PHONY: lint
lint: flake8 lint-black lint-isort
.PHONY: isort
isort:
isort --force-sort-within-sections --profile=black .
.PHONY: flake8
flake8:
flake8
.PHONY: lint-black
lint-black:
black -l 100 --check .
.PHONY: lint-snakefmt
lint-snakefmt:
snakefmt -l 100 . --include '(\.smk$$|\.rules$$|^Snakefile)' --check
.PHONY: lint-isort
lint-isort:
isort --force-sort-within-sections --profile=black --check .
test:
py.test
coverage:
coverage report
coverage html