houndci / hound

Automated code review for GitHub pull requests.
https://houndci.com
MIT License
1.95k stars 401 forks source link

How to do code check like hound locally and explicitly mute hound on some lines? #1866

Closed TsXor closed 1 year ago

TsXor commented 1 year ago

I used poetry run flake8 --config .flake8 <dir> to get errors. However, after I distinguished all errors, hound still found 16 violations on my PR. I would choose to do as it say if it hadn't reported violation on walrus operator (:=) in python: missing whitespace after ':', whitespace before ':' So how can I find the 16 violations locally and mute hound on those lines with walrus operator?