1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 03:12:20 +01:00

Add pre-commit hooks to fix common formatting issues causing CI failures (#9494)

This commit is contained in:
J. Nick Koston
2025-07-14 14:25:18 -10:00
committed by GitHub
parent 619e2d69c0
commit b2a8b0a22f
38 changed files with 12 additions and 39 deletions

View File

@@ -158,7 +158,7 @@ def test_write_hash() -> None:
mock_write.assert_called_once()
args = mock_write.call_args[0]
assert str(args[0]).endswith(".clang-tidy.hash")
assert args[1] == hash_value
assert args[1] == hash_value.strip() + "\n"
@pytest.mark.parametrize(