forked from minio/minio-py
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
23 lines (19 loc) · 655 Bytes
/
Copy pathMakefile
File metadata and controls
23 lines (19 loc) · 655 Bytes
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 --break-system-packages --user --upgrade autopep8 certifi pytest pylint urllib3 argon2-cffi pycryptodome typing-extensions mypy
check: getdeps
@echo "Running checks"
@pylint --reports=no --score=no --disable=R0401,R0801 minio/*py minio/credentials tests/functional
@isort --diff .
@find . -name "*.py" -exec autopep8 --diff --exit-code {} +
@mypy minio
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