forked from tinkoff-ai/etna
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
60 lines (46 loc) · 1.3 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
lint: isort-check black-check flake8-check mypy-check spell-check imported-deps-check notebooks-check
isort-check:
isort --skip etna/libs --sl -c etna/
isort --skip etna/libs --sl -c tests/
black-check:
black --check etna/
black --check tests/
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
python -m scripts.notebook_codespell
imported-deps-check:
python -m scripts.check_imported_dependencies
notebooks-check:
black --check examples/*.ipynb
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