Skip to content

Commit

Permalink
Fixing bug with deadcode, snakerr, mypy due to adding functionalities.
Browse files Browse the repository at this point in the history
  • Loading branch information
Iury O. G. Figueiredo committed Oct 20, 2019
1 parent 207156d commit 8789d06
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions vyapp/plugins/deadcode.py
Expand Up @@ -64,7 +64,7 @@ def c_path(cls, path):
printd('Deadcode - Setting Vulture path = ', cls.path)
cls.path = path

def check_all(self, event):
def check_all(self, event=None):
path = get_project_root(self.area.filename)
child = Popen([self.path, path],
stdout=PIPE, stderr=STDOUT, encoding=self.area.charset)
Expand All @@ -79,7 +79,7 @@ def check_all(self, event):
if ranges:
self.options(ranges)

def check_module(self, event):
def check_module(self, event=None):
path = get_project_root(self.area.filename)
child = Popen([self.path, path],
stdout=PIPE, stderr=STDOUT, encoding=self.area.charset)
Expand All @@ -99,6 +99,6 @@ def check_module(self, event):

def py_analysis():
python_analysis = PythonAnalysis(AreaVi.ACTIVE)
python_analysis.check()
python_analysis.check_all()
ENV['py_analysis'] = py_analysis

6 changes: 3 additions & 3 deletions vyapp/plugins/mypy.py
Expand Up @@ -58,7 +58,7 @@ def c_path(cls, path):
printd('Snakerr - Setting Mypy path = ', cls.path)
cls.path = path

def check_all(self, event):
def check_all(self, event=None):
path = get_project_root(self.area.filename)
child = Popen([self.path, path],
stdout=PIPE, stderr=STDOUT, encoding=self.area.charset)
Expand All @@ -74,7 +74,7 @@ def check_all(self, event):
if ranges:
self.options(ranges)

def check_module(self, event):
def check_module(self, event=None):
path = get_project_root(self.area.filename)
child = Popen([self.path, path],
stdout=PIPE, stderr=STDOUT, encoding=self.area.charset)
Expand All @@ -93,7 +93,7 @@ def check_module(self, event):
install = StaticChecker
def py_static():
checker = StaticChecker(AreaVi.ACTIVE)
checker.check()
checker.check_all()

ENV['py_static'] = py_static

Expand Down
6 changes: 3 additions & 3 deletions vyapp/plugins/snakerr.py
Expand Up @@ -61,7 +61,7 @@ def c_path(cls, path):
printd('Snakerr - Setting Pyflakes path = ', cls.path)
cls.path = path

def check_all(self, event):
def check_all(self, event=None):
path = get_project_root(self.area.filename)
child = Popen([self.path, path],
stdout=PIPE, stderr=STDOUT, encoding=self.area.charset)
Expand All @@ -80,7 +80,7 @@ def check_all(self, event):
if ranges:
self.options(ranges)

def check_module(self, event):
def check_module(self, event=None):
path = get_project_root(self.area.filename)
child = Popen([self.path, path],
stdout=PIPE, stderr=STDOUT, encoding=self.area.charset)
Expand All @@ -98,7 +98,7 @@ def check_module(self, event):
install = PythonChecker
def py_errors():
python_checker = PythonChecker(AreaVi.ACTIVE)
python_checker.check()
python_checker.check_all()

ENV['py_errors'] = py_errors

0 comments on commit 8789d06

Please sign in to comment.