Skip to content

Instantly share code, notes, and snippets.

@gxfxyz
Created November 16, 2018 10:26
Show Gist options
  • Save gxfxyz/1ec670ff681c78829b6173d865fb4080 to your computer and use it in GitHub Desktop.
Save gxfxyz/1ec670ff681c78829b6173d865fb4080 to your computer and use it in GitHub Desktop.
Sublime Text 3 command to clear Flake8Lint marks
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Sublime Text 3 command to clear Flake8Lint marks.
How to use:
Save to your "/Sublime Text 3/Packages/User" directory.
"""
import sys
import sublime_plugin
class ClearFlake8LintCommand(sublime_plugin.TextCommand):
def run(self, edit):
Flake8Lint = sys.modules['Python Flake8 Lint.Flake8Lint'].Flake8Lint
Flake8Lint.cleanup(self.view)
[{
"caption": "Clear Flake8 Lint",
"command": "clear_flake8_lint"
}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment