forked from minio/minio-py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
23 lines (19 loc) · 608 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
.PHONY: default
default: tests
getdeps:
@echo "Installing required dependencies"
@pip install --user --upgrade autopep8 certifi mock pytest pylint urllib3
check: getdeps
@echo "Running checks"
@pylint --reports=no --score=no --disable=R0401,R0801 minio/*py
@pylint --reports=no --score=no minio/credentials tests/functional
@isort --diff .
@find . -name "*.py" -exec autopep8 --diff --exit-code {} +
apply: getdeps
@isort .
@find . -name "*.py" -exec autopep8 --in-place {} +
tests: check
@echo "Running unit tests"
@pytest
@echo "Running functional tests"
@env bash run_functional_tests.sh