Sha256: 0b75e94bc5127a444629c55338418fc6e080e5b5bd0b46e2c3439343140b7f29
Contents?: true
Size: 347 Bytes
Versions: 10
Compression:
Stored size: 347 Bytes
Contents
module Overcommit::GitHook class PythonFlake8 < HookSpecificCheck include HookRegistry file_type :py def run_check unless in_path? 'flake8' return :warn, 'Run `pip install flake8`' end output = `flake8 #{(staged.join(' '))}`.split("\n") return ($?.success? ? :good : :bad), output end end end
Version data entries
10 entries across 10 versions & 1 rubygems