Not to Tox (#76582)
This commit is contained in:
@@ -8,4 +8,4 @@ cd "$(dirname "$0")/.."
|
||||
|
||||
echo "Installing development dependencies..."
|
||||
python3 -m pip install wheel --constraint homeassistant/package_constraints.txt
|
||||
python3 -m pip install tox tox-pip-version colorlog pre-commit $(grep mypy requirements_test.txt) $(grep stdlib-list requirements_test.txt) $(grep tqdm requirements_test.txt) $(grep pipdeptree requirements_test.txt) $(grep awesomeversion requirements.txt) --constraint homeassistant/package_constraints.txt --use-deprecated=legacy-resolver
|
||||
python3 -m pip install colorlog pre-commit $(grep mypy requirements_test.txt) $(grep stdlib-list requirements_test.txt) $(grep tqdm requirements_test.txt) $(grep pipdeptree requirements_test.txt) $(grep awesomeversion requirements.txt) --constraint homeassistant/package_constraints.txt --use-deprecated=legacy-resolver
|
||||
|
||||
@@ -8,7 +8,7 @@ echo '================================================='
|
||||
echo '= FILES CHANGED ='
|
||||
echo '================================================='
|
||||
if [ -z "$files" ] ; then
|
||||
echo "No python file changed. Rather use: tox -e lint\n"
|
||||
echo "No python file changed.\n"
|
||||
exit
|
||||
fi
|
||||
printf "%s\n" $files
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
Lazy 'tox' to quickly check if branch is up to PR standards.
|
||||
Quickly check if branch is up to PR standards.
|
||||
|
||||
This is NOT a tox replacement, only a quick check during development.
|
||||
This is NOT a full CI/linting replacement, only a quick check during development.
|
||||
"""
|
||||
import asyncio
|
||||
from collections import namedtuple
|
||||
@@ -214,7 +214,7 @@ async def main():
|
||||
|
||||
print("=============================")
|
||||
if not test_files:
|
||||
print("No test files identified, ideally you should run tox")
|
||||
print("No test files identified")
|
||||
return
|
||||
|
||||
code, _ = await async_exec(
|
||||
@@ -223,7 +223,7 @@ async def main():
|
||||
print("=============================")
|
||||
|
||||
if code == 0:
|
||||
printc(PASS, "Yay! This will most likely pass tox")
|
||||
printc(PASS, "Yay! This will most likely pass CI")
|
||||
else:
|
||||
printc(FAIL, "Tests not passing")
|
||||
|
||||
Reference in New Issue
Block a user