From e57b95ca2efb4fe838a1835be2c5873025aff90b Mon Sep 17 00:00:00 2001 From: AbdealiJK Date: Fri, 29 Jan 2016 15:53:42 +0530 Subject: [PATCH] .coafile: Add PEP8Bear --- .coafile | 2 +- .gitignore | 1 + CoalaBackground.py | 1 + CoalaCommand.py | 1 + CoalaThread.py | 1 + tests/UtilsTest.py | 1 + 6 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.coafile b/.coafile index 978a3a6..79ed3ae 100644 --- a/.coafile +++ b/.coafile @@ -1,5 +1,5 @@ [Default] files = **/*.py -bears = SpaceConsistencyBear, LineLengthBear, GitCommitBear +bears = SpaceConsistencyBear, LineLengthBear, GitCommitBear, PEP8Bear use_spaces = True max_line_length = 80 diff --git a/.gitignore b/.gitignore index fa67e04..58e03cb 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ __pycache__ .coverage .coverage.* htmlcov +*.orig diff --git a/CoalaBackground.py b/CoalaBackground.py index 69411a1..8033221 100644 --- a/CoalaBackground.py +++ b/CoalaBackground.py @@ -4,6 +4,7 @@ class CoalaBackground(sublime_plugin.EventListener): + def on_selection_modified(self, view): """ Show errors in the status line when the carret/selection moves. diff --git a/CoalaCommand.py b/CoalaCommand.py index 6db4e37..e97d071 100644 --- a/CoalaCommand.py +++ b/CoalaCommand.py @@ -32,6 +32,7 @@ class CoalaCommand(sublime_plugin.TextCommand): executed using `view.run_command("coala")` - which executes the `run()` function by default. """ + def run(self, edit, **kwargs): file_name = self.view.file_name() log("Trying to run coala on", file_name) diff --git a/CoalaThread.py b/CoalaThread.py index d446a7f..e4ef55f 100644 --- a/CoalaThread.py +++ b/CoalaThread.py @@ -11,6 +11,7 @@ class CoalaThread(threading.Thread): + def __init__(self, view, callback, diff --git a/tests/UtilsTest.py b/tests/UtilsTest.py index c3a2e9f..7a2fc11 100644 --- a/tests/UtilsTest.py +++ b/tests/UtilsTest.py @@ -4,6 +4,7 @@ class UtilsTest(unittest.TestCase): + def test_retrieve_stdout(self): with retrieve_stdout() as sio: print("test")