Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Black formatter a komentáre #28

Closed
peter-facko opened this issue Jun 12, 2023 · 3 comments
Closed

Black formatter a komentáre #28

peter-facko opened this issue Jun 12, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@peter-facko
Copy link
Collaborator

Vyzerá to tak, že black nezalamuje príliš dlhé riadky, keď ide o komentáre.
Našiel som niečo o tom, že treba použiť option --preview, ale nejde mi to ani s tým.

Budeme zalamovať manuálne po tých približne 88? Alebo aby to proste nejak vyzeralo?

@peter-facko peter-facko added the bug Something isn't working label Jun 12, 2023
@jakublevy
Copy link
Collaborator

Zkoušel jsem to i se změnou .pre-commit-config.yaml na

repos:
-   repo: https://github.com/psf/black
    rev: 23.3.0
    hooks:
    -   id: black
        args: [--preview]

A nejde to viz psf/black#1713 (comment)

@peter-facko
Copy link
Collaborator Author

Hm tak black je teda jasný.

V tom prípade som za to, aby sme dodržali tých max 88, ale inak splitovali ako sa nám to hodí.

@vsvandelik
Copy link
Owner

Já jsem si třeba nastavil teď v editoru (PyCharm) vizuální čáru na 88, abych to tam hezky viděl. :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants