Python tests failed in Travis CI
Description
Python tests failed in Travis CI with the following error message:
petstore_api/api_client.py:247:22: W605 invalid escape sequence '\['
sub_kls = re.match('list\[(.*)\]', klass).group(1)
^
petstore_api/api_client.py:247:28: W605 invalid escape sequence '\]'
sub_kls = re.match('list\[(.*)\]', klass).group(1)
^
petstore_api/api_client.py:252:22: W605 invalid escape sequence '\('
sub_kls = re.match('dict\(([^,]*), (.*)\)', klass).group(2)
^
petstore_api/api_client.py:252:37: W605 invalid escape sequence '\)'
sub_kls = re.match('dict\(([^,]*), (.*)\)', klass).group(2)
^
petstore_api/models/format_test.py:297:25: W605 invalid escape sequence '\/'
if byte is not None and not re.search('^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', byte): # noqa: E501
^
petstore_api/models/format_test.py:297:47: W605 invalid escape sequence '\/'
if byte is not None and not re.search('^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', byte): # noqa: E501
^
petstore_api/models/format_test.py:297:67: W605 invalid escape sequence '\/'
if byte is not None and not re.search('^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', byte): # noqa: E501
^
petstore_api/models/format_test.py:298:94: W605 invalid escape sequence '\/'
raise ValueError("Invalid value for `byte`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501
^
petstore_api/models/format_test.py:298:116: W605 invalid escape sequence '\/'
raise ValueError("Invalid value for `byte`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501
^
petstore_api/models/format_test.py:298:136: W605 invalid escape sequence '\/'
raise ValueError("Invalid value for `byte`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501
^
petstore_api/api/fake_api.py:615:-540: W605 invalid escape sequence '\&'
"""
^
petstore_api/api/fake_api.py:615:-527: W605 invalid escape sequence '\&'
"""
^
petstore_api/api/fake_api.py:637:-555: W605 invalid escape sequence '\&'
"""
^
petstore_api/api/fake_api.py:637:-542: W605 invalid escape sequence '\&'
"""
^
make: *** [test-all] Error 1
openapi-generator version
Latest master
Suggest a fix/enhancement
It was working fine before and likely there's a overnight change wth a newer version of flake8