示例#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
示例#2
0
 def is_usable(self):
     return in_path('jsonlint') or npm_exists('jsonlint', self.working_dir)
示例#3
0
 def is_usable(self):
     return in_path('bandit')
示例#4
0
 def is_usable(self):
     return in_path('shellcheck')
示例#5
0
 def is_usable(self):
     return in_path('pep8')
示例#6
0
 def is_usable(self):
     return in_path('flake8')
示例#7
0
 def is_usable(self):
     return in_path('pycodestyle')
示例#8
0
 def is_usable(self):
     return in_path('pylint')
示例#9
0
 def is_usable(self):
     return in_path('yamllint')