mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-11 09:02:43 +00:00
[python-client] Modify python templates to resolve linting errors (#6839)
The linting results for the generated samples are as follows where the first number is the BEFORE and the second is AFTER. pyclient 7714 vs. 120 pyclient3 7717 vs. 120 pyclient3-asyncio 7584 vs. 120 pyclient-tornado 7633 vs. 120 pyclient3-tornado 7633 vs. 120 For the complete details please see the following gist. https://gist.github.com/kenjones-cisco/2eb69a7e8db75e9fd53789f01570d9f2 Enforces linting for python clients by running flake8 for the generated python client.
This commit is contained in:
@@ -6,8 +6,8 @@ from datetime import date, datetime # noqa: F401
|
||||
from typing import List, Dict # noqa: F401
|
||||
|
||||
from swagger_server.models.base_model_ import Model
|
||||
from swagger_server.models.category import Category # noqa: E501
|
||||
from swagger_server.models.tag import Tag # noqa: E501
|
||||
from swagger_server.models.category import Category # noqa: F401,E501
|
||||
from swagger_server.models.tag import Tag # noqa: F401,E501
|
||||
from swagger_server import util
|
||||
|
||||
|
||||
|
||||
@@ -108,11 +108,11 @@ paths:
|
||||
type: "array"
|
||||
items:
|
||||
type: "string"
|
||||
default: "available"
|
||||
enum:
|
||||
- "available"
|
||||
- "pending"
|
||||
- "sold"
|
||||
default: "available"
|
||||
collectionFormat: "csv"
|
||||
responses:
|
||||
200:
|
||||
|
||||
@@ -6,8 +6,8 @@ from datetime import date, datetime # noqa: F401
|
||||
from typing import List, Dict # noqa: F401
|
||||
|
||||
from swagger_server.models.base_model_ import Model
|
||||
from swagger_server.models.category import Category # noqa: E501
|
||||
from swagger_server.models.tag import Tag # noqa: E501
|
||||
from swagger_server.models.category import Category # noqa: F401,E501
|
||||
from swagger_server.models.tag import Tag # noqa: F401,E501
|
||||
from swagger_server import util
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user