diff --git a/Makefile b/Makefile index 8857c08..e0dca50 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,8 @@ build: - python -m build + python3 -m build upload: - python -m twine upload dist/* + python3 -m twine upload dist/* clean: rm -rf dist python_aternos.egg-info @@ -12,14 +12,14 @@ clean: rm -rf site .mypy_cache test: - python -m unittest discover -v ./tests + python3 -m unittest discover -v ./tests check: - python -m mypy . - python -m pylint ./python_aternos + python3 -m mypy . + python3 -m pylint ./python_aternos fullcheck: chmod +x check.sh; bash check.sh format: - python -m autopep8 -r --in-place . + python3 -m autopep8 -r --in-place . diff --git a/check.sh b/check.sh index 083e370..4cb2838 100755 --- a/check.sh +++ b/check.sh @@ -33,27 +33,27 @@ display_failed() { joined=`echo -n "$failed" | sed 's/, $//'` echo -e "$FAILED[!] View output of: $joined$RESET" else - echo -e "$SUCCESS[V] All checks are passed successfully$RESET" + echo -e "$SUCCESS[V] All checks were passed successfully$RESET" fi } title 'Checking needed modules...' -pip install pycodestyle mypy pylint +python3 -m pip install pycodestyle mypy pylint title 'Running unit tests...' -python -m unittest discover -v ./tests +python3 -m unittest discover -v ./tests error_msg $? 'unittest' title 'Running pep8 checker...' -python -m pycodestyle . +python3 -m pycodestyle . error_msg $? 'pep8' title 'Running mypy checker...' -python -m mypy . +python3 -m mypy . error_msg $? 'mypy' title 'Running pylint checker...' -python -m pylint ./python_aternos +python3 -m pylint ./python_aternos error_msg $? 'pylint' display_failed