我已在Ubuntu 18.04上使用的虚拟机上正确安装了所有上述模块。当在特定脚本或文件夹上运行它们时,它们可以正确地识别样式错误并将其输出到控制台。例如:
(venv) .../src$ python3.6 -m flake8
./free_prediction.py:8:1: E303 too many blank lines (5)
./free_prediction.py:8:28: E231 missing whitespace after ','
./free_prediction.py:10:5: E225 missing whitespace around operator
./free_prediction.py:12:3: E225 missing whitespace around operator
./free_prediction.py:15:13: E225 missing whitespace around operator
然而,代码中仍存在相同的样式错误。我该如何使它们自动纠正?