Hacker News new | past | comments | ask | show | jobs | submit login

I like black. As hprotagonist pointed out, everyone has a few things about it they don't like. What I like to do:

    $ black --skip-string-normalization my_python_script.py
    $ git add --patch my_python_script.py
Then I accept or reject all its suggestions (other than the string "normalization" idea which is not our convention) on a case-by-case basis, then `git commit; git reset HEAD --hard`.



Seems like a lot of work just to satisfy some arbitrary aesthetic sensitivity.

Especially when working in teams, I couldn't care less about the style itself. As long as it's consistent, super easy to adhere (`black .`) and fairly readable, I'm happy.




Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: