Sha256: a9885bc5a70c099de1f5330eea8eaa633caec6094c650086dda97364f68fe8bf

Contents?: true

Size: 270 Bytes

Versions: 5

Compression:

Stored size: 270 Bytes

Contents

module Overcommit::Hook::PreCommit
  # Runs `flake8` against any modified Python files.
  class PythonFlake8 < Base
    def run
      result = execute([executable] + applicable_files)
      return :pass if result.success?

      [:fail, result.stdout]
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
jawshooah-overcommit-0.22.0 lib/overcommit/hook/pre_commit/python_flake8.rb
overcommit-0.21.0 lib/overcommit/hook/pre_commit/python_flake8.rb
overcommit-0.20.0 lib/overcommit/hook/pre_commit/python_flake8.rb
overcommit-0.19.0 lib/overcommit/hook/pre_commit/python_flake8.rb
overcommit-0.18.0 lib/overcommit/hook/pre_commit/python_flake8.rb