Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pep8_integration.py to use new names for pep8 package #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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