Skip to content

Commit 4ea9926

Browse files
authored
1 parent 3738135 commit 4ea9926

File tree

7 files changed

+7
-57
lines changed

7 files changed

+7
-57
lines changed

.dockerignore

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ docs
99
.vscode
1010

1111
# Test related files
12-
.tox
1312
tests
1413

1514
# Other virtualization methods

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ pip-log.txt
5858

5959
# Unit test / coverage reports
6060
.coverage
61-
.tox
6261
coverage.xml
6362
nosetests.xml
6463
htmlcov/

script/bootstrap

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ cd "$(dirname "$0")/.."
88

99
echo "Installing development dependencies..."
1010
python3 -m pip install wheel --constraint homeassistant/package_constraints.txt
11-
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
11+
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

script/lint

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ echo '================================================='
88
echo '= FILES CHANGED ='
99
echo '================================================='
1010
if [ -z "$files" ] ; then
11-
echo "No python file changed. Rather use: tox -e lint\n"
11+
echo "No python file changed.\n"
1212
exit
1313
fi
1414
printf "%s\n" $files

script/lazytox.py script/lint_and_test.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env python3
22
"""
3-
Lazy 'tox' to quickly check if branch is up to PR standards.
3+
Quickly check if branch is up to PR standards.
44
5-
This is NOT a tox replacement, only a quick check during development.
5+
This is NOT a full CI/linting replacement, only a quick check during development.
66
"""
77
import asyncio
88
from collections import namedtuple
@@ -214,7 +214,7 @@ async def main():
214214

215215
print("=============================")
216216
if not test_files:
217-
print("No test files identified, ideally you should run tox")
217+
print("No test files identified")
218218
return
219219

220220
code, _ = await async_exec(
@@ -223,7 +223,7 @@ async def main():
223223
print("=============================")
224224

225225
if code == 0:
226-
printc(PASS, "Yay! This will most likely pass tox")
226+
printc(PASS, "Yay! This will most likely pass CI")
227227
else:
228228
printc(FAIL, "Tests not passing")
229229

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
url = https://www.home-assistant.io/
66

77
[flake8]
8-
exclude = .venv,.git,.tox,docs,venv,bin,lib,deps,build
8+
exclude = .venv,.git,docs,venv,bin,lib,deps,build
99
max-complexity = 25
1010
doctests = True
1111
# To work with Black

tox.ini

-48
This file was deleted.

0 commit comments

Comments
 (0)