Python version in Makefile,script; typo

This commit is contained in:
DarkCat09 2022-12-25 18:23:55 +04:00
parent e61295e242
commit feff4aaca1
2 changed files with 12 additions and 12 deletions

View file

@ -1,8 +1,8 @@
build: build:
python -m build python3 -m build
upload: upload:
python -m twine upload dist/* python3 -m twine upload dist/*
clean: clean:
rm -rf dist python_aternos.egg-info rm -rf dist python_aternos.egg-info
@ -12,14 +12,14 @@ clean:
rm -rf site .mypy_cache rm -rf site .mypy_cache
test: test:
python -m unittest discover -v ./tests python3 -m unittest discover -v ./tests
check: check:
python -m mypy . python3 -m mypy .
python -m pylint ./python_aternos python3 -m pylint ./python_aternos
fullcheck: fullcheck:
chmod +x check.sh; bash check.sh chmod +x check.sh; bash check.sh
format: format:
python -m autopep8 -r --in-place . python3 -m autopep8 -r --in-place .

View file

@ -33,27 +33,27 @@ display_failed() {
joined=`echo -n "$failed" | sed 's/, $//'` joined=`echo -n "$failed" | sed 's/, $//'`
echo -e "$FAILED[!] View output of: $joined$RESET" echo -e "$FAILED[!] View output of: $joined$RESET"
else else
echo -e "$SUCCESS[V] All checks are passed successfully$RESET" echo -e "$SUCCESS[V] All checks were passed successfully$RESET"
fi fi
} }
title 'Checking needed modules...' title 'Checking needed modules...'
pip install pycodestyle mypy pylint python3 -m pip install pycodestyle mypy pylint
title 'Running unit tests...' title 'Running unit tests...'
python -m unittest discover -v ./tests python3 -m unittest discover -v ./tests
error_msg $? 'unittest' error_msg $? 'unittest'
title 'Running pep8 checker...' title 'Running pep8 checker...'
python -m pycodestyle . python3 -m pycodestyle .
error_msg $? 'pep8' error_msg $? 'pep8'
title 'Running mypy checker...' title 'Running mypy checker...'
python -m mypy . python3 -m mypy .
error_msg $? 'mypy' error_msg $? 'mypy'
title 'Running pylint checker...' title 'Running pylint checker...'
python -m pylint ./python_aternos python3 -m pylint ./python_aternos
error_msg $? 'pylint' error_msg $? 'pylint'
display_failed display_failed