Fix PEP8 formatting
cehbrecht opened this issue · 1 comments
cehbrecht commented
Description
The pep8 checker has become more strict and complains (see travis CI):
$ flake8 pywps/
pywps/dependencies.py:10:1: F841 local variable 'err' is assigned to but never used
pywps/dependencies.py:15:1: F841 local variable 'err' is assigned to but never used
pywps/tests.py:76:20: W605 invalid escape sequence '\s'
pywps/tests.py:99:16: W605 invalid escape sequence '\s'
pywps/tests.py:109:16: W605 invalid escape sequence '\s'
pywps/tests.py:119:16: W605 invalid escape sequence '\s'
pywps/tests.py:126:16: W605 invalid escape sequence '\s'
pywps/app/Process.py:99:14: W606 'async' and 'await' are reserved keywords starting with Python 3.7
pywps/app/Process.py:113:22: W606 'async' and 'await' are reserved keywords starting with Python 3.7
pywps/app/Process.py:119:51: W606 'async' and 'await' are reserved keywords starting with Python 3.7
pywps/app/Process.py:141:32: W606 'async' and 'await' are reserved keywords starting with Python 3.7
pywps/app/Process.py:154:12: W606 'async' and 'await' are reserved keywords starting with Python 3.7
pywps/app/Process.py:260:21: W606 'async' and 'await' are reserved keywords starting with Python 3.7
pywps/app/Process.py:308:28: W504 line break after binary operator
pywps/app/Process.py:358:40: W504 line break after binary operator
pywps/app/Service.py:341:9: F841 local variable 'e' is assigned to but never used
pywps/inout/literaltypes.py:141:21: W504 line break after binary operator
The command "flake8 pywps/" exited with 1.
We need to skip the W606 'async' and 'await' check for Python 3.7. Needs to be fixed in issue #397.
Environment
- operating system:
- Python version: 2.7, 3.6
- PyWPS version: 4.2
- source/distribution
- git clone
- Debian
- PyPI
- zip/tar.gz
- other (please specify):
- web server
- Apache/mod_wsgi
- CGI
- other (please specify):