I’m trying to extend time pattern trigger, so I did some code changes, tested, etc. So it’s time to commit (to my cloned repo) but I have some problem with it:
(hass-core) rufik@LAPTOP:hass-core$ git status
On branch feature/time_pattern_extended
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
modified: homeassistant/util/dt.py
modified: tests/util/test_dt.py
[...]
(hass-core) rufik@LAPTOP-RUFIK:hass-core$ git commit -m "Extending time pattern trigger....."
[WARNING] Unstaged files detected.
[INFO] Stashing unstaged files to /home/rufik/.cache/pre-commit/patch1585303626.
black....................................................................Failed
- hook id: black
- files were modified by this hook
[...]
[WARNING] Stashed changes conflicted with hook auto-fixes... Rolling back fixes...
[INFO] Restored changes from /home/rufik/.cache/pre-commit/patch1585303626.
Why black
formatting failed? Where can I find details about that?