[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/sds/overcommit/main/lib/overcommit/hook/pre_push/python_nose.rb [Back]  [Original]

# frozen_string_literal: true

module Overcommit::Hook::PrePush
  # Runs `nose` test suite before push
  #
  # @see https://nose.readthedocs.io/en/latest/
  class PythonNose < Base
    def run
      result = execute(command)
      return :pass if result.success?

      output = result.stdout + result.stderr
      [:fail, output]
    end
  end
end

Web Proxy Viewer  |  New URL  |  Original Page