Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions share/plug-ins/pep8_integration.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"""
This is the python format checker plugin for GPS.
Its aim is to check identatoin, style when:
Its aim is to check indentation, style when:
1 user stop editing
2 before python script is saved
"""

import sys
import pep8
import pycodestyle
import GPS
import colorschemes
from cStringIO import StringIO
Expand All @@ -29,7 +29,7 @@ class Pep8_Module(Module):

def __format_check(self, file):
"""
Check format using pep8 for python source codes
Check format using pycodestyle for python source codes
"""
# only check python file
if file.language() == "python":
Expand All @@ -51,7 +51,7 @@ def __format_check(self, file):
source = [i + "\n" for i in s.splitlines()]

with Catch_Stdout() as output:
m = pep8.Checker(filename=None, lines=source, report=False)
m = pycodestyle.Checker(filename=None, lines=source, report=False)
m.check_all()

for i in output:
Expand Down