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:
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 .

View file

@ -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