This resolves #52.
This adds commands to enable/disable pep8 linting on a per view basis.
The diff in sublime_python_linting.py may look scary but there's was no functional change other than adding commands as stated in title. Here is summary of my changes:
Re-factored out nearly all methods from PythonLintingListener to module level, this was necessary to expose the check method. The alternative was to make everything class methods but I think making them module level is cleaner.
Added some helper function to override view settings in sublime_python.py.
Added enable and disable PEP8 command classes which will enable / disable pep8 setting on a per view basis.
I did some basic testing, nothing appeared to be broken.
This resolves #52. This adds commands to enable/disable pep8 linting on a per view basis. The diff in sublime_python_linting.py may look scary but there's was no functional change other than adding commands as stated in title. Here is summary of my changes:
PythonLintingListener
to module level, this was necessary to expose thecheck
method. The alternative was to make everything class methods but I think making them module level is cleaner.sublime_python.py
.