Sha256: 39a2051ec0ed64b47c11ea6c7ceb7adc6e9ec077fc25c599c7e1094b177c276e

Contents?: true

Size: 459 Bytes

Versions: 3

Compression:

Stored size: 459 Bytes

Contents

module Quality
  module Tools
    # Adds 'pep8' tool support to quality gem
    module Pep8
      private

      def pep8_args
        python_files.join(' ')
      end

      def quality_pep8
        ratchet_quality_cmd('pep8',
                            args: pep8_args,
                            gives_error_code_on_no_relevant_code:
                              true) do |line|
          line.split(':')[0].to_i
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
quality-20.0.1 lib/quality/tools/pep8.rb
quality-20.0.0 lib/quality/tools/pep8.rb
quality-19.2.1 lib/quality/tools/pep8.rb