예제 #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
파일: bandit.py 프로젝트: xa-Amour/badwolf
 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
파일: flake8.py 프로젝트: xa-Amour/badwolf
 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')