พี่แบคบอกว่า black นั่นล่ะคือ linter ผมก็เลยลองรันดู
black -l 79 pythainlp
ปรากฎว่าไฟล์โดนแก้เพียบเลย
$ git status
On branch dev
Your branch is up to date with 'origin/dev'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: pythainlp/benchmarks/word_tokenization.py
modified: pythainlp/cli/data.py
modified: pythainlp/cli/soundex.py
modified: pythainlp/cli/tag.py
modified: pythainlp/cli/tokenize.py
modified: pythainlp/corpus/__init__.py
modified: pythainlp/corpus/core.py
modified: pythainlp/corpus/wordnet.py
modified: pythainlp/summarize/core.py
modified: pythainlp/summarize/freq.py
modified: pythainlp/summarize/mt5.py
modified: pythainlp/tag/_tag_perceptron.py
modified: pythainlp/tag/chunk.py
modified: pythainlp/tag/crfchunk.py
modified: pythainlp/tag/named_entity.py
modified: pythainlp/tag/pos_tag.py
modified: pythainlp/tokenize/core.py
modified: pythainlp/tokenize/nercut.py
modified: pythainlp/translate/__init__.py
modified: pythainlp/transliterate/__init__.py
modified: pythainlp/transliterate/thai2rom.py
modified: pythainlp/transliterate/thaig2p.py
modified: pythainlp/transliterate/w2p.py
modified: pythainlp/ulmfit/__init__.py
modified: pythainlp/ulmfit/preprocess.py
modified: pythainlp/util/keyboard.py
modified: pythainlp/util/strftime.py
modified: pythainlp/util/thai.py
modified: pythainlp/util/trie.py
modified: pythainlp/wangchanberta/core.py
modified: pythainlp/wangchanberta/postag.py
สงสัยต้องรันแบบระบุไฟล์เดียวไปเลย ?
You must log in or # to comment.