我一直希望仅对未提交的更改而不是整个项目运行python linter,有没有办法仅对git更改运行Pylama。
您可以提供对Pylama的未提交更改的列表作为参数。
从命令行运行:
pylama "$(git --no-pager diff --name-only)"