Exemplo n.º 1
0
    def is_usable(self):
        if not in_path('mypy'):
            return False

        # mypy only avaiable in Python 3
        python_version = self.python_name[6:]
        major, *_ = python_version.split('.', 1)
        if int(major) < 3:
            return False
        return True
Exemplo n.º 2
0
 def is_usable(self):
     return in_path('jsonlint') or npm_exists('jsonlint', self.working_dir)
Exemplo n.º 3
0
 def is_usable(self):
     return in_path('bandit')
Exemplo n.º 4
0
 def is_usable(self):
     return in_path('shellcheck')
Exemplo n.º 5
0
 def is_usable(self):
     return in_path('pep8')
Exemplo n.º 6
0
 def is_usable(self):
     return in_path('flake8')
Exemplo n.º 7
0
 def is_usable(self):
     return in_path('pycodestyle')
Exemplo n.º 8
0
 def is_usable(self):
     return in_path('pylint')
Exemplo n.º 9
0
 def is_usable(self):
     return in_path('yamllint')