Sha256: 853703c6cd6645ae85c0c01b0a5d085a904d77ad863b3a8109e6a857f079b5b8

Contents?: true

Size: 429 Bytes

Versions: 7

Compression:

Stored size: 429 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

7 entries across 7 versions & 1 rubygems

Version Path
quality-19.2.0 lib/quality/tools/pep8.rb
quality-19.1.3 lib/quality/tools/pep8.rb
quality-19.1.2 lib/quality/tools/pep8.rb
quality-19.1.1 lib/quality/tools/pep8.rb
quality-19.1.0 lib/quality/tools/pep8.rb
quality-19.0.0 lib/quality/tools/pep8.rb
quality-18.0.1 lib/quality/tools/pep8.rb