Automate PEP8 checking

已回答

How can I automate PEP8 checking?

I would like to run PEP8 check everytime before I `git add` in the UI.

If it fails with PEP8, do not continue `git add`

 

Is this possible somehow?

 

0

Why do you want doing this on the add action? I believe the better approach is to do this before commit, and there are options - e.g. git hooks.

BTW, in the UI, the Add command is to add new (unversioned) files to VCS. There is no need to use add before committing.

0

请先登录再写评论。