forked from fracdiff/fracdiff
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
54 lines (40 loc) · 929 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
PROJECT_NAME := fracdiff
RUN := poetry run
.PHONY: check
check: test lint type
.PHONY: install
install:
@poetry install --extras torch scikit-learn
.PHONY: test
test: test-doctest test-pytest
.PHONY: test-doctest
test-doctest:
$(RUN) pytest --doctest-modules $(PROJECT_NAME)
.PHONY: test-pytest
test-pytest:
$(RUN) pytest --doctest-modules --cov=$(PROJECT_NAME) tests
.PHONY: lint
lint: lint-black lint-isort
.PHONY: lint-black
lint-black:
$(RUN) python3 -m black --check --quiet .
.PHONY: lint-isort
lint-isort:
$(RUN) isort --check --force-single-line-imports --quiet .
.PHONY: format
format: format-black format-isort
.PHONY: format-black
format-black:
$(RUN) black --quiet .
.PHONY: format-isort
format-isort:
$(RUN) isort --force-single-line-imports --quiet .
.PHONY: doc
doc:
@cd docs && make html
.PHONY: type
type:
$(RUN) mypy $(PROJECT_NAME)
.PHONY: publish
publish:
@gh workflow run publish.yml