Uploaded image for project: 'Modeling'
  1. Modeling
  2. MODELING-76

Fix pep8 error when run sonar

XMLWordPrintable

      Fix the following error:

       
      01:29:20 pep8 runtests: commands[0] | flake8*01:29:21* ./venv-tox/bin/activate_this.py:1:1: H102 Apache 2.0 license header not found*01:29:21* """By using execfile(this_file, dict(_file=this_file)) you will*01:29:21* ^01:29:21 ./venv-tox/bin/activate_this.py:12:80: E501 line too long (113 > 79 characters)01:29:21 "You must run this like execfile('path/to/activate_this.py', dict(file='path/to/activate_this.py'))")01:29:21 ^01:29:21 ./venv-tox/bin/activate_this.py:14:1: H306 imports not in alphabetical order (sys, os)01:29:21 import os*01:29:21* ^01:29:21 ./venv-tox/bin/activate_this.py:17:80: E501 line too long (90 > 79 characters)01:29:21 os.environ['PATH'] = os.path.dirname(os.path.abspath(file_)) + os.pathsep + old_os_path*01:29:21* ^01:29:21 ./venv-tox/bin/activate_this.py:22:80: E501 line too long (92 > 79 characters)01:29:21 site_packages = os.path.join(base, 'lib', 'python%s' % sys.version[:3], 'site-packages')

            shangxdy shangxdy
            shangxdy shangxdy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: