Skip Navigation
Thai Natural Language Processing @lemmy.ml

black กับ pep8speaks จัด format ไม่เหมือนกันครับ

github.com

Refactor Royin Transliterate: Avoid embedded if blocks and simplified consonant replacing operations by veer66 · Pull Request #566 · PyThaiNLP/pythainlp

black จัดให้แบบนี้

 Python
    
elif word[i : i + 2] == _DOUBLE_RO_RUA:

  

แต่ pep8speaks บอกว่า

Line 177:20: E203 whitespace before ':'

เอาแบบไหนดีครับ ?

0 comments

No comments