forked from minio/minio-py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (24 loc) · 1.03 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
.PHONY: examples tests publish
check:
@pip install --user --upgrade pylint
@if python --version | grep -qi 'python 3'; then pylint --reports=no --score=no --disable=R0401 minio/*py; fi
@if python --version | grep -qi 'python 3'; then pylint --reports=no --score=no minio/credentials minio/select tests/functional; fi
@isort --diff --recursive .
@pip install --user --upgrade autopep8
@autopep8 --diff --exit-code *.py
@find minio -name "*.py" -exec autopep8 --diff --exit-code {} +
@find tests -name "*.py" -exec autopep8 --diff --exit-code {} +
@find examples -name "*.py" -exec autopep8 --diff --exit-code {} +
apply:
@pip install --user --upgrade pylint
@isort --recursive .
@pip install --user --upgrade autopep8
@autopep8 --in-place *.py
@find minio -name "*.py" -exec autopep8 --in-place {} +
@find tests -name "*.py" -exec autopep8 --in-place {} +
@find examples -name "*.py" -exec autopep8 --in-place {} +
publish:
python setup.py register
python setup.py sdist bdist bdist_wheel upload
tests:
python setup.py nosetests