PyCQA/flake8-bugbear

Proposed opinionated warning against re.match

開放

#132 建立於 2020年8月13日

 (1 則留言) (0 個反應) (0 位負責人)Python (116 個分叉)github user discovery
help wantedquestion

倉庫指標

星標
 (1,116 顆星)
PR 合併指標
 (平均合併 4小時 17分鐘) (30 天內合併 3 個 PR)

描述

Technically, using re.match is valid. Realistically, the author probably meant .search and is going to lose a ton of time trying to figure out why her regex isn't working.

I'm speaking purely in compassion toward more junior developers; I would obviously never make such an elementary mistake myself. https://twitter.com/catherinedevlin/status/1257507010041520139

If you think you're likely to accept it, I'd be interested in authoring such a warning.

貢獻者指南