-
Notifications
You must be signed in to change notification settings - Fork 58
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (29 loc) · 725 Bytes
/
Makefile
File metadata and controls
38 lines (29 loc) · 725 Bytes
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
clean:
rm -rf dist build *.egg-info
find . -name ".pyc" -delete
upload: clean
python setup.py sdist bdist_wheel
twine upload -u krukov dist/*
LENGTH=120
.PHONY: format
format: black isort
.PHONY: pylint
pylint:
pylint amocrm/v2 --reports=n --max-line-length=$(LENGTH)
.PHONY: isort
isort:
@echo -n "Run isort"
isort -rc amocrm/v2 tests
.PHONY: black
black:
@echo -n "Run black"
black -l $(LENGTH) amocrm/v2 tests
.PHONY: check-isort
check-isort:
isort --lines $(LENGTH) -vb -rc --check-only -df amocrm/v2 tests
.PHONY: check-styles
check-styles:
pycodestyle amocrm/v2 tests --max-line-length=$(LENGTH) --format pylint
.PHONY: check-black
check-black:
black --check --diff -v -l $(LENGTH) amocrm/v2 tests