-
Notifications
You must be signed in to change notification settings - Fork 80
/
Makefile
70 lines (53 loc) · 1.52 KB
/
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
64
65
66
67
68
69
70
lint: isort-check black-check flake8-check mypy-check spell-check imported-deps-check notebooks-check isort-check-examples black-check-examples
isort-check:
isort --skip etna/libs --sl -c etna/
isort --skip etna/libs --sl -c tests/
isort-check-examples:
isort --sl -c examples/**/*.py
black-check:
black --check etna/
black --check tests/
black-check-examples:
black --check examples/**/*.py
flake8-check:
flake8 --exclude etna/libs etna/
flake8 --exclude etna/libs tests/ --select E,W,C,F401,N
mypy-check:
mypy
spell-check:
codespell etna/ *.md tests/ -L mape,hist,lamda
python -m scripts.notebook_codespell
imported-deps-check:
python -m scripts.check_imported_dependencies
notebooks-check:
black --check examples/*.ipynb
format-examples:
isort --sl examples/**/*.py
black examples/**/*.py
format:
isort --skip etna/libs --sl etna/
isort --skip etna/libs --sl tests/
black etna/
black tests/
black examples/*.ipynb
flake8 --exclude etna/libs etna/
flake8 --exclude etna/libs tests/ --select E,W,C,F401,N
mypy
.PHONY: deps/release
deps/release:
@poetry install -E release
.PHONY: release/prerelease
release/prerelease:
@poetry run python -m scripts.release prerelease
.PHONY: release/prepatch
release/prepatch:
@poetry run python -m scripts.release prepatch
.PHONY: release/preminor
release/preminor:
@poetry run python -m scripts.release preminor
.PHONY: release/patch
release/patch:
@poetry run python -m scripts.release patch
.PHONY: release/minor
release/minor:
@poetry run python -m scripts.release minor