我正在嘗試使用以下預提交鉤來檢查我的代碼質量。 https://github.com/sebdah/git-pylint-commit-hook當在github中用作預提交鉤時,Pylint不工作
我按照說明安裝了它,但它顯示所有文件都爲0分。恩。
Running pylint on make_postreq.py (file 5/15).. 0/10.00 FAILED ************* Module make_postreq
而如果我從控制檯運行pylint
,我得到一個體面的成績。
Global evaluation
Your code has been rated at 8.75/10 (previous run: 8.75/10, +0.00)
我覺得這可能是一個配置問題,但似乎無法使其工作。 還有其他一些方法可以在GitHub中提交之前檢查我們的Python代碼質量嗎?
我們將需要一些更多的信息。你能顯示相關的'.pylintrc'嗎?從控制檯運行包含'make_postreq.py'? – jonrsharpe