erayerdin / sos-django-template

SOS Django Template is a starter template for new Django projects with modern defaults, power cable included.
Do What The F*ck You Want To Public License
20 stars 2 forks source link

Black Fails #6

Closed erayerdin closed 5 years ago

erayerdin commented 5 years ago

Black fails, see the output:

[WARNING] Unstaged files detected.
[INFO] Stashing unstaged files to /home/erayerdin/.cache/pre-commit/patch1563987583.
Trim Trailing Whitespace.................................................Failed
hookid: trailing-whitespace

Files were modified by this hook. Additional output:

Fixing LICENSE.txt

Fix End of Files.........................................................Failed
hookid: end-of-file-fixer

Files were modified by this hook. Additional output:

Fixing requirements.txt
Fixing LICENSE.txt
Fixing sozluk/architecture.drawio

Check Yaml...............................................................Passed
Check for added large files..............................................Passed
black....................................................................Failed
hookid: black

Files were modified by this hook. Additional output:

reformatted /foo/apps.py
All done! ✨ 🍰 ✨
1 file reformatted, 18 files left unchanged.

seed isort known_third_party.............................................Passed
isort....................................................................Passed
[WARNING] Stashed changes conflicted with hook auto-fixes... Rolling back fixes...
[INFO] Restored changes from /home/erayerdin/.cache/pre-commit/patch1563987583.
erayerdin commented 5 years ago

Black fails on staged files. Redoing git add . and git commit fixes the issue.